Skip to content

Commit 92d06ac

Browse files
Zhiqiang-Houkartben
authored andcommitted
soc: nxp: imx: add resource table section for Cortex-A
Add .resource_table section to the linker script for the Cortex-A core of i.MX series. Signed-off-by: Hou Zhiqiang <[email protected]>
1 parent a00577c commit 92d06ac

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

soc/nxp/imx/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 NXP
1+
# Copyright 2024-2025 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

44
add_subdirectory(${SOC_SERIES})
@@ -9,3 +9,7 @@ zephyr_include_directories(${SOC_SERIES})
99
zephyr_include_directories(${SOC_SERIES}/include)
1010

1111
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
12+
13+
if(CONFIG_CPU_CORTEX_A)
14+
zephyr_linker_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE SECTIONS rsc_table.ld)
15+
endif()

soc/nxp/imx/rsc_table.ld

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
SECTION_PROLOGUE(.resource_table,, SUBALIGN(8))
8+
{
9+
KEEP(*(.resource_table*))
10+
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

0 commit comments

Comments
 (0)