cut qemu's tcg and translate objects
[linux-based-stubdoms.git] / select-linux-arch
blob66be1fbd5c4acb20b3b4b8377c96a34c1b067b18
1 #!/bin/sh
3 ME=$(basename $0)
5 if [ $# -lt 1 ] || [ $# -gt 3 ] ; then
6 echo "usage: $ME <linux-build-directory> <stubdom-arch>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
11 TARGET_ARCH=$2
13 case ${TARGET_ARCH} in
14 x86_32|x86_64)
15 if [ -d ${LINUX_DIR}/arch/x86 ] ; then
16 ARCH=x86
17 elif [ "${TARGET_ARCH}" = "x86_32" ] ; then
18 ARCH=i386
19 else
20 ARCH=x86_64
24 ARCH=${TARGET_ARCH}
26 esac
28 echo "$ME: ${ARCH}" 1>&2
29 echo ${ARCH}
31 exit 0