Procházet zdrojové kódy

fix(lf): fix orphaned .phyiram sections

There are  orphaned .phyiram sections from components/esp_phy/lib/esp32/libphy.a when ESP_WIFI_SLP_IRAM_OPT
is not set on esp32. It can be seen in the wifi_station example examples/wifi/getting_started/station with
the default configuration. Even though they seem to be correctly placed in flash(linker got it right), I
believe this should be fixed. At least for the esp-idf-size, because these doesn't seem to be accounted.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Frantisek Hrbata před 2 roky
rodič
revize
1f80a9bb0f
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      components/esp_phy/linker.lf

+ 4 - 1
components/esp_phy/linker.lf

@@ -1,7 +1,10 @@
 if IDF_TARGET_ESP32 = y:
     [scheme:phy_iram]
     entries:
+    if ESP_WIFI_SLP_IRAM_OPT = y:
         phy_iram -> iram0_text
+    else:
+        phy_iram -> flash_text
 
     [sections:phy_iram]
     entries:
@@ -11,7 +14,7 @@ if IDF_TARGET_ESP32 = y:
 archive: libphy.a
 entries:
     * (noflash_data)
-    if ESP_WIFI_SLP_IRAM_OPT = y && IDF_TARGET_ESP32 = y:
+    if IDF_TARGET_ESP32 = y:
         * (phy_iram)
 
 [mapping:rtc]