1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# Kernel type, e.g. "linux", "liteos_a", "liteos_m". 15kernel_type = "liteos_m" 16 17# Kernel version. 18kernel_version = "3.0.0" 19 20# Board CPU type, e.g. "cortex-a7", "riscv32", "e802". 21board_cpu = "e802" 22 23# Board arch, e.g. "armv7-a", "rv32imac", "ck802". 24board_arch = "ck802" 25 26# Toolchain name used for system compiling. 27# E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf. 28# Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toochain. 29board_toolchain = "csky-elfabiv2-gcc" 30 31# The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc. 32board_toolchain_path = "" 33 34# Compiler prefix. 35board_toolchain_prefix = "csky-elfabiv2-" 36 37# Compiler type, "gcc". 38board_toolchain_type = "gcc" 39 40# Board related common compile flags. 41board_cflags = [ 42 "-gdwarf-2", 43 "-fno-omit-frame-pointer", 44 "-ffunction-sections", 45 "-fdata-sections", 46 "-MMD", 47 "-MP", 48 "-Wno-pointer-sign", 49 "-D__CSKY_V2__", 50] 51board_cxx_flags = board_cflags 52 53board_ld_flags = [] 54 55# Board related headfiles search path. 56board_include_dirs = [ 57 "//kernel/liteos_m/kernel/arch/csky/v2/gcc", 58 "//device/qemu/SmartL_E802", 59 "//device/qemu/SmartL_E802/fs", 60 "//device/qemu/SmartL_E802/drivers/csky_driver/include", 61 "//third_party/musl/porting/liteos_m/kernel/include", 62 "//third_party/bounds_checking_function/include", 63 "//kernel/liteos_m/utils", 64 "//kernel/liteos_m/kernel/include", 65 "//kernel/liteos_m/kernel/arch/include", 66] 67 68# Board adapter dir for OHOS components. 69board_adapter_dir = "" 70 71# Sysroot path. 72board_configed_sysroot = "" 73 74# Board storage type, it used for file system generation. 75storage_type = "" 76