1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

cpu/kinetis: Move dependencies to Makefile.dep

This commit is contained in:
Leandro Lanzieri 2020-05-20 19:28:53 +02:00
parent 2a8d6920e6
commit 2ad14e4242
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 14 additions and 8 deletions

View File

@ -5,4 +5,18 @@ ifneq (,$(filter periph_i2c,$(USEMODULE)))
USEMODULE += core_thread_flags
endif
# select kinetis periph drivers
# As FEATURES_PROVIDED cannot be checked directly, add both to FEATURES_OPTIONAL
# and check FEATURES_USED instead.
FEATURES_OPTIONAL += periph_ics
FEATURES_OPTIONAL += periph_mcg
ifneq (,$(filter periph_ics,$(FEATURES_USED)))
USEMODULE += periph_ics
else ifneq (,$(filter periph_mcg,$(FEATURES_USED)))
USEMODULE += periph_mcg
endif
USEMODULE += periph_wdog
include $(RIOTCPU)/cortexm_common/Makefile.dep

View File

@ -46,12 +46,4 @@ CFLAGS += \
# add the CPU specific flash configuration field for the linker
UNDEF += $(BINDIR)/cpu/fcfield.o
# select kinetis periph drivers
ifeq (EA,$(KINETIS_SERIES))
USEMODULE += periph_ics
else
USEMODULE += periph_mcg
endif
USEMODULE += periph_wdog
include $(RIOTMAKE)/arch/cortexm.inc.mk