summaryrefslogtreecommitdiffstats
path: root/default-configs/pci.mak
diff options
context:
space:
mode:
authorThomas Huth2017-09-18 20:32:18 +0200
committerPaolo Bonzini2017-09-19 16:20:49 +0200
commitd321e6d58eb088d239b6be8ef0938c530d8164da (patch)
treeaabf67f48a0a0132d01cb1537450c8654fd558dc /default-configs/pci.mak
parentosdep.h: Prohibit disabling assert() in supported builds (diff)
downloadqemu-d321e6d58eb088d239b6be8ef0938c530d8164da.tar.gz
qemu-d321e6d58eb088d239b6be8ef0938c530d8164da.tar.xz
qemu-d321e6d58eb088d239b6be8ef0938c530d8164da.zip
default-configs: Replace $(and ...) with $(call land, ...)
Using $(and ...) is dangerous here: It only works as long as the first argument is set to 'y' or completely unset. It does not work if the first argument is set to 'n' for example. Let's use the "land" make function instead which has been written explicitely for this purpose. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1505759538-15365-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'default-configs/pci.mak')
-rw-r--r--default-configs/pci.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/default-configs/pci.mak b/default-configs/pci.mak
index a758630d30..187e438881 100644
--- a/default-configs/pci.mak
+++ b/default-configs/pci.mak
@@ -43,4 +43,4 @@ CONFIG_VGA=y
CONFIG_VGA_PCI=y
CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
CONFIG_ROCKER=y
-CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
+CONFIG_VHOST_USER_SCSI=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))