1# Copyright (c) 2022 Hunan OpenValley Digital Industry Development 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 arch, e.g. "armv7-a", "rv32imac". 21board_arch = "" 22 23board = "esp32u4" 24board_cpu = "" 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 = "xtensa-esp32-elf-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 = "xtensa-esp32-elf-" 36 37# Compiler type, "gcc" or "clang". 38board_toolchain_type = "gcc" 39 40# Board related common compile flags. 41board_cflags = [ 42 "-mlongcalls", 43 "-O2", 44 "-Wall", 45 "-Wextra", 46 "-fno-common", 47 "-Wdouble-promotion", 48 "-mtext-section-literals", 49 "-DESP32", 50 "-Wno-implicit-function-declaration", 51 "-Wno-sign-conversion", 52 "-Wno-sign-compare", 53 "-W", 54 "-Wshadow", 55 "-ffunction-sections", 56 "-fdata-sections", 57 "-Wno-conversion", 58 "-Wno-unused-parameter", 59 "-Wno-unused-variable", 60 "-Wno-type-limits", 61 "-Wno-cast-function-type", 62 "-Wno-implicit-fallthrough", 63 "-Wno-parentheses", 64 "-Wno-pointer-sign", 65] 66 67board_cxx_flags = board_cflags 68 69board_ld_flags = [] 70 71# Board related headfiles search path. 72board_include_dirs = [ 73 "//commonlibrary/utils_lite/include", 74 "//device/soc/esp/esp32/components/osal/include", 75 "//device/soc/esp/esp32/components/osal/port/xtensa/include", 76] 77 78# Board adapter dir for OHOS components. 79board_adapter_dir = "//device/board/openvalley/niobeu4/liteos_m" 80 81# Sysroot path. 82board_configed_sysroot = "" 83 84# Board storage type, it used for file system generation. 85storage_type = "" 86