xen/qemu-xen-enable-spice-support.patch

22 lines
754 B
Diff
Raw Normal View History

Index: xen-4.5.0-testing/tools/Makefile
===================================================================
--- xen-4.5.0-testing.orig/tools/Makefile
+++ xen-4.5.0-testing/tools/Makefile
@@ -197,6 +197,8 @@ else
QEMU_XEN_ENABLE_DEBUG :=
endif
+QEMU_XEN_ENABLE_SPICE := $(shell if [ `/bin/arch 2>/dev/null` == "x86_64" ]; then echo "--enable-spice --enable-usb-redir"; fi)
+
subdir-all-qemu-xen-dir: qemu-xen-dir-find
if test -d $(QEMU_UPSTREAM_LOC) ; then \
source=$(QEMU_UPSTREAM_LOC); \
@@ -222,6 +224,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-fi
--datadir=$(SHAREDIR)/qemu-xen \
--localstatedir=$(localstatedir) \
--disable-kvm \
+ $(QEMU_XEN_ENABLE_SPICE) \
--disable-docs \
--disable-guest-agent \
--python=$(PYTHON) \