• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Kernel type, e.g. "linux", "liteos_a", "liteos_m".
2kernel_type = "liteos_m"
3
4# Kernel version.
5kernel_version = "3.0.0"
6
7# Board CPU type, e.g. "cortex-a7", "riscv32".
8board_cpu = ""
9
10# Board arch, e.g.  "armv7-a", "rv32imac".
11board_arch = "rv32imafc"
12
13# Toolchain name used for system compiling.
14# E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang,  riscv32-unknown-elf.
15# Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toochain.
16board_toolchain = "riscv32-elf"
17
18use_board_toolchain = true
19
20# The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc.
21board_toolchain_path = getenv("TELINK_RISCV_TOOLCHAIN")
22
23# Compiler prefix.
24board_toolchain_prefix = "riscv32-elf-"
25
26# Compiler type, "gcc" or "clang".
27board_toolchain_type = "gcc"
28
29# Board related common compile flags.
30board_cflags = [
31    "-mcmodel=medium",
32    "-mcpu=d25f",
33    "-mext-dsp",
34    "-mabi=ilp32f",
35    "-ffunction-sections",
36    "-fdata-sections",
37    "-std=c99",
38]
39
40board_asmflags = [
41    "-mcmodel=medium",
42    "-mcpu=d25f",
43    "-mext-dsp",
44    "-mabi=ilp32f",
45    "-fdata-sections",
46]
47
48board_cxx_flags = board_cflags
49
50board_ld_flags = [
51    "-nostartfiles",
52    "-fuse-ld=bfd",
53    "-specs=nosys.specs",
54]
55
56# Board related headfiles search path.
57board_include_dirs = [
58  rebase_path("include"),
59  rebase_path("liteos_common_include"),
60]
61
62# Board adapter dir for OHOS components.
63board_adapter_dir = "//device/soc/telink/b91/adapter"
64
65# Sysroot path.
66board_configed_sysroot = ""
67
68# Board storage type, it used for file system generation.
69storage_type = ""
70