1# Copyright (c) 2021 GOODIX. 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 toochain. 29board_toolchain = "arm-none-eabi-gcc" 30 31use_board_toolchain = true 32 33# The toolchain path instatlled, it's not mandatory if you have added toolchian 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# Board related common compile flags. 43board_cflags = [ 44 "-std=c99", 45 "--inline", 46 "-ggdb", 47 "-O1", 48 "-ffunction-sections", 49 "-fdata-sections", 50 "-mfloat-abi=softfp", 51 "-mfpu=fpv4-sp-d16", 52 "-mapcs-frame", 53 "-mcpu=cortex-m4", 54 "-mthumb", 55 "-mthumb-interwork", 56 "-gdwarf-2", 57 "-MD", 58 "-fno-stack-protector", 59 "-DLOSCFG_BASE_CORE_HILOG=1", 60] 61 62board_cxx_flags = [] 63board_ld_flags = [ 64 "-nostartfiles", 65 "-mcpu=cortex-m4", 66 "-mfloat-abi=softfp", 67 "-mfpu=fpv4-sp-d16", 68 "-mapcs-frame", 69 "-mthumb", 70 "-mthumb-interwork", 71 "-Wl,--gc-sections", 72 "-Wl,--start-group", 73 "-Wl,--whole-archive", 74 "-Llibs", 75 "-lbootstrap", 76 "-lsamgr_adapter", 77 "-lsamgr_source", 78 "-lbroadcast", 79 "-lhilog_lite", 80 "-lhiview_lite", 81 "-lutils_kv_store", 82 "-lkernel", 83 "-lgcc", 84 "-lble_sdk", 85 "-Wl,--no-whole-archive", 86 "-Wl,--end-group", 87 "-Wl,-Tbin/link.ld", 88 "-nostdlib", 89 "-Trom_symbol_gcc.txt", 90 "-Wl,-Map=bin/application.map", 91] 92 93# Board related headfiles search path. 94board_include_dirs = [ 95 "//utils/native/lite/include", 96 "//third_party/bounds_checking_function/include", 97 "//third_party/mbedtls/include", 98] 99 100# Board adapter dir for OHOS components. 101board_adapter_dir = "//device/soc/goodix/gr551x/adapter" 102 103# Sysroot path. 104board_configed_sysroot = "" 105 106# Board storage type, it used for file system generation. 107storage_type = "" 108