Merge pull request #15013 from fjmolinas/pr_malefile_features_check

Makefile.include: intial features check before dependency resolution
This commit is contained in:
Alexandre Abadie 2020-09-15 22:04:51 +02:00 committed by GitHub
commit 170b3efddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,6 +379,9 @@ ifeq (1,$(TEST_KCONFIG))
KCONFIG_MODULES := $(call lowercase,$(patsubst CONFIG_MODULE_%,%,$(filter CONFIG_MODULE_%,$(.VARIABLES))))
USEMODULE := $(KCONFIG_MODULES)
else
# check if required features are provided and update $(FEATURES_USED)
include $(RIOTMAKE)/features_check.inc.mk
# handle removal of default modules
USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))