• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1boot_srcs = startup drivers/lsadc drivers/flash drivers/efuse drivers/gpio drivers/io common/crc32 common/nvm common/partition_table upg lib/lzma lzmaram secure
2boot_common_srcs = ../commonboot/crc32 ../commonboot/efuse ../commonboot/flash
3BOOT_CCFLAGS := -mabi=ilp32 -march=rv32imc -freorder-blocks-algorithm=simple -fno-schedule-insns -nostdinc -fno-aggressive-loop-optimizations -fno-builtin -fno-exceptions -fno-short-enums -mtune=size -msmall-data-limit=0 -Wall -Werror -Os -std=c99 -falign-functions=2 -fdata-sections -ffunction-sections -fno-common -fstack-protector-strong
4BOOT_DEFINE := -DARCH_RISCV -DLOS_COMPILE_LDM -DHI_BOARD_ASIC
5BOOT_INC := -I$(MAIN_TOPDIR)/boot/flashboot/fixed/include \
6    -I$(MAIN_TOPDIR)/boot/flashboot/upg \
7    -I$(MAIN_TOPDIR)/boot/flashboot/include \
8    -I$(MAIN_TOPDIR)/boot/flashboot/drivers/lsadc \
9    -I$(MAIN_TOPDIR)/boot/flashboot/drivers/gpio \
10    -I$(MAIN_TOPDIR)/boot/flashboot/drivers/io \
11    -I$(MAIN_TOPDIR)/boot/flashboot/drivers/efuse \
12    -I$(MAIN_TOPDIR)/boot/flashboot/include/lzma \
13    -I$(MAIN_TOPDIR)/boot/flashboot/lib/lzma \
14    -I$(MAIN_TOPDIR)/boot/flashboot/secure \
15    -I$(MAIN_TOPDIR)/boot/commonboot
16
17ifeq ($(CONFIG_COMPRESSION_OTA_SUPPORT), y)
18    BOOT_DEFINE += -DCONFIG_COMPRESSION_OTA_SUPPORT
19endif
20
21ifeq ($(CONFIG_DUAL_PARTITION_OTA_SUPPORT), y)
22    BOOT_DEFINE += -DCONFIG_DUAL_PARTITION_OTA_SUPPORT
23endif
24
25ifeq ($(CONFIG_TARGET_SIG_ECC), y)
26    BOOT_DEFINE += -DCONFIG_TARGET_SIG_ECC
27endif
28
29ifeq ($(CONFIG_TARGET_SIG_RSA_V15), y)
30    BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_V15
31endif
32
33ifeq ($(CONFIG_TARGET_SIG_RSA_PSS), y)
34    BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_PSS
35endif
36
37ifeq ($(CONFIG_FLASH_ENCRYPT_SUPPORT), y)
38    BOOT_DEFINE += -DCONFIG_FLASH_ENCRYPT_SUPPORT
39endif
40
41ifeq ($(CONFIG_FACTORY_TEST_SUPPORT), y)
42    BOOT_DEFINE += -DCONFIG_FACTORY_TEST_SUPPORT
43endif
44
45ifeq ($(CONFIG_QUICK_SEND_MODE), y)
46    BOOT_DEFINE += -DCONFIG_QUICK_SEND_MODE
47endif
48
49ifeq ($(CONFIG_CHIP_PKT_48K), y)
50    BOOT_DEFINE += -DCONFIG_CHIP_PKT_48K
51else
52    BOOT_DEFINE += -DCONFIG_CHIP_PKT_32K
53endif
54
55BOOT_ASFLAGS = -mabi=ilp32 -march=rv32imc -x assembler-with-cpp -Os -Wall -Werror -nostdinc -fno-common
56BOOT_LINK_FLAGS = -nostdlib -nostartfiles -static --gc-sections
57