mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
#Linker scripts used to link the final application.
|
|
#Warning: These linker scripts are only used when the normal app is compiled; the bootloader
|
|
#specifies its own scripts.
|
|
LINKER_SCRIPTS += esp32.rom.ld \
|
|
esp32.rom.libgcc.ld \
|
|
esp32.rom.syscalls.ld \
|
|
esp32.rom.newlib-data.ld
|
|
|
|
#SPI-RAM incompatible functions can be used in when the SPI RAM
|
|
#workaround is not enabled.
|
|
ifndef CONFIG_SPIRAM_CACHE_WORKAROUND
|
|
LINKER_SCRIPTS += esp32.rom.newlib-funcs.ld
|
|
|
|
ifdef CONFIG_ESP32_REV_MIN_3
|
|
LINKER_SCRIPTS += esp32.rom.eco3.ld
|
|
endif
|
|
|
|
# Include in newlib nano from ROM only if SPIRAM cache workaround is disabled
|
|
ifdef CONFIG_NEWLIB_NANO_FORMAT
|
|
LINKER_SCRIPTS += esp32.rom.newlib-nano.ld
|
|
endif
|
|
|
|
endif #CONFIG_SPIRAM_CACHE_WORKAROUND
|
|
|
|
ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
|
|
LINKER_SCRIPTS += esp32.rom.spiflash.ld
|
|
endif
|
|
|
|
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32/ld \
|
|
$(addprefix -T ,$(LINKER_SCRIPTS)) \
|
|
|
|
COMPONENT_ADD_LINKER_DEPS += $(addprefix esp32/ld/, $(LINKER_SCRIPTS))
|