]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
qemu: enabled x86_64 for build and as target.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Sep 2015 18:27:52 +0000 (20:27 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Sep 2015 18:27:52 +0000 (20:27 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/qemu/qemu
config/rootfiles/packages/qemu
lfs/qemu

index 64b458a3a406b5971761a1d7228cf91153f596f0..834eb9c8e13e6288f5383d2e222f6709275f2da6 100644 (file)
@@ -2,9 +2,15 @@
 #
 # QEMU wrapper to enable kvm as default like old qemu-kvm...
 #
+if [ $(uname -m) = "x86_64" ]; then
+QEMU_SYSTEM=qemu-system-x86_64
+else
+QEMU_SYSTEM=qemu-system-i386
+fi
+
 if [[ $* == *" -no-kvm"* ]]; then
-       qemu-system-i386 $*
+       $QEMU_SYSTEM $*
 else
-       qemu-system-i386 -enable-kvm $*
+       $QEMU_SYSTEM -enable-kvm $*
 fi
 exit ${?}
index 9896139ce2209ad06573002ca64870137a666ee5..a554b362e38e5c0a4f3c5b17a3399439db840db0 100644 (file)
@@ -1,6 +1,7 @@
 #etc/qemu
 etc/qemu/target-x86_64.conf
 usr/bin/qemu
+usr/bin/qemu-arm
 usr/bin/qemu-ga
 usr/bin/qemu-i386
 usr/bin/qemu-img
@@ -8,6 +9,8 @@ usr/bin/qemu-io
 usr/bin/qemu-nbd
 usr/bin/qemu-system-arm
 usr/bin/qemu-system-i386
+usr/bin/qemu-system-x86_64
+usr/bin/qemu-x86_64
 usr/libexec/qemu-bridge-helper
 #usr/share/doc/qemu
 #usr/share/doc/qemu/qemu-doc.html
index 8512568b60db06e5101498127868679894f85f8d..f07e92708ca6dad0a97e1feb7da284fe4903481d 100644 (file)
--- a/lfs/qemu
+++ b/lfs/qemu
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2009  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2015  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -31,9 +31,9 @@ DL_FILE    = $(THISAPP).tar.bz2
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
-SUP_ARCH   = i586
+SUP_ARCH   = i586 x86_64
 PROG       = qemu
-PAK_VER    = 15
+PAK_VER    = 16
 
 DEPS       = "sdl"
 
@@ -80,7 +80,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \
                --enable-kvm --disable-attr \
-               --target-list="i386-linux-user i386-softmmu arm-softmmu" \
+               --target-list="i386-linux-user x86_64-linux-user arm-linux-user i386-softmmu x86_64-softmmu arm-softmmu" \
                --extra-cflags="$(CFLAGS)"
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install