summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-data.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-07-29 05:15:37 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-08-09 18:32:59 +0200
commit85569d19d0f57df5e6cbb918dbddd4f82c0117b5 (patch)
tree15329f252c14115c08d7afd9857098eb01aed0cd /tools/perf/builtin-data.c
parentkbuild: move host .so build rules to scripts/gcc-plugins/Makefile (diff)
downloadlinux-85569d19d0f57df5e6cbb918dbddd4f82c0117b5.tar.xz
linux-85569d19d0f57df5e6cbb918dbddd4f82c0117b5.zip
kbuild: sort hostprogs before passing it to ifneq
The conditional: ifneq ($(hostprogs),) ... is evaluated to true if $(hostprogs) does not contain any word but whitespace characters. ifneq ($(strip $(hostprogs)),) ... is a safe way to avoid interpreting whitespace as a non-empty value, but I'd rather want to use the side-effect of $(sort ...) to do the equivalent. $(sort ...) is used in scripts/Makefile.host in order to drop duplication in $(hostprogs). It is also useful to strip excessive spaces. Move $(sort ...) before evaluating the ifneq. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'tools/perf/builtin-data.c')
0 files changed, 0 insertions, 0 deletions