ia64/xen-unstable

view buildconfigs/select-linux-image @ 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 3 ] ; then
6 echo "usage: $ME <linux-build-directory> <linux-arch> <linux-targets...>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
11 LINUX_ARCH=$2
12 LINUX_TARGET=$3 # We don't care about second and subsequent targets
14 case ${XEN_TARGET_ARCH} in
15 ia64)
16 IMAGE=${LINUX_DIR}/arch/ia64/hp/sim/boot/vmlinux.gz
17 ;;
18 *)
19 if [ -f ${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET} ] ; then
20 IMAGE=${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET}
21 elif [ -f ${LINUX_DIR}/${LINUX_TARGET} ] ; then
22 IMAGE=${LINUX_DIR}/${LINUX_TARGET}
23 else
24 echo "$ME: cannot determine Linux image to use for ${LINUX_ARCH} in ${LINUX_DIR}" 1>&2
25 exit 1
26 fi
27 ;;
28 esac
30 echo "$ME: ${IMAGE}" 1>&2
31 echo ${IMAGE}
33 exit 0