]> git.proxmox.com Git - mirror_qemu.git/commitdiff
9p: simplify source file selection
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Jul 2019 10:03:30 +0000 (12:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:19 +0000 (17:26 +0200)
Express the complex conditions in Kconfig rather than Makefiles, since Kconfig
is better suited at expressing dependencies and detecting contradictions.

Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Kconfig.host
fsdev/Makefile.objs
hw/9pfs/Kconfig

index aec95365ffd917042145e555a007033bfea1496f..bb6e116e2a2ca68d409e5ebff6c42e67a75d83f4 100644 (file)
@@ -28,6 +28,7 @@ config VHOST_USER
 
 config XEN
     bool
+    select FSDEV_9P if VIRTFS
 
 config VIRTFS
     bool
index 24bbb3e75c907bf437efe0541e8583b329efecf6..42cd70c367fd1b4d002a98b7c87d707ed6448f8a 100644 (file)
@@ -1,6 +1,6 @@
 # Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
 # only pull in the actual 9p backend if we also enabled virtio or xen.
-ifeq ($(call land,$(CONFIG_VIRTFS),$(call lor,$(CONFIG_VIRTIO_9P),$(CONFIG_XEN))),y)
+ifeq ($(CONFIG_FSDEV_9P),y)
 common-obj-y = qemu-fsdev.o 9p-marshal.o 9p-iov-marshal.o
 else
 common-obj-y = qemu-fsdev-dummy.o
index 8c5032c5754bc250ecd9deb8434ee6f8e1e43884..3ae574966136522470c2c5e7004f588a190c1e00 100644 (file)
@@ -1,4 +1,9 @@
+config FSDEV_9P
+    bool
+    depends on VIRTFS
+
 config VIRTIO_9P
     bool
     default y
     depends on VIRTFS && VIRTIO
+    select FSDEV_9P