Skip to content

Commit

Permalink
Merge pull request #11480 from cladmi/pr/make/makefile_features_file
Browse files Browse the repository at this point in the history
Makefile.features: add a common file for the features parsing
  • Loading branch information
jcarrano authored May 3, 2019
2 parents 4c3e49e + 7d326e6 commit 783d74a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Process FEATURES variables

include $(RIOTBOARD)/$(BOARD)/Makefile.features
2 changes: 1 addition & 1 deletion Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion makefiles/info-global.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 783d74a

Please sign in to comment.