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:
commit
4831300a6a
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user