Merge branch 'bugfix/psram_newlib_time_rom_v4.2' into 'release/v4.2'

rom: fix newlib time ROM functions being regardless of CONFIG_SPIRAM_CACHE_WORKAROUND (v4.2)

See merge request espressif/esp-idf!23392
release/v4.2
Zim Kalinowski 2023-05-15 18:46:22 +08:00
commit af6dafe01e
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -20,12 +20,6 @@ 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
ifndef CONFIG_SDK_TOOLCHAIN_SUPPORTS_TIME_WIDE_64_BITS
# If SDK_TOOLCHAIN_SUPPORTS_TIME_WIDE_64_BITS option is defined
# then all time functions from the ROM memory will not be linked.
@ -33,6 +27,13 @@ ifndef CONFIG_SDK_TOOLCHAIN_SUPPORTS_TIME_WIDE_64_BITS
LINKER_SCRIPTS += esp32.rom.newlib-time.ld
endif
endif #CONFIG_SPIRAM_CACHE_WORKAROUND
ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
LINKER_SCRIPTS += esp32.rom.spiflash.ld
endif
COMPONENT_SRCDIRS := patches
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/esp32/ld \