cmake: arm: update arm SoC to use SOC_LINKER_SCRIPT variable
This commit updates all arm SoCs to set SOC_LINKER_SCRIPT CMake variable to point to active linker script directly. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
b2de93cff6
commit
4812884f84
204 changed files with 192 additions and 1053 deletions
|
@ -3,3 +3,5 @@
|
|||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2014 Wind River Systems, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* This is the linker script for both standard images and XIP images.
|
||||
*/
|
||||
|
||||
|
||||
#include <zephyr/arch/arm/cortex_m/scripts/linker.ld>
|
|
@ -11,3 +11,5 @@ zephyr_library_include_directories(
|
|||
${ZEPHYR_BASE}/kernel/include
|
||||
${ZEPHYR_BASE}/arch/${ARCH}/include
|
||||
)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
|
||||
|
|
|
@ -19,3 +19,5 @@ zephyr_library_include_directories(
|
|||
if(NOT DEFINED CONFIG_LPC54XXX_SRAM2_CLOCK)
|
||||
zephyr_compile_definitions(DONT_ENABLE_DISABLED_RAMBANKS=1)
|
||||
endif()
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
|
||||
|
|
|
@ -23,3 +23,5 @@ endif()
|
|||
if(NOT DEFINED CONFIG_LPC55XXX_SRAM_CLOCKS)
|
||||
zephyr_compile_definitions(DONT_ENABLE_DISABLED_RAMBANKS=1)
|
||||
endif()
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue