component.mk 874 B

1234567891011121314151617181920212223242526
  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 \
  5. esp32.rom.libgcc.ld \
  6. esp32.rom.syscalls.ld \
  7. esp32.rom.newlib-data.ld
  8. #SPI-RAM incompatible functions can be used in when the SPI RAM
  9. #workaround is not enabled.
  10. ifndef CONFIG_SPIRAM_CACHE_WORKAROUND
  11. LINKER_SCRIPTS += esp32.rom.newlib-funcs.ld
  12. endif
  13. ifdef CONFIG_NEWLIB_NANO_FORMAT
  14. LINKER_SCRIPTS += esp32.rom.newlib-nano.ld
  15. endif
  16. ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
  17. LINKER_SCRIPTS += esp32.rom.spiflash.ld
  18. endif
  19. COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32/ld \
  20. $(addprefix -T ,$(LINKER_SCRIPTS)) \
  21. COMPONENT_ADD_LINKER_DEPS += $(addprefix esp32/ld/, $(LINKER_SCRIPTS))