fix bootloader build with rom flash driver

Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
This commit is contained in:
boarchuz 2021-09-02 05:12:49 +10:00 committed by bot
parent 25ce06d32e
commit 59a37806e7

View File

@ -14,6 +14,12 @@ if(BOOTLOADER_BUILD)
list(APPEND scripts "esp32s2beta/ld/esp32s2beta.rom.spiflash.ld") list(APPEND scripts "esp32s2beta/ld/esp32s2beta.rom.spiflash.ld")
endif() 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) if(CONFIG_ESP32_REV_MIN_3)
list(APPEND scripts "esp32/ld/esp32.rom.eco3.ld") list(APPEND scripts "esp32/ld/esp32.rom.eco3.ld")
endif() endif()