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:
parent
f5fda5cfa1
commit
54c1af861c
4 changed files with 17 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
14
soc/arm/nxp_imx/rt/boot_header.ld
Normal file
14
soc/arm/nxp_imx/rt/boot_header.ld
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue