Skip to content

Commit ac9b122

Browse files
committed
make: factor out features handling, add default feature handling
1 parent 4291c1f commit ac9b122

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Makefile.features

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# import list of provided features
2+
-include $(RIOTBOARD)/$(BOARD)/Makefile.features
3+
-include $(RIOTCPU)/$(CPU)/Makefile.features
4+
5+
DEFAULT_FEATURES += periph_pm
6+
7+
# add available default features to required list
8+
FEATURES_REQUIRED += $(filter-out $(DISABLE_FEATURES), $(filter $(FEATURES_PROVIDED), $(DEFAULT_FEATURES)))

Makefile.include

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ $(CURDIR)/eclipsesym.xml:
398398
# Extra make goals for testing and comparing changes.
399399
include $(RIOTBASE)/Makefile.buildtests
400400

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

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

0 commit comments

Comments
 (0)