2016-08-17 23:08:22 +08:00
|
|
|
#
|
2016-11-10 13:20:55 +11:00
|
|
|
# Main bootloader Makefile.
|
2016-08-17 23:08:22 +08:00
|
|
|
#
|
2016-11-10 13:20:55 +11: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 23:08:22 +08:00
|
|
|
#
|
|
|
|
|
2017-01-09 03:08:24 +08:00
|
|
|
LINKER_SCRIPTS := \
|
|
|
|
esp32.bootloader.ld \
|
|
|
|
$(IDF_PATH)/components/esp32/ld/esp32.rom.ld \
|
2017-07-20 16:26:35 +08:00
|
|
|
$(IDF_PATH)/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld \
|
2017-01-30 14:29:50 +11:00
|
|
|
$(IDF_PATH)/components/esp32/ld/esp32.peripherals.ld \
|
2017-01-09 03:08:24 +08:00
|
|
|
esp32.bootloader.rom.ld
|
2016-08-17 23:08:22 +08:00
|
|
|
|
2017-03-09 10:29:00 +03:00
|
|
|
ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
|
|
|
|
LINKER_SCRIPTS += $(IDF_PATH)/components/esp32/ld/esp32.rom.spiflash.ld
|
|
|
|
endif
|
|
|
|
|
2017-06-23 14:08:01 +10:00
|
|
|
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH) $(addprefix -T ,$(LINKER_SCRIPTS))
|
2016-12-12 15:54:30 +11:00
|
|
|
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS)
|