• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2022 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-m55"
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  "-Wall",
48  "-mcpu=cortex-m55",
49  "-mfloat-abi=hard",
50  "-flax-vector-conversions",
51  "-fdata-sections",
52  "-ffunction-sections",
53  "-fno-builtin",
54  "-fno-strict-aliasing",
55  "-mno-unaligned-access",
56  "-fsigned-char",
57  "-std=c99",
58  "-Os",
59  "-DUSE_HAL_DRIVER",
60  "-D__LITEOS_M__",
61]
62board_cflags += board_opt_flags
63
64board_asmflags = [
65  "-mcpu=cortex-m55",
66  "-Os",
67]
68board_asmflags += board_opt_flags
69
70board_cxx_flags = board_cflags
71
72board_ld_flags = []
73
74# Newlib adapt.
75board_ld_flags += [
76  "-Wl,--wrap=_free_r",
77  "-Wl,--wrap,_malloc_usable_size_r",
78  "-Wl,--wrap,_malloc_r",
79  "-Wl,--wrap,_memalign_r",
80  "-Wl,--wrap,_realloc_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_mps3_an547/driver"
88
89# Sysroot path.
90board_configed_sysroot = ""
91
92# Board storage type, it used for file system generation.
93storage_type = "spinor"
94