mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/features_check.inc.mk: fix declaration order
FEATURES_CONFLICTING previously was declared prior to the function it is calling, resulting in empty output during the first dependency resolution iteration. This fixes the order so that the conflicting features are detected right from the first recursion.
This commit is contained in:
parent
609c9ada34
commit
8fb30660b5
@ -47,11 +47,6 @@ FEATURES_USED := $(sort $(FEATURES_REQUIRED) \
|
||||
$(FEATURES_REQUIRED_ONE_OUT_OF) \
|
||||
$(FEATURES_OPTIONAL_USED))
|
||||
|
||||
# Used features that conflict when used together
|
||||
FEATURES_CONFLICTING := $(sort $(foreach conflict,\
|
||||
$(FEATURES_CONFLICT),\
|
||||
$(call _features_conflicting,$(conflict))))
|
||||
|
||||
# Return conflicting features from the conflict string feature1:feature2
|
||||
# $1: feature1:feature2
|
||||
# Return the list of conflicting features
|
||||
@ -61,6 +56,11 @@ _features_conflicting = $(if $(call _features_used_conflicting,$(subst :, ,$1)),
|
||||
# Return non empty on error
|
||||
_features_used_conflicting = $(filter $(words $1),$(words $(filter $(FEATURES_USED),$1)))
|
||||
|
||||
# Used features that conflict when used together
|
||||
FEATURES_CONFLICTING := $(sort $(foreach conflict,\
|
||||
$(FEATURES_CONFLICT),\
|
||||
$(call _features_conflicting,$(conflict))))
|
||||
|
||||
# Features that are used by the application but blacklisted by the BSP.
|
||||
# Having blacklisted features may cause the build to fail.
|
||||
FEATURES_USED_BLACKLISTED := $(sort $(filter $(FEATURES_USED), $(FEATURES_BLACKLIST)))
|
||||
|
Loading…
Reference in New Issue
Block a user