system/qemu-kvm: Build only x86 and x86_64 stuff by default

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Nikos Skalkotos 2011-05-19 10:15:33 -05:00 committed by Robby Workman
parent 2f37d2ee5f
commit 3a581f7380
2 changed files with 19 additions and 7 deletions

View file

@ -19,3 +19,11 @@ After package installation, make sure you have the KVMGROUP present on
your system and that all desired users are members of that group. your system and that all desired users are members of that group.
Don't forget to load the KVM-INTEL or KVM-AMD module depending on your Don't forget to load the KVM-INTEL or KVM-AMD module depending on your
processor. processor.
The script builds only x86 and x86_64 Linux Target CPU emulators by default.
If you need to emulate all target CPUs, set BUILD_ARCH to "all" but be
aware that the compilation will take a lot longer, and you should really
be using plain "qemu" for the others (since they can't use the KVM stuff
anyway. The default "x86_64" value works fine for for 32-bit or 64-bit
QEMU-KVM hosts providing full system emulation supporting Linux, BSD, and
Windows guests.

View file

@ -23,7 +23,7 @@
PRGNAM=qemu-kvm PRGNAM=qemu-kvm
VERSION=${VERSION:-0.14.0} VERSION=${VERSION:-0.14.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
KVMGROUP=${KVMGROUP:-kvm} KVMGROUP=${KVMGROUP:-kvm}
@ -36,7 +36,7 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
# The script is set to build all possible Linux Target CPU emulators by default. # The script builds only x86 and x86_64 Linux Target CPU emulators by default.
# Available Linux Target CPUs for full system emulation are: # Available Linux Target CPUs for full system emulation are:
# i386 x86_64 arm cris m68k microblaze mips mipsel mips64 mips64el # i386 x86_64 arm cris m68k microblaze mips mipsel mips64 mips64el
# ppc ppcemb ppc64 sh4 sh4eb sparc sparc64 # ppc ppcemb ppc64 sh4 sh4eb sparc sparc64
@ -44,11 +44,15 @@ fi
# i386 x86_64 alpha arm armeb cris m68k microblaze mips mipsel # i386 x86_64 alpha arm armeb cris m68k microblaze mips mipsel
# ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc64 sparc32plus # ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc64 sparc32plus
# #
# To reduce compile time and package size modify the BUILD ARCH line below # If you need to emulate all target CPUs, set BUILD_ARCH to "all" but be
# from BUILD_ARCH="" to BUILD_ARCH="x86_64" if you DO NOT need to emulate # aware that the compilation will take a lot longer, and you should really
# all target CPUs. This works fine for 32-bit or 64-bit QEMU-KVM hosts # be using plain "qemu" for the others (since they can't use the KVM stuff
# providing full system emulation supporting Linux, BSD and Windows guests. # anyway. The default "x86_64" value works fine for for 32-bit or 64-bit
BUILD_ARCH="" # QEMU-KVM hosts providing full system emulation supporting Linux, BSD, and
# Windows guests.
BUILD_ARCH=${BUILD_ARCH:-x86_64}
[ "$BUILD_ARCH" = "all" ] && unset BUILD_ARCH
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}