aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-05-22 21:48:22 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-06-01 15:14:31 +0200
commitb5dfdb082fc350f3e68dfa61dc988d97cad28cfe (patch)
tree7a254e5d7852fe95bef1a9a55532a08cb653ebcb /hw/9pfs
parent890b126e6ad305cc60599985c997a34a8ad9ff71 (diff)
downloadqemu-b5dfdb082fc350f3e68dfa61dc988d97cad28cfe.zip
qemu-b5dfdb082fc350f3e68dfa61dc988d97cad28cfe.tar.gz
qemu-b5dfdb082fc350f3e68dfa61dc988d97cad28cfe.tar.bz2
hw: make virtio devices configurable via default-configs/
This is only half of the work, because the proxy devices (virtio-*-pci, virtio-*-ccw, etc.) are still included unconditionally. It is still a move in the right direction. Based-on: <20180522194943.24871-1-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/9pfs')
-rw-r--r--hw/9pfs/Makefile.objs6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/9pfs/Makefile.objs b/hw/9pfs/Makefile.objs
index fd90b62..e3fa673 100644
--- a/hw/9pfs/Makefile.objs
+++ b/hw/9pfs/Makefile.objs
@@ -1,3 +1,4 @@
+ifeq ($(call lor,$(CONFIG_VIRTIO_9P),$(CONFIG_XEN)),y)
common-obj-y = 9p.o 9p-util.o
common-obj-y += 9p-local.o 9p-xattr.o
common-obj-y += 9p-xattr-user.o 9p-posix-acl.o
@@ -5,6 +6,7 @@ common-obj-y += coth.o cofs.o codir.o cofile.o
common-obj-y += coxattr.o 9p-synth.o
common-obj-$(CONFIG_OPEN_BY_HANDLE) += 9p-handle.o
common-obj-y += 9p-proxy.o
-common-obj-$(CONFIG_XEN) += xen-9p-backend.o
+endif
-obj-$(CONFIG_VIRTIO) += virtio-9p-device.o
+common-obj-$(CONFIG_XEN) += xen-9p-backend.o
+obj-$(CONFIG_VIRTIO_9P) += virtio-9p-device.o