mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #13639 from fjmolinas/pr_usemodule_periph_init
Makefile.dep: periph_init based on USEMODULE
This commit is contained in:
commit
90815c23e7
10
Makefile.dep
10
Makefile.dep
@ -1066,11 +1066,6 @@ FEATURES_REQUIRED += $(filter arch_%,$(FEATURES_PROVIDED))
|
|||||||
# FEATURES_USED is defined in Makefile.features
|
# FEATURES_USED is defined in Makefile.features
|
||||||
USEMODULE += $(filter periph_%,$(FEATURES_USED))
|
USEMODULE += $(filter periph_%,$(FEATURES_USED))
|
||||||
|
|
||||||
# set all USED periph_% init modules as DEFAULT_MODULE
|
|
||||||
ifneq (,$(filter periph_init, $(USEMODULE)))
|
|
||||||
DEFAULT_MODULE += $(subst periph_,periph_init_,$(filter periph_%,$(FEATURES_USED)))
|
|
||||||
endif
|
|
||||||
|
|
||||||
# select cpu_check_address pseudomodule if the corresponding feature is used
|
# select cpu_check_address pseudomodule if the corresponding feature is used
|
||||||
USEMODULE += $(filter cpu_check_address, $(FEATURES_USED))
|
USEMODULE += $(filter cpu_check_address, $(FEATURES_USED))
|
||||||
|
|
||||||
@ -1089,6 +1084,11 @@ USEPKG := $(sort $(USEPKG))
|
|||||||
ifneq ($(OLD_USEMODULE) $(OLD_USEPKG),$(USEMODULE) $(USEPKG))
|
ifneq ($(OLD_USEMODULE) $(OLD_USEPKG),$(USEMODULE) $(USEPKG))
|
||||||
include $(RIOTBASE)/Makefile.dep
|
include $(RIOTBASE)/Makefile.dep
|
||||||
else
|
else
|
||||||
|
# set all USED periph_% init modules as DEFAULT_MODULE
|
||||||
|
ifneq (,$(filter periph_init, $(USEMODULE)))
|
||||||
|
DEFAULT_MODULE += $(subst periph_,periph_init_,$(filter periph_%,$(USEMODULE)))
|
||||||
|
endif
|
||||||
|
|
||||||
# Add auto_init_% DEFAULT_MODULES. This is done after the recursive cach since
|
# Add auto_init_% DEFAULT_MODULES. This is done after the recursive cach since
|
||||||
# none of these modules can trigger dependency resolution.
|
# none of these modules can trigger dependency resolution.
|
||||||
DEFAULT_MODULE := $(sort $(DEFAULT_MODULE))
|
DEFAULT_MODULE := $(sort $(DEFAULT_MODULE))
|
||||||
|
Loading…
Reference in New Issue
Block a user