]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- eanble kvm on x32 (patch from debian-x32.org)
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 25 Mar 2015 09:28:54 +0000 (10:28 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 25 Mar 2015 09:28:54 +0000 (10:28 +0100)
- disable xen on x32

kvm-on-x32.patch [new file with mode: 0644]
qemu.spec

diff --git a/kvm-on-x32.patch b/kvm-on-x32.patch
new file mode 100644 (file)
index 0000000..434338a
--- /dev/null
@@ -0,0 +1,13 @@
+--- qemu-2.1+dfsg.orig/configure
++++ qemu-2.1+dfsg/configure
+@@ -5080,7 +5080,9 @@ case "$target_name" in
+       \( "$target_name" = "ppcemb" -a "$cpu" = "ppc64" \) -o \
+       \( "$target_name" = "mipsel" -a "$cpu" = "mips" \) -o \
+       \( "$target_name" = "x86_64" -a "$cpu" = "i386"   \) -o \
+-      \( "$target_name" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
++      \( "$target_name" = "i386"   -a "$cpu" = "x86_64" \) -o \
++      \( "$target_name" = "x86_64" -a "$cpu" = "x32"   \) -o \
++      \( "$target_name" = "i386"   -a "$cpu" = "x32" \) \) ; then
+       echo "CONFIG_KVM=y" >> $config_target_mak
+       if test "$vhost_net" = "yes" ; then
+         echo "CONFIG_VHOST_NET=y" >> $config_target_mak
index 2d496e0deb105d31bba206650a30aa7cdf2bf06d..15f62acd9bf3775ed1419079053409377fa6740a 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
 %undefine with_gtk3
 %endif
 
+%ifarch x32
+%undefine      with_xen
+%endif
+
 Summary:       QEMU CPU Emulator
 Summary(pl.UTF-8):     QEMU - emulator procesora
 Name:          qemu
@@ -58,6 +62,7 @@ Patch2:               %{name}-whitelist.patch
 Patch3:                %{name}-system-libcacard.patch
 Patch4:                %{name}-xattr.patch
 Patch5:                libjpeg-boolean.patch
+Patch6:                kvm-on-x32.patch
 # Proof of concept, for reference, do not remove
 Patch400:      %{name}-kde_virtual_workspaces_hack.patch
 URL:           http://www.qemu-project.org/
@@ -725,6 +730,7 @@ Moduł QEMU dla urządeń blokowych typu 'ssh'.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %{__mv} libcacard libcacard-use-system-lib
 
This page took 0.046747 seconds and 4 git commands to generate.