usb: only build usb-host with CONFIG_USB=y
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Sep 2017 11:12:17 +0000 (13:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 13 Sep 2017 08:44:49 +0000 (10:44 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-id: 20170908111217.21985-3-kraxel@redhat.com

hw/usb/Makefile.objs

index a43ebbc17f63dc23a4636e18409c4e97b73f5195..757e3655627b6be092e9084392e1423d8b6d7c78 100644 (file)
@@ -38,7 +38,7 @@ endif
 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
 
 # usb pass-through
-ifeq ($(CONFIG_LIBUSB),y)
+ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o