linker: cc13x2_cc26x2: CCFG to linker snippets
Move the TI_CCFG linker section code into a dedicated snippet in the soc directory. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
8fb37b94fd
commit
18d3f4dc36
3 changed files with 17 additions and 8 deletions
|
@ -232,14 +232,6 @@ SECTIONS
|
|||
|
||||
GROUP_END(ROMABLE_REGION)
|
||||
|
||||
/* Some TI SoCs have a special configuration footer, at the end of flash. */
|
||||
#ifdef CONFIG_HAS_TI_CCFG
|
||||
SECTION_PROLOGUE(.ti_ccfg,,)
|
||||
{
|
||||
KEEP(*(_TI_CCFG_SECTION_NAME))
|
||||
} > FLASH_CCFG
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These are here according to 'arm-zephyr-elf-ld --verbose',
|
||||
* before data section.
|
||||
|
|
|
@ -7,3 +7,5 @@ zephyr_sources(ccfg.c)
|
|||
|
||||
zephyr_library_sources_ifdef(CONFIG_PM power.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PM_DEVICE power.c)
|
||||
|
||||
zephyr_linker_sources_ifdef(CONFIG_HAS_TI_CCFG SECTIONS ccfg.ld)
|
||||
|
|
15
soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.ld
Normal file
15
soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.ld
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Commonwealth Scientific and Industrial Research
|
||||
* Organisation (CSIRO) ABN 41 687 119 230.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
GROUP_START(FLASH_CCFG)
|
||||
|
||||
SECTION_PROLOGUE(.ti_ccfg,,)
|
||||
{
|
||||
KEEP(*(_TI_CCFG_SECTION_NAME))
|
||||
} GROUP_LINK_IN(FLASH_CCFG)
|
||||
|
||||
GROUP_END(FLASH_CCFG)
|
Loading…
Add table
Add a link
Reference in a new issue