kbuild: replace $(if A,A,B) with $(or A,B)
$(or ...) is available since GNU Make 3.81, and useful to shorten the code in some places. Covert as follows: $(if A,A,B) --> $(or A,B) This patch also converts: $(if A, A, B) --> $(or A, B) Strictly speaking, the latter is not an equivalent conversion because GNU Make keeps spaces after commas; if A is not empty, $(if A, A, B) expands to " A", while $(or A, B) expands to "A". Anyway, preceding spaces are not significant in the code hunks I touched. Signed-off-by:Masahiro Yamada <masahiroy@kernel.org> Reviewed-by:
Nicolas Schier <nicolas@fjasle.eu>
Showing
- Makefile 4 additions, 4 deletionsMakefile
- scripts/Makefile.build 1 addition, 2 deletionsscripts/Makefile.build
- scripts/Makefile.clean 1 addition, 1 deletionscripts/Makefile.clean
- scripts/Makefile.lib 2 additions, 2 deletionsscripts/Makefile.lib
- tools/bpf/bpftool/Makefile 2 additions, 2 deletionstools/bpf/bpftool/Makefile
- tools/build/Makefile 1 addition, 1 deletiontools/build/Makefile
- tools/counter/Makefile 1 addition, 1 deletiontools/counter/Makefile
- tools/gpio/Makefile 1 addition, 1 deletiontools/gpio/Makefile
- tools/hv/Makefile 1 addition, 1 deletiontools/hv/Makefile
- tools/iio/Makefile 1 addition, 1 deletiontools/iio/Makefile
- tools/lib/api/Makefile 1 addition, 1 deletiontools/lib/api/Makefile
- tools/lib/bpf/Makefile 1 addition, 1 deletiontools/lib/bpf/Makefile
- tools/lib/perf/Makefile 1 addition, 1 deletiontools/lib/perf/Makefile
- tools/lib/subcmd/Makefile 1 addition, 1 deletiontools/lib/subcmd/Makefile
- tools/objtool/Makefile 1 addition, 1 deletiontools/objtool/Makefile
- tools/pci/Makefile 1 addition, 1 deletiontools/pci/Makefile
- tools/perf/Makefile.perf 2 additions, 2 deletionstools/perf/Makefile.perf
- tools/power/x86/intel-speed-select/Makefile 1 addition, 1 deletiontools/power/x86/intel-speed-select/Makefile
- tools/scripts/utilities.mak 1 addition, 1 deletiontools/scripts/utilities.mak
- tools/spi/Makefile 3 additions, 3 deletionstools/spi/Makefile
Please register or sign in to comment