1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #14111 from leandrolanzieri/pr/cpu/kinetis/cleanup_dependencies

cpu/kinetis: Move dependencies to Makefile.dep
This commit is contained in:
Peter Kietzmann 2020-05-26 17:31:09 +02:00 committed by GitHub
commit 4831300a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -5,4 +5,18 @@ ifneq (,$(filter periph_i2c,$(USEMODULE)))
USEMODULE += core_thread_flags USEMODULE += core_thread_flags
endif 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 include $(RIOTCPU)/cortexm_common/Makefile.dep

View File

@ -46,12 +46,4 @@ CFLAGS += \
# add the CPU specific flash configuration field for the linker # add the CPU specific flash configuration field for the linker
UNDEF += $(BINDIR)/cpu/fcfield.o 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 include $(RIOTMAKE)/arch/cortexm.inc.mk