mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: handle blacklisted features in info-boards-supported
This commit is contained in:
parent
42f9689c7d
commit
a21743a0ac
@ -11,7 +11,7 @@ DISABLE_MODULE_GLOBAL := $(DISABLE_MODULE)
|
||||
DEFAULT_MODULE_GLOBAL := $(DEFAULT_MODULE)
|
||||
FEATURES_BLACKLIST_GLOBAL := $(FEATURES_BLACKLIST)
|
||||
|
||||
define board_missing_features
|
||||
define board_unsatisfied_features
|
||||
BOARD := $(1)
|
||||
USEMODULE := $(USEMODULE_GLOBAL)
|
||||
USEPKG := $(USEPKG_GLOBAL)
|
||||
@ -43,6 +43,11 @@ define board_missing_features
|
||||
BOARDS_WITH_MISSING_FEATURES += $(1)
|
||||
endif
|
||||
|
||||
ifneq (,$$(FEATURES_USED_BLACKLISTED))
|
||||
BOARDS_FEATURES_USED_BLACKLISTED += "$(1) $$(FEATURES_USED_BLACKLISTED)"
|
||||
BOARDS_WITH_BLACKLISTED_FEATURES += $(1)
|
||||
endif
|
||||
|
||||
ifneq (,$$(DEPENDENCY_DEBUG))
|
||||
$$(call file_save_dependencies_variables,dependencies_info-boards-supported)
|
||||
endif
|
||||
@ -53,8 +58,11 @@ BOARDS := $(filter-out $(BOARD_BLACKLIST), $(BOARDS))
|
||||
|
||||
BOARDS_WITH_MISSING_FEATURES :=
|
||||
BOARDS_FEATURES_MISSING :=
|
||||
$(foreach BOARD, $(BOARDS), $(eval $(call board_missing_features,$(BOARD))))
|
||||
BOARDS := $(filter-out $(BOARDS_WITH_MISSING_FEATURES), $(BOARDS))
|
||||
BOARDS_WITH_BLACKLISTED_FEATURES :=
|
||||
BOARDS_FEATURES_USED_BLACKLISTED :=
|
||||
|
||||
$(foreach BOARD, $(BOARDS), $(eval $(call board_unsatisfied_features,$(BOARD))))
|
||||
BOARDS := $(filter-out $(BOARDS_WITH_MISSING_FEATURES) $(BOARDS_WITH_BLACKLISTED_FEATURES), $(BOARDS))
|
||||
|
||||
info-buildsizes: SHELL=bash
|
||||
info-buildsizes:
|
||||
|
Loading…
Reference in New Issue
Block a user