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". 21board_cpu = "" 22 23# Board arch, e.g. "armv7-a", "rv32imac". 24board_arch = "" 25 26# Board, e.g. "esp32". 27board = "esp32" 28 29# Toolchain name used for system compiling. 30# E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf. 31# Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toochain. 32board_toolchain = "xtensa-esp32-elf-gcc" 33 34# The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc. 35board_toolchain_path = "" 36 37# Compiler prefix. 38board_toolchain_prefix = "xtensa-esp32-elf-" 39 40# Compiler type, "gcc" or "clang". 41board_toolchain_type = "gcc" 42 43# Board related common compile flags. 44board_cflags = [ 45 "-mlongcalls", 46 "-O0", 47 "-g", 48 "-Wall", 49 "-Wextra", 50 "-fno-common", 51 "-Wdouble-promotion", 52 "-mtext-section-literals", 53 "-DESP32", 54 "-Wno-implicit-function-declaration", 55 "-Wno-sign-conversion", 56 "-Wno-sign-compare", 57 "-W", 58 "-Wshadow", 59 "-ffunction-sections", 60 "-fdata-sections", 61 "-Wno-conversion", 62 "-Wno-unused-parameter", 63 "-Wno-unused-variable", 64 "-Wno-type-limits", 65 "-Wno-cast-function-type", 66 "-Wno-implicit-fallthrough", 67 "-Wno-parentheses", 68 "-Wno-pointer-sign", 69 "-D__XTENSA_LX6__", 70] 71 72board_cxx_flags = board_cflags 73 74board_ld_flags = [] 75 76# Board related headfiles search path. 77board_include_dirs = [] 78 79# Board adapter dir for OHOS components. 80board_adapter_dir = "" 81 82# Sysroot path. 83board_configed_sysroot = "" 84 85# Board storage type, it used for file system generation. 86storage_type = "" 87