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:
parent
4291c1f839
commit
ac9b12263a
8
Makefile.features
Normal file
8
Makefile.features
Normal 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)))
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user