Skip to content

Commit 30f8273

Browse files
emfenddleach02
authored andcommitted
soc: mimx8mm6_m4: add .resource_table section to linker script
This is required to include the resource table in the build output. Signed-off-by: Matthias Fend <[email protected]>
1 parent 8566b00 commit 30f8273

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
zephyr_sources(
88
soc.c
99
)
10+
11+
if(CONFIG_OPENAMP_RSC_TABLE)
12+
zephyr_linker_section(NAME .resource_table GROUP ROM_REGION NOINPUT)
13+
zephyr_linker_section_configure(SECTION .resource_table KEEP INPUT ".resource_table*")
14+
endif()

soc/arm/nxp_imx/mimx8mm6_m4/linker.ld

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@
55
*/
66

77
#include <arch/arm/aarch32/cortex_m/scripts/linker.ld>
8+
9+
SECTIONS
10+
{
11+
#ifdef CONFIG_OPENAMP_RSC_TABLE
12+
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4))
13+
{
14+
KEEP(*(.resource_table*))
15+
} GROUP_LINK_IN(ROMABLE_REGION)
16+
#endif
17+
}

0 commit comments

Comments
 (0)