Skip to content

Commit 18d3f4d

Browse files
Jordan Yatescarlescufi
authored andcommitted
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 <[email protected]>
1 parent 8fb37b9 commit 18d3f4d

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

include/arch/arm/aarch32/cortex_m/scripts/linker.ld

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,6 @@ SECTIONS
232232

233233
GROUP_END(ROMABLE_REGION)
234234

235-
/* Some TI SoCs have a special configuration footer, at the end of flash. */
236-
#ifdef CONFIG_HAS_TI_CCFG
237-
SECTION_PROLOGUE(.ti_ccfg,,)
238-
{
239-
KEEP(*(_TI_CCFG_SECTION_NAME))
240-
} > FLASH_CCFG
241-
#endif
242-
243235
/*
244236
* These are here according to 'arm-zephyr-elf-ld --verbose',
245237
* before data section.

soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ zephyr_sources(ccfg.c)
77

88
zephyr_library_sources_ifdef(CONFIG_PM power.c)
99
zephyr_library_sources_ifdef(CONFIG_PM_DEVICE power.c)
10+
11+
zephyr_linker_sources_ifdef(CONFIG_HAS_TI_CCFG SECTIONS ccfg.ld)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2021, Commonwealth Scientific and Industrial Research
3+
* Organisation (CSIRO) ABN 41 687 119 230.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
GROUP_START(FLASH_CCFG)
9+
10+
SECTION_PROLOGUE(.ti_ccfg,,)
11+
{
12+
KEEP(*(_TI_CCFG_SECTION_NAME))
13+
} GROUP_LINK_IN(FLASH_CCFG)
14+
15+
GROUP_END(FLASH_CCFG)

0 commit comments

Comments
 (0)