configure: simplify vhost condition with Kconfig
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
95c5f2debc
commit
21c6b0c87e
@ -25,6 +25,11 @@ config TPM
|
|||||||
|
|
||||||
config VHOST_USER
|
config VHOST_USER
|
||||||
bool
|
bool
|
||||||
|
select VHOST
|
||||||
|
|
||||||
|
config VHOST_KERNEL
|
||||||
|
bool
|
||||||
|
select VHOST
|
||||||
|
|
||||||
config XEN
|
config XEN
|
||||||
bool
|
bool
|
||||||
|
1
Makefile
1
Makefile
@ -382,6 +382,7 @@ MINIKCONF_ARGS = \
|
|||||||
CONFIG_OPENGL=$(CONFIG_OPENGL) \
|
CONFIG_OPENGL=$(CONFIG_OPENGL) \
|
||||||
CONFIG_X11=$(CONFIG_X11) \
|
CONFIG_X11=$(CONFIG_X11) \
|
||||||
CONFIG_VHOST_USER=$(CONFIG_VHOST_USER) \
|
CONFIG_VHOST_USER=$(CONFIG_VHOST_USER) \
|
||||||
|
CONFIG_VHOST_KERNEL=$(CONFIG_VHOST_KERNEL) \
|
||||||
CONFIG_VIRTFS=$(CONFIG_VIRTFS) \
|
CONFIG_VIRTFS=$(CONFIG_VIRTFS) \
|
||||||
CONFIG_LINUX=$(CONFIG_LINUX) \
|
CONFIG_LINUX=$(CONFIG_LINUX) \
|
||||||
CONFIG_PVRDMA=$(CONFIG_PVRDMA)
|
CONFIG_PVRDMA=$(CONFIG_PVRDMA)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
config VHOST
|
||||||
|
bool
|
||||||
|
|
||||||
config VIRTIO
|
config VIRTIO
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ ifeq ($(CONFIG_VIRTIO),y)
|
|||||||
common-obj-y += virtio-bus.o
|
common-obj-y += virtio-bus.o
|
||||||
obj-y += virtio.o
|
obj-y += virtio.o
|
||||||
|
|
||||||
obj-$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL)) += vhost.o vhost-backend.o
|
obj-$(CONFIG_VHOST) += vhost.o vhost-backend.o
|
||||||
common-obj-$(call lnot,$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL))) += vhost-stub.o
|
common-obj-$(call lnot,$(CONFIG_VHOST)) += vhost-stub.o
|
||||||
obj-$(CONFIG_VHOST_USER) += vhost-user.o
|
obj-$(CONFIG_VHOST_USER) += vhost-user.o
|
||||||
|
|
||||||
common-obj-$(CONFIG_VIRTIO_RNG) += virtio-rng.o
|
common-obj-$(CONFIG_VIRTIO_RNG) += virtio-rng.o
|
||||||
|
Loading…
Reference in New Issue
Block a user