debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 11209:88e8abee7575

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