diff --git a/Makefile.features b/Makefile.features new file mode 100644 index 0000000000..4008a32b7c --- /dev/null +++ b/Makefile.features @@ -0,0 +1,3 @@ +# Process FEATURES variables + +include $(RIOTBOARD)/$(BOARD)/Makefile.features diff --git a/Makefile.include b/Makefile.include index f8b09dbd0d..d0468a8612 100644 --- a/Makefile.include +++ b/Makefile.include @@ -245,7 +245,7 @@ export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-) INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include # process provided features -include $(RIOTBOARD)/$(BOARD)/Makefile.features +include $(RIOTBASE)/Makefile.features # mandatory includes! include $(RIOTMAKE)/pseudomodules.inc.mk diff --git a/makefiles/info-global.inc.mk b/makefiles/info-global.inc.mk index cd5c836ee8..f6996eddad 100644 --- a/makefiles/info-global.inc.mk +++ b/makefiles/info-global.inc.mk @@ -16,7 +16,9 @@ define board_missing_features FEATURES_OPTIONAL := $(FEATURES_OPTIONAL_GLOBAL) FEATURES_MISSING := FEATURES_PROVIDED := - include $$(RIOTBOARD)/$(1)/Makefile.features + + include $(RIOTBASE)/Makefile.features + ifdef BUILDTEST_MCU_GROUP ifneq ($(BUILDTEST_MCU_GROUP), $$(FEATURES_MCU_GROUP)) BOARDS_FEATURES_MISSING += "$(1) $(BUILDTEST_MCU_GROUP)"