ia64/xen-unstable

view buildconfigs/select-linux-arch @ 18836:ab0c1bdede53

Merge with ia64 tree.
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 26 11:14:26 2008 +0000 (2008-11-26)
parents 419a141ca16d
children
line source
1 #!/bin/sh
3 ME=$(basename $0)
5 if [ $# -lt 1 ] || [ $# -gt 2 ] ; then
6 echo "usage: $ME <linux-build-directory>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
12 case ${XEN_TARGET_ARCH} in
13 x86_32|x86_64)
14 if [ -d ${LINUX_DIR}/arch/x86 ] ; then
15 ARCH=x86
16 elif [ "${XEN_TARGET_ARCH}" = "x86_32" ] ; then
17 ARCH=i386
18 else
19 ARCH=x86_64
20 fi
21 ;;
22 *)
23 ARCH=${XEN_TARGET_ARCH}
24 ;;
25 esac
27 echo "$ME: ${ARCH}" 1>&2
28 echo ${ARCH}
30 exit 0