1loaderboot_srcs = startup common common/crc32 common/nvm common/partition_table drivers/lsadc drivers/flash drivers/efuse secure 2loaderboot_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/loaderboot/include \ 6 -I$(MAIN_TOPDIR)/boot/loaderboot/fixed/include \ 7 -I$(MAIN_TOPDIR)/boot/loaderboot/secure \ 8 -I$(MAIN_TOPDIR)/boot/commonboot 9 10ifeq ($(CONFIG_COMPRESSION_OTA_SUPPORT), y) 11 BOOT_DEFINE += -DCONFIG_COMPRESSION_OTA_SUPPORT 12endif 13 14ifeq ($(CONFIG_DUAL_PARTITION_OTA_SUPPORT), y) 15 BOOT_DEFINE += -DCONFIG_DUAL_PARTITION_OTA_SUPPORT 16endif 17 18ifeq ($(CONFIG_TARGET_SIG_ECC), y) 19 BOOT_DEFINE += -DCONFIG_TARGET_SIG_ECC 20endif 21 22ifeq ($(CONFIG_TARGET_SIG_RSA_V15), y) 23 BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_V15 24endif 25 26ifeq ($(CONFIG_TARGET_SIG_RSA_PSS), y) 27 BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_PSS 28endif 29 30ifeq ($(CONFIG_FLASH_ENCRYPT_SUPPORT), y) 31 BOOT_DEFINE += -DCONFIG_FLASH_ENCRYPT_SUPPORT 32endif 33 34ifeq ($(CONFIG_CHIP_PKT_48K), y) 35 BOOT_DEFINE += -DCONFIG_CHIP_PKT_48K 36else 37 BOOT_DEFINE += -DCONFIG_CHIP_PKT_32K 38endif 39 40BOOT_ASFLAGS = -mabi=ilp32 -march=rv32imc -x assembler-with-cpp -Os -Wall -Werror -nostdinc -fno-common 41BOOT_LINK_FLAGS = -nostdlib -nostartfiles -static --gc-sections 42