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>
This commit is contained in:
Frantisek Hrbata 2023-10-02 08:37:57 +02:00
parent 16e5b4f80d
commit 1f80a9bb0f

View File

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