soc: Port usage of soc-*.ld to use Cmake
Mark the feature as deprecated Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
parent
901c0a1cfd
commit
5bebf2ae5c
7 changed files with 30 additions and 30 deletions
|
@ -40,6 +40,7 @@ if ARC || ARM || X86 || NIOS2 || RISCV32
|
|||
config SOC_NOINIT_LD
|
||||
bool
|
||||
help
|
||||
Note: This is deprecated, use Cmake function zephyr_linker_sources() instead.
|
||||
Include an SoC specific linker script fragment named soc-noinit.ld
|
||||
for inserting additional data and linker directives into
|
||||
the noinit section.
|
||||
|
@ -50,6 +51,7 @@ config SOC_NOINIT_LD
|
|||
config SOC_RODATA_LD
|
||||
bool
|
||||
help
|
||||
Note: This is deprecated, use Cmake function zephyr_linker_sources() instead.
|
||||
Include an SoC specific linker script fragment named soc-rodata.ld
|
||||
for inserting additional data and linker directives into
|
||||
the rodata section.
|
||||
|
@ -60,6 +62,7 @@ config SOC_RODATA_LD
|
|||
config SOC_RWDATA_LD
|
||||
bool
|
||||
help
|
||||
Note: This is deprecated, use Cmake function zephyr_linker_sources() instead.
|
||||
Include an SoC specific linker script fragment named soc-rwdata.ld
|
||||
for inserting additional data and linker directives into
|
||||
the data section.
|
||||
|
|
|
@ -8,3 +8,6 @@ zephyr_include_directories(.)
|
|||
zephyr_sources(
|
||||
soc.c
|
||||
)
|
||||
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_SERIES_PSOC62 NOINIT noinit.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_SERIES_PSOC62 RWDATA rwdata.ld)
|
||||
|
|
|
@ -10,7 +10,5 @@ config SOC_SERIES_PSOC62
|
|||
select SOC_FAMILY_PSOC6
|
||||
select CPU_CORTEX_M_HAS_SYSTICK
|
||||
select HAS_CYPRESS_DRIVERS
|
||||
select SOC_NOINIT_LD
|
||||
select SOC_RWDATA_LD
|
||||
help
|
||||
Enable support for Cypress PSoC6 MCU series
|
||||
|
|
17
soc/arm/cypress/psoc6/noinit.ld
Normal file
17
soc/arm/cypress/psoc6/noinit.ld
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Extracted from:
|
||||
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||
*
|
||||
* Size of sections are calculated in the startup scripts,
|
||||
* so they don't have to be specified here.
|
||||
*/
|
||||
|
||||
. = ALIGN(8);
|
||||
KEEP(*(.ram_vectors))
|
||||
|
||||
. = ALIGN(4);
|
||||
KEEP(*(.heap))
|
||||
|
||||
. = ALIGN(4);
|
||||
KEEP(*(.stack))
|
7
soc/arm/cypress/psoc6/rwdata.ld
Normal file
7
soc/arm/cypress/psoc6/rwdata.ld
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Extracted from:
|
||||
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||
*/
|
||||
KEEP(*(.cy_ramfunc))
|
|
@ -1,19 +0,0 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Extracted from:
|
||||
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||
* Size of sections are calculated in the startup scripts,
|
||||
* so they don't have to be specified here.
|
||||
*/
|
||||
|
||||
. = ALIGN(8);
|
||||
KEEP(*(.ram_vectors))
|
||||
|
||||
. = ALIGN(4);
|
||||
KEEP(*(.heap))
|
||||
|
||||
. = ALIGN(4);
|
||||
KEEP(*(.stack))
|
|
@ -1,9 +0,0 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Extracted from:
|
||||
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||
*/
|
||||
|
||||
KEEP(*(.cy_ramfunc))
|
Loading…
Add table
Add a link
Reference in a new issue