ia64/xen-unstable

view unmodified_drivers/linux-2.6/mkbuildtree @ 11998:3db344ea8070

[XEN] Clean up NUMA stuff and disable by default ('numa=on' enables it).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Oct 25 15:17:40 2006 +0100 (2006-10-25)
parents dde8c8038e17
children 6492b9b27968
line source
1 #! /bin/sh
3 if [ $1 ]; then
4 uname="$1"
5 else
6 uname=`uname -m`
7 echo "Defaulting to this machine's architecture, $uname, for linking."
8 echo "This may be overridden on the command line (i386,x86_64,ia64)."
9 fi
11 C=$PWD
13 XEN=$C/../../xen
14 XL=$C/../../linux-2.6-xen-sparse
16 for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
17 if ! echo $d | egrep -q back; then
18 lndir $d $(basename $d) > /dev/null 2>&1
19 fi
20 done
22 ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
23 ln -sf ${XL}/drivers/xen/core/features.c platform-pci
24 ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
26 mkdir -p include
27 mkdir -p include/xen
28 mkdir -p include/public
29 mkdir -p include/asm
31 lndir -silent ${XL}/include/xen include/xen
32 ln -sf ${XEN}/include/public include/xen/interface
34 # Need to be quite careful here: we don't want the files we link in to
35 # risk overriding the native Linux ones (in particular, system.h must
36 # be native and not xenolinux).
37 case "$uname"
38 in
39 "x86_64")
40 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
41 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
42 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
43 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
44 ln -sf ${XL}/include/asm-i386 include/asm-i386
45 ;;
46 i[34567]86)
47 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
48 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
49 ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
50 ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
51 ;;
52 "ia64")
53 ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
54 ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
55 ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
56 ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
57 ;;
58 *)
59 echo unknown architecture $uname
60 exit 1
61 ;;
62 esac