ia64/xen-unstable

view unmodified_drivers/linux-2.6/mkbuildtree @ 11624:f5fd563bcc84

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