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

esp_rom: link rom spi flash functions in bootloader stage (v4.2)

See merge request espressif/esp-idf!15258
This commit is contained in:
Jiang Jiang Jian
2021-12-06 03:57:55 +00:00

View File

@ -14,6 +14,12 @@ if(BOOTLOADER_BUILD)
list(APPEND scripts "esp32s2/ld/esp32s2.rom.spiflash.ld")
endif()
if(target STREQUAL "esp32")
if(NOT CONFIG_SPI_FLASH_ROM_DRIVER_PATCH)
list(APPEND scripts "esp32/ld/esp32.rom.spiflash.ld")
endif()
endif()
if(CONFIG_ESP32_REV_MIN_3)
list(APPEND scripts "esp32/ld/esp32.rom.eco3.ld")
endif()