mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
cpu/kinetis: prevent use of symlinks for ld-scripts
The use of symbolic links leads to trouble in certain environments (e.g. vagrant under Win). This PR gets rid of symlinks and uses variables in the Makefiles to map to the correct linkerscripts instead.
This commit is contained in:
parent
3b7252c7de
commit
9b7ece6827
@ -1,6 +1,10 @@
|
||||
# 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
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f256l32u32.ld
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f512l64u64.ld
|
||||
@ -1,6 +1,9 @@
|
||||
# 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
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f1024l64u192.ld
|
||||
@ -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
|
||||
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
# 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
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f256l16u16.ld
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f512l32u32.ld
|
||||
@ -1 +0,0 @@
|
||||
../../kinetis_common/ldscripts/kinetis_f512l32u32.ld
|
||||
Loading…
x
Reference in New Issue
Block a user