linux/tools
Masahiro Yamada 5c8166419a 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>
2022-02-15 12:25:56 +09:00
..
accounting delayacct: track delays from memory compact 2022-01-20 08:52:55 +02:00
arch tools headers cpufeatures: Sync with the kernel sources 2022-02-01 12:21:47 -03:00
bootconfig
bpf kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
build kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
cgroup
counter kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
debugging
edid
firewire
firmware
gpio kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
hv kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
iio kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
include tools include UAPI: Sync sound/asound.h copy with the kernel sources 2022-02-06 09:08:46 -03:00
io_uring
kvm/kvm_stat
laptop
leds
lib kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
memory-model
objtool kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
pci kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
pcmcia
perf kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
power kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
rcu
scripts kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
spi kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
testing Networking fixes for 5.17-rc4, including fixes from netfilter and can. 2022-02-10 16:01:22 -08:00
thermal/tmon
time
tracing kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
usb kbuild: replace $(if A,A,B) with $(or A,B) 2022-02-15 12:25:56 +09:00
virtio
vm
wmi
Makefile