Skip to content

Commit

Permalink
make: factor out features handling, add default feature handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jan 12, 2017
1 parent 4291c1f commit ac9b122
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile.features
@@ -0,0 +1,8 @@
# import list of provided features
-include $(RIOTBOARD)/$(BOARD)/Makefile.features
-include $(RIOTCPU)/$(CPU)/Makefile.features

DEFAULT_FEATURES += periph_pm

# add available default features to required list
FEATURES_REQUIRED += $(filter-out $(DISABLE_FEATURES), $(filter $(FEATURES_PROVIDED), $(DEFAULT_FEATURES)))
4 changes: 2 additions & 2 deletions Makefile.include
Expand Up @@ -398,8 +398,8 @@ $(CURDIR)/eclipsesym.xml:
# Extra make goals for testing and comparing changes.
include $(RIOTBASE)/Makefile.buildtests

# import list of provided features
-include $(RIOTBOARD)/$(BOARD)/Makefile.features
# process provided features
include $(RIOTBASE)/Makefile.features

# Export variables used throughout the whole make system:
include $(RIOTBASE)/Makefile.vars
Expand Down

0 comments on commit ac9b122

Please sign in to comment.