From e4448ed4989b765eed6e73ef4e0efd6cec82457b Mon Sep 17 00:00:00 2001 From: Grzegorz Swiderski Date: Fri, 3 Nov 2023 11:20:24 +0100 Subject: [PATCH] soc: mimx8mm6_m4: Restore linker script For this SoC, an additional section is conditionally included on top of the default linker script for Cortex-M. Set `SOC_LINKER_SCRIPT` to the local `linker.ld`. Signed-off-by: Grzegorz Swiderski --- soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt b/soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt index c73bf2188c6..ef0ba73b159 100644 --- a/soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt +++ b/soc/arm/nxp_imx/mimx8mm6_m4/CMakeLists.txt @@ -13,4 +13,4 @@ if(CONFIG_OPENAMP_RSC_TABLE) zephyr_linker_section_configure(SECTION .resource_table KEEP INPUT ".resource_table*") endif() -set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "") +set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")