summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2016-06-10 07:12:15 -0600
committerhyokeun <hyokeun.jeon@samsung.com>2016-07-27 19:34:16 +0900
commitc2ee65f79035876258d7f45eccab60295ee85bda (patch)
tree787f57828e3d8396813ee47c7d8de0f2f2dff840
parente9512e05f3e944ab05108e6444ed88dd0f62c267 (diff)
downloadqemu-c2ee65f79035876258d7f45eccab60295ee85bda.tar.gz
qemu-c2ee65f79035876258d7f45eccab60295ee85bda.tar.bz2
qemu-c2ee65f79035876258d7f45eccab60295ee85bda.zip
usb: Fix conditions that xen-usb.c is used
When non-x86 arch targets are built on x86 we have a mismatched between what is built in support of xen. xen-usb.c is conditioned upon CONFIG_USB_LIBUSB and CONFIG_XEN_BACKEND, but it relies on an external reference that is instead controlled by CONFIG_XEN. Add a dependency on CONFIG_XEN as well. [BR: FATE#316612] Signed-off-by: Bruce Rogers <brogers@suse.com>
-rw-r--r--hw/usb/Makefile.objs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
index 98b5c9d27..2db2fa1a6 100644
--- a/hw/usb/Makefile.objs
+++ b/hw/usb/Makefile.objs
@@ -39,6 +39,6 @@ common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
# usb pass-through
common-obj-y += $(patsubst %,host-%.o,$(HOST_USB))
-ifeq ($(CONFIG_USB_LIBUSB),y)
+ifeq ($(CONFIG_XEN)$(CONFIG_USB_LIBUSB),yy)
common-obj-$(CONFIG_XEN_BACKEND) += xen-usb.o
endif