1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make: factor out features handling, add default feature handling

This commit is contained in:
Kaspar Schleiser 2017-01-09 17:55:43 +01:00
parent 4291c1f839
commit ac9b12263a
2 changed files with 10 additions and 2 deletions

8
Makefile.features Normal file
View File

@ -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)))

View File

@ -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