diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-08-15 17:13:06 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-12-17 19:32:48 +0100 |
commit | 21c6b0c87e85d952d3d0e569388526f03ad48576 (patch) | |
tree | 85f3fc65d8e32a72e47cc0da315a36d086906e8b /hw/virtio | |
parent | 95c5f2debc867391a8c7dcc99be57dbab3dc6bda (diff) | |
download | qemu-21c6b0c87e85d952d3d0e569388526f03ad48576.zip qemu-21c6b0c87e85d952d3d0e569388526f03ad48576.tar.gz qemu-21c6b0c87e85d952d3d0e569388526f03ad48576.tar.bz2 |
configure: simplify vhost condition with Kconfig
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/Kconfig | 3 | ||||
-rw-r--r-- | hw/virtio/Makefile.objs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig index 3724ff8..f87def2 100644 --- a/hw/virtio/Kconfig +++ b/hw/virtio/Kconfig @@ -1,3 +1,6 @@ +config VHOST + bool + config VIRTIO bool diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs index e2f70fb..de0f5fc 100644 --- a/hw/virtio/Makefile.objs +++ b/hw/virtio/Makefile.objs @@ -2,8 +2,8 @@ ifeq ($(CONFIG_VIRTIO),y) common-obj-y += virtio-bus.o obj-y += virtio.o -obj-$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL)) += vhost.o vhost-backend.o -common-obj-$(call lnot,$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL))) += vhost-stub.o +obj-$(CONFIG_VHOST) += vhost.o vhost-backend.o +common-obj-$(call lnot,$(CONFIG_VHOST)) += vhost-stub.o obj-$(CONFIG_VHOST_USER) += vhost-user.o common-obj-$(CONFIG_VIRTIO_RNG) += virtio-rng.o |