build system: fix FEATURES_REQUIRED_ANY
Previously, FEATURES_REQUIRED_ANY didn't honor the order of the alternatives provided, if none of the features were already in used and multiple options are provided. This fixes this.
This commit is contained in:
parent
64779b6f98
commit
f41dcc9a8d
@ -32,9 +32,8 @@ FEATURES_USABLE := $(filter-out $(FEATURES_BLACKLIST),$(FEATURES_PROVIDED))
|
|||||||
FEATURES_REQUIRED_ONE_OUT_OF := $(foreach item,\
|
FEATURES_REQUIRED_ONE_OUT_OF := $(foreach item,\
|
||||||
$(FEATURES_REQUIRED_ANY),\
|
$(FEATURES_REQUIRED_ANY),\
|
||||||
$(word 1,\
|
$(word 1,\
|
||||||
$(filter $(subst |, ,$(item)),\
|
$(filter $(FEATURES_USED_SO_FAR) $(FEATURES_USABLE),\
|
||||||
$(FEATURES_USED_SO_FAR) \
|
$(subst |, ,$(item)))\
|
||||||
$(FEATURES_USABLE)) \
|
|
||||||
$(item)))
|
$(item)))
|
||||||
|
|
||||||
# Features that are required by the application but not provided by the BSP
|
# Features that are required by the application but not provided by the BSP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user