mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_rom: link newlib nano from ROM only if SPIRAM cache workaround is disabled
This commit is contained in:
parent
c9cc694dbb
commit
3803b17048
@ -30,10 +30,12 @@ else() # Regular app build
|
||||
# Instead, those functions can be used from the toolchain by ESP-IDF.
|
||||
target_linker_script(${COMPONENT_LIB} INTERFACE "esp32/ld/esp32.rom.newlib-funcs-time.ld")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_NEWLIB_NANO_FORMAT)
|
||||
list(APPEND scripts "esp32/ld/esp32.rom.newlib-nano.ld")
|
||||
# Include in newlib nano from ROM only if SPIRAM cache workaround is disabled
|
||||
if(CONFIG_NEWLIB_NANO_FORMAT)
|
||||
list(APPEND scripts "esp32/ld/esp32.rom.newlib-nano.ld")
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if(NOT CONFIG_SPI_FLASH_ROM_DRIVER_PATCH)
|
||||
|
@ -10,12 +10,14 @@ LINKER_SCRIPTS += esp32.rom.ld \
|
||||
#workaround is not enabled.
|
||||
ifndef CONFIG_SPIRAM_CACHE_WORKAROUND
|
||||
LINKER_SCRIPTS += esp32.rom.newlib-funcs.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
|
||||
|
Loading…
Reference in New Issue
Block a user