1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/kw2xd/Makefile.include
Hauke Petersen 9b7ece6827 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.
2017-05-26 16:07:48 +02:00

24 lines
796 B
Makefile

# 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
# define path to kinetis module, which is needed for this CPU
export KINETIS_COMMON = $(RIOTCPU)/kinetis_common/
# CPU depends on the kinetis module, so include it
include $(KINETIS_COMMON)Makefile.include
# this CPU implementation is using kinetis common startup
export COMMON_STARTUP = $(KINETIS_COMMON)
# add the CPU specific system calls implementations for the linker
export UNDEF += $(BINDIR)/cpu/vectors.o
include $(RIOTMAKE)/arch/cortexm.inc.mk