From 22fad5110ce8363f46811bdcd5451c0a6989bdd5 Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Thu, 2 Sep 2021 05:12:49 +1000 Subject: [PATCH] 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 --- components/esp_rom/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_rom/CMakeLists.txt b/components/esp_rom/CMakeLists.txt index 667ab7f557..6f6f4613ed 100644 --- a/components/esp_rom/CMakeLists.txt +++ b/components/esp_rom/CMakeLists.txt @@ -25,6 +25,9 @@ rom_linker_script("libgcc") 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()