1# Copyright (C) 2022 HiHope Open Source Organization . 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 = "ck804ef" 22 23# Board arch, e.g. "armv7-a", "rv32imac". 24board_arch = "ck803" 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 = "csky-elfabiv2-gcc" 30 31#use_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 = "csky-elfabiv2-" 38 39# Compiler type, "gcc" or "clang". 40board_toolchain_type = "gcc" 41 42# config.json parse 43if (product_path != "") { 44 product_conf = read_file("${product_path}/config.json", "json") 45 product_name = product_conf.product_name 46 bin_list = product_conf.bin_list 47} 48 49# Board related common compile flags. 50board_cflags = [ 51 "-mcpu=ck804ef", 52 "-mhard-float", 53 "-DGCC_COMPILE=1", 54 "-DTLS_CONFIG_CPU_XT804=1", 55 "-DNIMBLE_FTR=1", 56 "-D__CSKY_V2__=1", 57 "-DCPU_CK804", 58 "-O2", 59 "-g3", 60 "-Wall", 61 "-ffunction-sections", 62 "-MMD", 63 "-MP", 64] 65 66board_cxx_flags = board_cflags 67 68board_asmflags = [ 69 "-mcpu=ck804ef", 70 "-DCPU_CK804", 71] 72 73board_ld_flags = [] 74 75# Board related headfiles search path. 76board_include_dirs = [] 77 78# Board adapter dir for OHOS components. 79board_adapter_dir = "" 80 81# Sysroot path. 82board_configed_sysroot = "" 83 84# Board storage type, it used for file system generation. 85storage_type = "" 86