Makefile.dep: include package deps earlier

This commit is contained in:
Alexandre Abadie 2019-12-07 19:42:48 +01:00
parent c5dfc7d16c
commit ed0a8d67c4
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -19,6 +19,9 @@ OLD_USEPKG := $(sort $(USEPKG))
include $(RIOTBASE)/sys/Makefile.dep
include $(RIOTBASE)/drivers/Makefile.dep
# pull dependencies from packages
-include $(USEPKG:%=$(RIOTPKG)/%/Makefile.dep)
ifneq (,$(filter ssp,$(USEMODULE)))
FEATURES_REQUIRED += ssp
endif
@ -1048,9 +1051,6 @@ FEATURES_OPTIONAL += periph_gpio
# always select power management if available
FEATURES_OPTIONAL += periph_pm
# include package dependencies
-include $(USEPKG:%=$(RIOTPKG)/%/Makefile.dep)
# always select provided architecture features
FEATURES_REQUIRED += $(filter arch_%,$(FEATURES_PROVIDED))