Skip to content
Snippets Groups Projects
Commit 7548c509 authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by GitHub
Browse files

Merge pull request #7101 from haukepetersen/opt_kinetis_rmsymlinks

cpu/kinetis: prevent use of symlinks for ld-scripts
parents f6cb8a89 9b7ece68
No related branches found
No related tags found
No related merge requests found
# define the CPU architecture for the k60
export CPU_ARCH = cortex-m4
# map CPU models to generic Kinetis linkerscript
LD_MK60DN256VLL10 = kinetis_f256l16u16.ld
LD_MK60DN512VLL10 = kinetis_f512l64u64.ld
# tell the build system that the CPU depends on the Kinetis common files
export USEMODULE += kinetis_common
......
../../kinetis_common/ldscripts/kinetis_f256l32u32.ld
\ No newline at end of file
../../kinetis_common/ldscripts/kinetis_f512l64u64.ld
\ No newline at end of file
# define the CPU architecture for the k64f
export CPU_ARCH = cortex-m4
# map CPU models to generic Kinetis linkerscript
LD_MK64FN1M0VLL12 = kinetis_f1024l64u192.ld
# tell the build system that the CPU depends on the Kinetis common files
export USEMODULE += kinetis_common
......
../../kinetis_common/ldscripts/kinetis_f1024l64u192.ld
\ No newline at end of file
......@@ -4,6 +4,9 @@ export INCLUDES += -I$(RIOTCPU)/kinetis_common/include
# Add search path for linker scripts
export LINKFLAGS += -L$(RIOTCPU)/kinetis_common/ldscripts
# Use generic linkerscripts for all Kinetis based CPUs
export LINKER_SCRIPT ?= $(LD_$(shell echo $(CPU_MODEL) | tr a-z A-Z))
# add the CPU specific code for the linker
export UNDEF += $(BINDIR)/kinetis_common/fcfield.o
......
# define the CPU architecture for the kw2xd
export CPU_ARCH = cortex-m4
# map CPU models to generic Kinetis linkerscript
LD_KW21D256 = kinetis_f256l16u16.ld
LD_KW21D512 = kinetis_f512l32u32.ld
LD_KW22D512 = kinetis_f512l32u32.ld
# tell the build system that the CPU depends on the Kinetis common files
export USEMODULE += kinetis_common
......
../../kinetis_common/ldscripts/kinetis_f256l16u16.ld
\ No newline at end of file
../../kinetis_common/ldscripts/kinetis_f512l32u32.ld
\ No newline at end of file
../../kinetis_common/ldscripts/kinetis_f512l32u32.ld
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment