ia64/xen-unstable

changeset 11920:dde8c8038e17

Allow default target architecture of PV-on-HVM drivers to be overridden.
Signed-off-by: Travis Betak <travis.betak@amd.com>
author kfraser@localhost.localdomain
date Fri Oct 20 10:58:15 2006 +0100 (2006-10-20)
parents 16f1f8ac8902
children 59b41031641d
files unmodified_drivers/linux-2.6/mkbuildtree
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/mkbuildtree	Fri Oct 20 10:48:34 2006 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/mkbuildtree	Fri Oct 20 10:58:15 2006 +0100
     1.3 @@ -1,5 +1,13 @@
     1.4  #! /bin/sh
     1.5  
     1.6 +if [ $1 ]; then
     1.7 +    uname="$1"
     1.8 +else
     1.9 +    uname=`uname -m`
    1.10 +    echo "Defaulting to this machine's architecture, $uname, for linking."
    1.11 +    echo "This may be overridden on the command line (i386,x86_64,ia64)."
    1.12 +fi
    1.13 +
    1.14  C=$PWD
    1.15  
    1.16  XEN=$C/../../xen
    1.17 @@ -26,30 +34,29 @@ ln -sf ${XEN}/include/public include/xen
    1.18  # Need to be quite careful here: we don't want the files we link in to
    1.19  # risk overriding the native Linux ones (in particular, system.h must
    1.20  # be native and not xenolinux).
    1.21 -uname=`uname -m`
    1.22  case "$uname"
    1.23  in
    1.24  "x86_64")
    1.25 -	ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
    1.26 -	ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
    1.27 -	ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
    1.28 -	ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
    1.29 -	ln -sf ${XL}/include/asm-i386 include/asm-i386
    1.30 -	;;
    1.31 +    ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
    1.32 +    ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
    1.33 +    ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
    1.34 +    ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
    1.35 +    ln -sf ${XL}/include/asm-i386 include/asm-i386
    1.36 +  ;;
    1.37  i[34567]86)
    1.38 -	ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
    1.39 -	ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
    1.40 -	ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
    1.41 -	ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
    1.42 -	;;
    1.43 +    ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
    1.44 +    ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
    1.45 +    ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
    1.46 +    ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
    1.47 +  ;;
    1.48  "ia64")
    1.49 -	ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
    1.50 -	ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
    1.51 -	ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
    1.52 -	ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
    1.53 -	;;
    1.54 +    ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
    1.55 +    ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
    1.56 +    ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
    1.57 +    ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
    1.58 +  ;;
    1.59  *)
    1.60 -	echo unknown architecture $uname
    1.61 -	exit 1
    1.62 -	;;
    1.63 +    echo unknown architecture $uname
    1.64 +    exit 1
    1.65 +  ;;
    1.66  esac