ia64/xen-unstable

view unmodified_drivers/linux-2.6/mkbuildtree @ 11191:2d734ac9ec85

merge
author kfraser@localhost.localdomain
date Thu Aug 17 16:29:21 2006 +0100 (2006-08-17)
parents b2f077bbca89
children 88e8abee7575
line source
1 #! /bin/sh
3 C=$PWD
5 XEN=$C/../../xen
6 XL=$C/../../linux-2.6-xen-sparse
8 ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
9 ln -sf ${XL}/drivers/xen/core/features.c platform-pci
11 mkdir -p include
12 mkdir -p include/xen
13 mkdir -p include/public
14 mkdir -p include/asm
16 lndir -silent ${XL}/include/xen include/xen
17 ln -sf ${XEN}/include/public include/xen/interface
19 # Need to be quite careful here: we don't want the files we link in to
20 # risk overriding the native Linux ones (in particular, system.h must
21 # be native and not xenolinux).
22 uname=`uname -m`
23 case "$uname"
24 in
25 "x86_64")
26 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
27 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
28 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
29 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
30 ln -sf ${XL}/include/asm-i386 include/asm-i386
31 ;;
32 i[34567]86)
33 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
34 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
35 ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
36 ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
37 ;;
38 *)
39 echo unknown architecture $uname
40 exit 1
41 ;;
42 esac