esp_system: component init functions macro

Allows components to declare initialization function, such that the
startup code does not have direct dependency on the component.
This commit is contained in:
Renz Christian Bagaporo
2020-02-05 19:57:40 +08:00
committed by Angus Gratton
parent bb5535ca5d
commit 0f43a2620d
4 changed files with 64 additions and 0 deletions
@@ -214,6 +214,10 @@ SECTIONS
_coredump_dram_end = ABSOLUTE(.);
/* should be placed after coredump mapping */
_esp_system_init_fn_array_start = ABSOLUTE(.);
KEEP (*(SORT(.esp_system_init_fn) SORT(.esp_system_init_fn.*)))
_esp_system_init_fn_array_end = ABSOLUTE(.);
mapping[dram0_data]
_data_end = ABSOLUTE(.);