debuggers.hg

annotate buildconfigs/select-linux-arch @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 419a141ca16d
children
rev   line source
keir@17068 1 #!/bin/sh
keir@17068 2
keir@17068 3 ME=$(basename $0)
keir@17068 4
keir@17068 5 if [ $# -lt 1 ] || [ $# -gt 2 ] ; then
keir@17068 6 echo "usage: $ME <linux-build-directory>" 1>&2
keir@17068 7 exit 1;
keir@17068 8 fi
keir@17068 9
keir@17068 10 LINUX_DIR=$1
keir@17068 11
keir@17068 12 case ${XEN_TARGET_ARCH} in
keir@17068 13 x86_32|x86_64)
keir@17068 14 if [ -d ${LINUX_DIR}/arch/x86 ] ; then
keir@17068 15 ARCH=x86
keir@17068 16 elif [ "${XEN_TARGET_ARCH}" = "x86_32" ] ; then
keir@17068 17 ARCH=i386
keir@17068 18 else
keir@17068 19 ARCH=x86_64
keir@17068 20 fi
keir@17068 21 ;;
keir@17068 22 *)
keir@17068 23 ARCH=${XEN_TARGET_ARCH}
keir@17068 24 ;;
keir@17068 25 esac
keir@17068 26
keir@17068 27 echo "$ME: ${ARCH}" 1>&2
keir@17068 28 echo ${ARCH}
keir@17068 29
keir@17068 30 exit 0