ia64/xen-unstable

view buildconfigs/select-linux-arch @ 18824:0b8c6c91c5a4

pv-on-hvm drivers: build fixes for Linux 2.6.27+

Make the drivers build properly in a 2.6.27 environment as well as
against a kernel with pv-ops Xen configured on (in the latter case
more work would be needed to also make the drivers work, as there's a
large number of duplicate exports).

Portions from Charles Arnold <carnold@novell.com>.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Nov 24 11:11:20 2008 +0000 (2008-11-24)
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