]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
virtio-input: fix Kconfig dependency and Makefile
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 10 May 2019 10:51:37 +0000 (12:51 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 13 May 2019 06:49:30 +0000 (08:49 +0200)
Make VIRTIO_INPUT_HOST depend on VIRTIO_INPUT.
Use CONFIG_VIRTIO_INPUT_HOST in Makefile.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20190510105137.17481-2-kraxel@redhat.com

hw/input/Kconfig
hw/input/Makefile.objs

index 50e55e353847a9b0a871355416e2bb2a23c1078d..889363d8aef1b9679f5fe68be631f969e8870c7a 100644 (file)
@@ -27,7 +27,7 @@ config VIRTIO_INPUT
 config VIRTIO_INPUT_HOST
     bool
     default y
-    depends on VIRTIO && LINUX
+    depends on VIRTIO_INPUT && LINUX
 
 config VHOST_USER_INPUT
     bool
index 3eddf00f2bba7b2380f91c99de46c0be772f2351..d1de307708541404026d1a6ca8de4c4d4db4727f 100644 (file)
@@ -9,9 +9,7 @@ common-obj-$(CONFIG_TSC2005) += tsc2005.o
 
 common-obj-$(CONFIG_VIRTIO_INPUT) += virtio-input.o
 common-obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-hid.o
-ifeq ($(CONFIG_LINUX),y)
-common-obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-host.o
-endif
+common-obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host.o
 common-obj-$(CONFIG_VHOST_USER_INPUT) += vhost-user-input.o
 
 obj-$(CONFIG_MILKYMIST) += milkymist-softusb.o