toolchain: migrate iterable sections calls to the external API
This migrates all the current iterable section usages to the external API, dropping the "Z_" prefix: Z_ITERABLE_SECTION_ROM Z_ITERABLE_SECTION_ROM_GC_ALLOWED Z_ITERABLE_SECTION_RAM Z_ITERABLE_SECTION_RAM_GC_ALLOWED Z_STRUCT_SECTION_ITERABLE Z_STRUCT_SECTION_ITERABLE_ALTERNATE Z_STRUCT_SECTION_FOREACH Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
34d2ca613f
commit
f88a420d69
54 changed files with 188 additions and 190 deletions
|
@ -188,19 +188,19 @@ SECTIONS
|
|||
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
Z_ITERABLE_SECTION_RAM(_static_thread_data, 4)
|
||||
ITERABLE_SECTION_RAM(_static_thread_data, 4)
|
||||
|
||||
#pragma push_macro("Z_ITERABLE_SECTION_RAM")
|
||||
#pragma push_macro("Z_ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#undef Z_ITERABLE_SECTION_RAM_GC_ALLOWED
|
||||
#define Z_ITERABLE_SECTION_RAM_GC_ALLOWED(x, y)
|
||||
#undef Z_ITERABLE_SECTION_RAM
|
||||
#define Z_ITERABLE_SECTION_RAM(x, y)
|
||||
#pragma push_macro("ITERABLE_SECTION_RAM")
|
||||
#pragma push_macro("ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#undef ITERABLE_SECTION_RAM_GC_ALLOWED
|
||||
#define ITERABLE_SECTION_RAM_GC_ALLOWED(x, y)
|
||||
#undef ITERABLE_SECTION_RAM
|
||||
#define ITERABLE_SECTION_RAM(x, y)
|
||||
#include <linker/common-ram.ld>
|
||||
/* Restore original value for symbols referenced by `common-ram.ld` */
|
||||
_net_buf_pool_list = _esp_net_buf_pool_list;
|
||||
#pragma pop_macro("Z_ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#pragma pop_macro("Z_ITERABLE_SECTION_RAM")
|
||||
#pragma pop_macro("ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#pragma pop_macro("ITERABLE_SECTION_RAM")
|
||||
|
||||
.dram0.data :
|
||||
{
|
||||
|
@ -355,10 +355,10 @@ _net_buf_pool_list = _esp_net_buf_pool_list;
|
|||
_rodata_end = ABSOLUTE(.);
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
#pragma push_macro("Z_ITERABLE_SECTION_ROM")
|
||||
#pragma push_macro("ITERABLE_SECTION_ROM")
|
||||
#pragma push_macro("ROMABLE_REGION")
|
||||
#undef Z_ITERABLE_SECTION_ROM
|
||||
#define Z_ITERABLE_SECTION_ROM(x,y)
|
||||
#undef ITERABLE_SECTION_ROM
|
||||
#define ITERABLE_SECTION_ROM(x,y)
|
||||
#undef ROMABLE_REGION
|
||||
/* This is to workaround limitation of `esptool` which needs single `FLASH` data segment
|
||||
* which is already defined above. In case, `common-rom.ld` creates additional segments
|
||||
|
@ -373,7 +373,7 @@ __log_backends_end = __esp_log_backends_end;
|
|||
__shell_root_cmds_start = __esp_shell_root_cmds_start;
|
||||
__shell_root_cmds_end = __esp_shell_root_cmds_end;
|
||||
#pragma pop_macro("ROMABLE_REGION")
|
||||
#pragma pop_macro("Z_ITERABLE_SECTION_ROM")
|
||||
#pragma pop_macro("ITERABLE_SECTION_ROM")
|
||||
|
||||
SECTION_PROLOGUE(_TEXT_SECTION_NAME, , ALIGN(4))
|
||||
{
|
||||
|
|
|
@ -183,19 +183,19 @@ SECTIONS
|
|||
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
Z_ITERABLE_SECTION_RAM(_static_thread_data, 4)
|
||||
ITERABLE_SECTION_RAM(_static_thread_data, 4)
|
||||
|
||||
#pragma push_macro("Z_ITERABLE_SECTION_RAM")
|
||||
#pragma push_macro("Z_ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#undef Z_ITERABLE_SECTION_RAM_GC_ALLOWED
|
||||
#define Z_ITERABLE_SECTION_RAM_GC_ALLOWED(x, y)
|
||||
#undef Z_ITERABLE_SECTION_RAM
|
||||
#define Z_ITERABLE_SECTION_RAM(x, y)
|
||||
#pragma push_macro("ITERABLE_SECTION_RAM")
|
||||
#pragma push_macro("ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#undef ITERABLE_SECTION_RAM_GC_ALLOWED
|
||||
#define ITERABLE_SECTION_RAM_GC_ALLOWED(x, y)
|
||||
#undef ITERABLE_SECTION_RAM
|
||||
#define ITERABLE_SECTION_RAM(x, y)
|
||||
#include <linker/common-ram.ld>
|
||||
/* Restore original value for symbols referenced by `common-ram.ld` */
|
||||
_net_buf_pool_list = _esp_net_buf_pool_list;
|
||||
#pragma pop_macro("Z_ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#pragma pop_macro("Z_ITERABLE_SECTION_RAM")
|
||||
#pragma pop_macro("ITERABLE_SECTION_RAM_GC_ALLOWED")
|
||||
#pragma pop_macro("ITERABLE_SECTION_RAM")
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue