Selaa lähdekoodia

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
boarchuz 4 vuotta sitten
vanhempi
sitoutus
cda459672a
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      components/esp_rom/CMakeLists.txt

+ 3 - 0
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()