mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
e95afc80fb
kinetis.ld includes cortexm_common ldscript, the fields for the isr vectors and fcfield remain in kinetis.ld.
25 lines
845 B
Makefile
25 lines
845 B
Makefile
# define the CPU architecture for the kw2x
|
|
export CPU_ARCH = cortex-m4
|
|
|
|
# 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
|
|
|
|
#export the CPU model
|
|
MODEL = $(shell echo $(CPU_MODEL)|tr 'a-z' 'A-Z')
|
|
export CFLAGS += -DCPU_MODEL_$(MODEL)
|
|
ARCH = $(shell echo $(CPU_ARCH) | tr 'a-z-' 'A-Z_')
|
|
export CFLAGS += -DCPU_ARCH_$(ARCH)
|
|
|
|
# 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/vector.o
|
|
|
|
include $(RIOTCPU)/Makefile.include.cortexm_common
|