boot_srcs = startup drivers/lsadc drivers/flash drivers/efuse drivers/gpio drivers/io common/crc32 common/nvm common/partition_table upg lib/lzma lzmaram secure boot_common_srcs = ../commonboot/crc32 ../commonboot/efuse ../commonboot/flash BOOT_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 BOOT_DEFINE := -DARCH_RISCV -DLOS_COMPILE_LDM -DHI_BOARD_ASIC BOOT_INC := -I$(MAIN_TOPDIR)/boot/flashboot/fixed/include \ -I$(MAIN_TOPDIR)/boot/flashboot/upg \ -I$(MAIN_TOPDIR)/boot/flashboot/include \ -I$(MAIN_TOPDIR)/boot/flashboot/drivers/lsadc \ -I$(MAIN_TOPDIR)/boot/flashboot/drivers/gpio \ -I$(MAIN_TOPDIR)/boot/flashboot/drivers/io \ -I$(MAIN_TOPDIR)/boot/flashboot/drivers/efuse \ -I$(MAIN_TOPDIR)/boot/flashboot/include/lzma \ -I$(MAIN_TOPDIR)/boot/flashboot/lib/lzma \ -I$(MAIN_TOPDIR)/boot/flashboot/secure \ -I$(MAIN_TOPDIR)/boot/commonboot ifeq ($(CONFIG_COMPRESSION_OTA_SUPPORT), y) BOOT_DEFINE += -DCONFIG_COMPRESSION_OTA_SUPPORT endif ifeq ($(CONFIG_DUAL_PARTITION_OTA_SUPPORT), y) BOOT_DEFINE += -DCONFIG_DUAL_PARTITION_OTA_SUPPORT endif ifeq ($(CONFIG_TARGET_SIG_ECC), y) BOOT_DEFINE += -DCONFIG_TARGET_SIG_ECC endif ifeq ($(CONFIG_TARGET_SIG_RSA_V15), y) BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_V15 endif ifeq ($(CONFIG_TARGET_SIG_RSA_PSS), y) BOOT_DEFINE += -DCONFIG_TARGET_SIG_RSA_PSS endif ifeq ($(CONFIG_FLASH_ENCRYPT_SUPPORT), y) BOOT_DEFINE += -DCONFIG_FLASH_ENCRYPT_SUPPORT endif ifeq ($(CONFIG_FACTORY_TEST_SUPPORT), y) BOOT_DEFINE += -DCONFIG_FACTORY_TEST_SUPPORT endif ifeq ($(CONFIG_QUICK_SEND_MODE), y) BOOT_DEFINE += -DCONFIG_QUICK_SEND_MODE endif ifeq ($(CONFIG_CHIP_PKT_48K), y) BOOT_DEFINE += -DCONFIG_CHIP_PKT_48K else BOOT_DEFINE += -DCONFIG_CHIP_PKT_32K endif BOOT_ASFLAGS = -mabi=ilp32 -march=rv32imc -x assembler-with-cpp -Os -Wall -Werror -nostdinc -fno-common BOOT_LINK_FLAGS = -nostdlib -nostartfiles -static --gc-sections