1# Copyright (c) 2020-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". 21board_cpu = "cortex-m4" 22 23# Board arch, e.g. "armv7-a", "rv32imac". 24board_arch = "" 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 toolchain. 29board_toolchain = "arm-none-eabi-gcc" 30 31use_board_toolchain = true 32 33# The toolchain path installed, it's not mandatory if you have added toolchain path to your ~/.bashrc. 34board_toolchain_path = "" 35 36# Compiler prefix. 37board_toolchain_prefix = "arm-none-eabi-" 38 39# Compiler type, "gcc" or "clang". 40board_toolchain_type = "gcc" 41 42#Debug compiler optimization level options 43board_opt_flags = [] 44 45# Board related common compile flags. 46board_cflags = [ 47 "-mthumb", 48 "-Wall", 49 "-fdata-sections", 50 "-ffunction-sections", 51 "-fno-builtin", 52 "-fno-strict-aliasing", 53 "-fsigned-char", 54 "-std=c99", 55 "-O2", 56 "-DUSE_HAL_DRIVER", 57 "-D__LITEOS_M__", 58] 59board_cflags += board_opt_flags 60 61board_asmflags = [ 62 "-mcpu=cortex-m4", 63 "-mthumb", 64 "-static", 65 "-O2", 66] 67board_asmflags += board_opt_flags 68 69board_cxx_flags = board_cflags 70 71board_ld_flags = [] 72 73# Newlib adapt. 74board_ld_flags += [ 75 "-Wl,--wrap=_free_r", 76 "-Wl,--wrap,_malloc_usable_size_r", 77 "-Wl,--wrap,_malloc_r", 78 "-Wl,--wrap,_memalign_r", 79 "-Wl,--wrap,_realloc_r", 80 "-Wl,--wrap,_calloc_r", 81] 82 83# Board related headfiles search path. 84board_include_dirs = [ "//commonlibrary/utils_lite/include" ] 85 86# Board adapter dir for OHOS components. 87board_adapter_dir = "//device/qemu/arm_mps2_an386/driver" 88 89# Sysroot path. 90board_configed_sysroot = "" 91 92# Board storage type, it used for file system generation. 93storage_type = "spinor" 94