config.gni 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved.
  2. # Kernel type, e.g. "linux", "liteos_a", "liteos_m".
  3. kernel_type = "liteos_m"
  4. # Kernel version.
  5. kernel_version = ""
  6. # Board CPU type, e.g. "cortex-a7", "riscv32".
  7. board_cpu = ""
  8. # Board arch, e.g. "armv7-a", "rv32imac".
  9. board_arch = "rv32imac"
  10. # Toolchain name used for system compiling.
  11. # E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf.
  12. # Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toolchain.
  13. board_toolchain = "riscv32-unknown-elf"
  14. # The toolchain path installed, it's not mandatory if you have added toolchain path to your ~/.bashrc.
  15. board_toolchain_path = ""
  16. # Compiler prefix.
  17. board_toolchain_prefix = "riscv32-unknown-elf-"
  18. # Compiler type, "gcc" or "clang".
  19. board_toolchain_type = "gcc"
  20. # Board related common compile flags.
  21. board_cflags = [
  22. "-mabi=ilp32",
  23. "-falign-functions=2",
  24. "-msave-restore",
  25. "-fno-optimize-strlen",
  26. "-freorder-blocks-algorithm=simple",
  27. "-fno-schedule-insns",
  28. "-fno-inline-small-functions",
  29. "-fno-inline-functions-called-once",
  30. "-mtune=size",
  31. "-mno-small-data-limit=0",
  32. "-fno-aggressive-loop-optimizations",
  33. "-std=c99",
  34. "-Wpointer-arith",
  35. "-Wstrict-prototypes",
  36. "-ffunction-sections",
  37. "-fdata-sections",
  38. "-fno-exceptions",
  39. "-fno-short-enums",
  40. "-Wextra",
  41. "-Wundef",
  42. "-U",
  43. "PRODUCT_CFG_BUILD_TIME",
  44. "-DLOS_COMPILE_LDM",
  45. "-DPRODUCT_USR_SOFT_VER_STR=None",
  46. "-DCYGPKG_POSIX_SIGNALS",
  47. "-D__ECOS__",
  48. "-D__RTOS_",
  49. "-DPRODUCT_CFG_HAVE_FEATURE_SYS_ERR_INFO",
  50. "-D__LITEOS__",
  51. "-DLIB_CONFIGURABLE",
  52. "-DLOSCFG_SHELL",
  53. "-DLOSCFG_CACHE_STATICS",
  54. "-DCUSTOM_AT_COMMAND",
  55. "-DLOS_COMPILE_LDM",
  56. "-DLOS_CONFIG_IPERF3",
  57. "-DCMSIS_OS_VER=2",
  58. "-DSECUREC_ENABLE_SCANF_FILE=0",
  59. "-DCONFIG_AT_COMMAND",
  60. "-DPRODUCT_CFG_CHIP_VER_STR=Hi3861V100",
  61. "-DCHIP_VER_Hi3861",
  62. "-DPRODUCT_CFG_SOFT_VER_STR=Hi3861",
  63. "-DHI_BOARD_ASIC",
  64. "-DHI_ON_FLASH",
  65. "-DLITEOS_WIFI_IOT_VERSION",
  66. ]
  67. board_cxx_flags = board_cflags
  68. board_ld_flags = []
  69. # Board related headfiles search path.
  70. board_include_dirs = [
  71. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/include",
  72. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/include",
  73. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/system/include",
  74. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/config",
  75. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/config/nv",
  76. "${ohos_root_path}utils/native/lite/include",
  77. "${ohos_root_path}device/bossay/hi3861_l0/hi3861_adapter/kal/cmsis",
  78. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/kernel/base/include",
  79. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/include",
  80. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include",
  81. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/arch/risc-v/rv32im",
  82. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libm/include",
  83. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libsec/include",
  84. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/net/wpa_supplicant-2.7/src/common",
  85. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/plat/riscv",
  86. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include",
  87. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/kernel/extended/runstop",
  88. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/posix/include",
  89. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/linux/include",
  90. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/third_party/lwip_sack/include",
  91. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include",
  92. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/arch/generic",
  93. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/arch/riscv32",
  94. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/hw/include",
  95. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/nuttx/include",
  96. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libsec/include",
  97. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/config",
  98. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/user",
  99. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/plat",
  100. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/targets/hi3861v100/extend/include",
  101. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/arch",
  102. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/bionic/libm",
  103. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/shell/include",
  104. "${ohos_root_path}device/bossay/hi3861_l0/sdk_liteos/platform/os/Huawei_LiteOS/net/telnet/include",
  105. ]
  106. # Board adapter dir for OHOS components.
  107. board_adapter_dir = "//device/bossay/hi3861_l0/hi3861_adapter"
  108. # Sysroot path.
  109. board_configed_sysroot = ""
  110. # Board storage type, it used for file system generation.
  111. storage_type = ""