esp-idf/components/esp_phy/linker.lf
Frantisek Hrbata 1f80a9bb0f 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>
2023-10-02 08:37:57 +02:00

32 lines
622 B
Plaintext

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:
.phyiram+
[mapping:phy]
archive: libphy.a
entries:
* (noflash_data)
if IDF_TARGET_ESP32 = y:
* (phy_iram)
[mapping:rtc]
archive: librtc.a
entries:
* (noflash_text)
[mapping:esp_phy]
archive: libesp_phy.a
entries:
if ESP_WIFI_SLP_IRAM_OPT =y:
phy_init:esp_phy_enable (noflash)
phy_init:esp_phy_disable (noflash)
phy_init:esp_wifi_bt_power_domain_off (noflash)