Merge branch 'bugfix/link_spi_flash_rom_func_in_bootloader_stage' into 'master'

esp_rom: link rom spi flash functions in bootloader stage

Closes IDFGH-5065 and IDFGH-5800

See merge request espressif/esp-idf!15202
This commit is contained in:
Armando (Dou Yiwen)
2021-09-18 05:14:23 +00:00

View File

@@ -48,6 +48,9 @@ endif()
if(BOOTLOADER_BUILD) if(BOOTLOADER_BUILD)
if(target STREQUAL "esp32") if(target STREQUAL "esp32")
rom_linker_script("newlib-funcs") rom_linker_script("newlib-funcs")
if(NOT CONFIG_SPI_FLASH_ROM_DRIVER_PATCH)
rom_linker_script("spiflash")
endif()
if(CONFIG_ESP32_REV_MIN_3) if(CONFIG_ESP32_REV_MIN_3)
rom_linker_script("eco3") rom_linker_script("eco3")
endif() endif()