Skip to content

Commit

Permalink
soc: imx9: remove custom linker script
Browse files Browse the repository at this point in the history
The custom linker script was required because SOF needed
some extra linker sections. Other than that, the custom linker
script was identical to the common architecture script. This
commit removes the custom linker script because:

	* keeping the custom linker script in sync with the
	common one is troublesome.

	* application-specific linker sections shouldn't be
	included in the generic soc linker script. Instead,
	they should be handled at the application level
	(i.e: via cmake commands if additional sections are
	needed or via a new, custom linker script if more
	changes are needed)

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
  • Loading branch information
LaurentiuM1234 authored and nashif committed Sep 10, 2024
1 parent 4dc082d commit 3f2790b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 367 deletions.
2 changes: 1 addition & 1 deletion soc/nxp/imx/imx9/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(CONFIG_SOC_MIMX9352_A55)

zephyr_sources_ifdef(CONFIG_ARM_MMU a55/mmu_regions.c)

set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/a55/linker.ld CACHE INTERNAL "")
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm64/scripts/linker.ld CACHE INTERNAL "")
elseif(CONFIG_SOC_MIMX9352_M33)
zephyr_include_directories(.)
zephyr_include_directories(m33)
Expand Down
366 changes: 0 additions & 366 deletions soc/nxp/imx/imx9/a55/linker.ld

This file was deleted.

0 comments on commit 3f2790b

Please sign in to comment.