Skip to content

Commit 4e1f726

Browse files
Zhiqiang-HouHardevsinh-Palaniya
authored andcommitted
soc: nxp: imx93: add resource table section for m33
Add .resource_table section to the linker script for the i.MX93 Cortex-M33. Signed-off-by: Hou Zhiqiang <[email protected]>
1 parent 9253834 commit 4e1f726

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

soc/nxp/imx/imx9/imx93/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ elseif(CONFIG_SOC_MIMX9352_M33)
1111
zephyr_include_directories(.)
1212
zephyr_include_directories(m33)
1313
zephyr_sources(m33/soc.c)
14-
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
14+
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/m33/linker.ld CACHE INTERNAL "")
1515
zephyr_library_sources_ifdef(CONFIG_SOC_RESET_HOOK m33/imx93_m33_startup.S)
1616
endif()
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/arch/arm/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)