1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

Merge pull request #11480 from cladmi/pr/make/makefile_features_file

Makefile.features: add a common file for the features parsing
This commit is contained in:
Juan I Carrano 2019-05-03 15:01:30 +02:00 committed by GitHub
commit 783d74aa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

3
Makefile.features Normal file
View File

@ -0,0 +1,3 @@
# Process FEATURES variables
include $(RIOTBOARD)/$(BOARD)/Makefile.features

View File

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

View File

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