Skip to content

Commit 49a96f6

Browse files
tbursztykakartben
authored andcommitted
cmake: Add service section to commo-rom linker generator
struct init_entry may point to a struct device or a struct service, each ones belonging to device or service iterable section. Service section being newly added, handling it in cmake relevantly. Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
1 parent c341f53 commit 49a96f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/linker_script/common/common-rom.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ zephyr_linker_section_obj_level(SECTION init LEVEL APPLICATION)
1212
zephyr_linker_section_obj_level(SECTION init LEVEL SMP)
1313

1414
zephyr_iterable_section(NAME device NUMERIC KVMA RAM_REGION GROUP RODATA_REGION)
15+
zephyr_iterable_section(NAME service NUMERIC KVMA RAM_REGION GROUP RODATA_REGION)
1516

1617
if(CONFIG_GEN_SW_ISR_TABLE AND NOT CONFIG_DYNAMIC_INTERRUPTS)
1718
# ld align has been changed to subalign to provide identical behavior scatter vs. ld.

0 commit comments

Comments
 (0)