diff --git a/components/esp_rom/CMakeLists.txt b/components/esp_rom/CMakeLists.txt index 47a8a284d1..b66eb7b4f4 100644 --- a/components/esp_rom/CMakeLists.txt +++ b/components/esp_rom/CMakeLists.txt @@ -48,6 +48,9 @@ endif() if(BOOTLOADER_BUILD) if(target STREQUAL "esp32") rom_linker_script("newlib-funcs") + if(NOT CONFIG_SPI_FLASH_ROM_DRIVER_PATCH) + rom_linker_script("spiflash") + endif() if(CONFIG_ESP32_REV_MIN_3) rom_linker_script("eco3") endif()