esp32: Provision to redirect .bss to external ram through linker fragments

Include external ram section in the linker template to process it
through linker script generation mechanism. This enables redirection of .bss section to external memory using linker fragments

libnet80211, libpp, libbt, liblwip: Redirect .bss through fragments
This commit is contained in:
Sachin Parekh
2020-07-31 12:26:29 +05:30
committed by bot
parent 9fd5138ce2
commit be5563207d
11 changed files with 61 additions and 46 deletions

View File

@@ -564,7 +564,8 @@ idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}"
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
REQUIRES nvs_flash soc esp_timer esp_pm
PRIV_REQUIRES esp_ipc)
PRIV_REQUIRES esp_ipc
LDFRAGMENTS "linker.lf")
if(CONFIG_BT_ENABLED)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough -Wno-unused-const-variable)

5
components/bt/linker.lf Normal file
View File

@@ -0,0 +1,5 @@
[mapping:bt]
archive: libbt.a
entries:
if SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY = y:
* (extram_bss)