arm: linker.ld: Port the CC32xx flash header to zephyr_linker_sources()
Add the .dbghdr sections via its own linker script snippet. Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
parent
54c1af861c
commit
b1026da300
@ -137,12 +137,6 @@ SECTIONS
|
||||
|
||||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
|
||||
{
|
||||
#if defined(CONFIG_CC3220SF_DEBUG) || defined(CONFIG_CC3235SF_DEBUG)
|
||||
/* Add CC32xx flash header to disable flash verification */
|
||||
. = 0x0;
|
||||
KEEP(*(.dbghdr))
|
||||
KEEP(*(".dbghdr.*"))
|
||||
#endif
|
||||
|
||||
. = CONFIG_TEXT_SECTION_OFFSET;
|
||||
|
||||
|
||||
@ -134,13 +134,6 @@ SECTIONS
|
||||
|
||||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
|
||||
{
|
||||
#ifdef CONFIG_CC3220SF_DEBUG
|
||||
/* Add CC3220SF flash header to disable flash verification */
|
||||
. = 0x0;
|
||||
KEEP(*(.dbghdr))
|
||||
KEEP(*(".dbghdr.*"))
|
||||
#endif
|
||||
|
||||
. = CONFIG_TEXT_SECTION_OFFSET;
|
||||
|
||||
/* Located in generated directory. This file is populated by the
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources(soc.c)
|
||||
|
||||
if (DEFINED CONFIG_CC3220SF_DEBUG OR DEFINED CONFIG_CC3235SF_DEBUG)
|
||||
zephyr_linker_sources(TEXT_START SORT_KEY 0 cc32xx_debug.ld)
|
||||
endif()
|
||||
|
||||
11
soc/arm/ti_simplelink/cc32xx/cc32xx_debug.ld
Normal file
11
soc/arm/ti_simplelink/cc32xx/cc32xx_debug.ld
Normal file
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2019 Texas Instruments Incorporated
|
||||
* Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* Add CC32xx flash header to disable flash verification */
|
||||
. = 0x0;
|
||||
KEEP(*(.dbghdr))
|
||||
KEEP(*(".dbghdr.*"))
|
||||
Loading…
Reference in New Issue
Block a user