projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf tools: Revert regression in configuration of Python support
[firefly-linux-kernel-4.4.55.git]
/
tools
/
perf
/
config
/
utilities.mak
diff --git
a/tools/perf/config/utilities.mak
b/tools/perf/config/utilities.mak
index 8ef3bd30a5492afa002c928b4483e03ac16db790..3e897198d1f78d0f9b6e5b5848fff0308fd16f04 100644
(file)
--- a/
tools/perf/config/utilities.mak
+++ b/
tools/perf/config/utilities.mak
@@
-173,7
+173,7
@@
_ge-abspath = $(if $(is-executable),$(1))
# Usage: absolute-executable-path-or-empty = $(call get-executable-or-default,variable,default)
#
define get-executable-or-default
# Usage: absolute-executable-path-or-empty = $(call get-executable-or-default,variable,default)
#
define get-executable-or-default
-$(if $($(1)),$(call _ge_attempt,$($(1)),$(1)),$(call _ge_attempt,$(2)
,$(1)
))
+$(if $($(1)),$(call _ge_attempt,$($(1)),$(1)),$(call _ge_attempt,$(2)))
endef
_ge_attempt = $(if $(get-executable),$(get-executable),$(_gea_warn)$(call _gea_err,$(2)))
_gea_warn = $(warning The path '$(1)' is not executable.)
endef
_ge_attempt = $(if $(get-executable),$(get-executable),$(_gea_warn)$(call _gea_err,$(2)))
_gea_warn = $(warning The path '$(1)' is not executable.)