]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- patch from jakubowski kamil
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Feb 2007 20:41:54 +0000 (20:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    qemu.spec -> 1.82

qemu.spec

index 880a1af2f5e5cb02e1883420f4d0cc4a8d3d1cba..f14defd3d9589400716ae18213af2c270551d25b 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -171,8 +171,17 @@ EOF
 %if %{with kernel}
 cd kqemu-%{_kqemu_version}
 
-mv -f kqemu-mod-i386.o{,.bin}
+%{__sed} -i 's#include ../config-host.mak##' ./common/Makefile
+%ifarch %{x8664}
+%{__sed} -i 's/^#ARCH=x86_64/ARCH=x86_64/' ./common/Makefile
+%{__make} -C common
 mv -f kqemu-mod-x86_64.o{,.bin}
+%else
+%{__sed} -i 's/^#ARCH=i386/ARCH=i386/' ./common/Makefile
+%{__make} -C common
+mv -f kqemu-mod-i386.o{,.bin}
+%endif
+
 mv -f kqemu-linux.c{,.orig}
 cat > Makefile <<'EOF'
 obj-m := kqemu.o
This page took 0.035328 seconds and 4 git commands to generate.