2016-08-17 11:08:22 -04:00
|
|
|
#
|
2016-11-09 21:20:55 -05:00
|
|
|
# Main bootloader Makefile.
|
2016-08-17 11:08:22 -04:00
|
|
|
#
|
2016-11-09 21:20:55 -05:00
|
|
|
# This is basically the same as a component makefile, but in the case of the bootloader
|
|
|
|
# we pull in bootloader-specific linker arguments.
|
2016-08-17 11:08:22 -04:00
|
|
|
#
|
|
|
|
|
2017-01-08 14:08:24 -05:00
|
|
|
LINKER_SCRIPTS := \
|
2019-04-04 03:20:24 -04:00
|
|
|
$(IDF_TARGET).bootloader.ld \
|
|
|
|
$(IDF_TARGET).bootloader.rom.ld \
|
|
|
|
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.ld \
|
|
|
|
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.spiram_incompatible_fns.ld \
|
|
|
|
$(IDF_PATH)/components/$(IDF_TARGET)/ld/$(IDF_TARGET).peripherals.ld
|
2016-08-17 11:08:22 -04:00
|
|
|
|
2017-03-09 02:29:00 -05:00
|
|
|
ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
|
2019-04-04 03:20:24 -04:00
|
|
|
LINKER_SCRIPTS += $(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.spiflash.ld
|
2017-03-09 02:29:00 -05:00
|
|
|
endif
|
|
|
|
|
2017-06-23 00:08:01 -04:00
|
|
|
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH) $(addprefix -T ,$(LINKER_SCRIPTS))
|
2016-12-11 23:54:30 -05:00
|
|
|
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS)
|