component.mk 774 B

1234567891011121314151617181920212223
  1. #Linker scripts used to link the final application.
  2. #Warning: These linker scripts are only used when the normal app is compiled; the bootloader
  3. #specifies its own scripts.
  4. LINKER_SCRIPTS += esp32.rom.ld esp32.rom.libgcc.ld
  5. #SPI-RAM incompatible functions can be used in when the SPI RAM
  6. #workaround is not enabled.
  7. ifndef CONFIG_SPIRAM_CACHE_WORKAROUND
  8. LINKER_SCRIPTS += esp32.rom.spiram_incompatible_fns.ld
  9. endif
  10. ifdef CONFIG_NEWLIB_NANO_FORMAT
  11. LINKER_SCRIPTS += esp32.rom.nanofmt.ld
  12. endif
  13. ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
  14. LINKER_SCRIPTS += esp32.rom.spiflash.ld
  15. endif
  16. COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32/ld \
  17. $(addprefix -T ,$(LINKER_SCRIPTS)) \
  18. COMPONENT_ADD_LINKER_DEPS += $(addprefix esp32/ld/, $(LINKER_SCRIPTS))