Skip to content

Commit 336803e

Browse files
galakcarlescufi
authored andcommitted
tests: iterable_sections: Add missing zephyr_iterable_section
As the test is for iterable sections, we need to utilize zephyr_iterable_section for targets that need linker script generation like arm-clang. So add zephyr_iterable_section() for the RAM & ROM sections that the testcases utilizes. Signed-off-by: Kumar Gala <[email protected]>
1 parent 71d0394 commit 336803e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/misc/iterable_sections/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ FILE(GLOB app_sources src/*.c)
88
target_sources(app PRIVATE ${app_sources})
99

1010
zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
11+
zephyr_iterable_section(NAME test_ram GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN 4)
12+
zephyr_iterable_section(NAME test_ram2 GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT} SUBALIGN 4)
13+
1114
zephyr_linker_sources(SECTIONS sections-rom.ld)
15+
zephyr_iterable_section(NAME test_rom KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)
16+
zephyr_iterable_section(NAME test_rom2 KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)

0 commit comments

Comments
 (0)