arm: linker.ld: Port NXP_IMX_RT_BOOT_HEADER to zephyr_linker_sources()

Add the .boot_hdr.* sections via its own linker script snippet.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2019-11-28 17:02:37 +01:00 committed by Anas Nashif
commit 54c1af861c
4 changed files with 17 additions and 20 deletions

View file

@ -144,16 +144,6 @@ SECTIONS
KEEP(*(".dbghdr.*"))
#endif
#ifdef CONFIG_NXP_IMX_RT_BOOT_HEADER
KEEP(*(.boot_hdr.conf))
. = CONFIG_IMAGE_VECTOR_TABLE_OFFSET;
KEEP(*(.boot_hdr.ivt))
KEEP(*(.boot_hdr.data))
#ifdef CONFIG_DEVICE_CONFIGURATION_DATA
KEEP(*(.boot_hdr.dcd_data))
#endif
#endif
. = CONFIG_TEXT_SECTION_OFFSET;
/* Located in generated directory. This file is populated by the

View file

@ -141,16 +141,6 @@ SECTIONS
KEEP(*(".dbghdr.*"))
#endif
#ifdef CONFIG_NXP_IMX_RT_BOOT_HEADER
KEEP(*(.boot_hdr.conf))
. = CONFIG_IMAGE_VECTOR_TABLE_OFFSET;
KEEP(*(.boot_hdr.ivt))
KEEP(*(.boot_hdr.data))
#ifdef CONFIG_DEVICE_CONFIGURATION_DATA
KEEP(*(.boot_hdr.dcd_data))
#endif
#endif
. = CONFIG_TEXT_SECTION_OFFSET;
/* Located in generated directory. This file is populated by the

View file

@ -7,3 +7,6 @@
zephyr_sources(
soc.c
)
zephyr_linker_sources_ifdef(CONFIG_NXP_IMX_RT_BOOT_HEADER
TEXT_START SORT_KEY 0 boot_header.ld)

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2019 NXP
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
KEEP(*(.boot_hdr.conf))
. = CONFIG_IMAGE_VECTOR_TABLE_OFFSET;
KEEP(*(.boot_hdr.ivt))
KEEP(*(.boot_hdr.data))
#ifdef CONFIG_DEVICE_CONFIGURATION_DATA
KEEP(*(.boot_hdr.dcd_data))
#endif