debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 11203:b2f077bbca89

[HVM] Make grant tables functions work in PV-on-HVM drivers.
Signed-off-by: Steven Smith <ssmith@xensource.com>
author kfraser@localhost.localdomain
date Thu Aug 17 16:21:08 2006 +0100 (2006-08-17)
parents 879918dbe77f
children 88e8abee7575
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@11203 8 ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
kfraser@11202 9 ln -sf ${XL}/drivers/xen/core/features.c platform-pci
kfraser@11202 10
kfraser@11202 11 mkdir -p include
kfraser@11202 12 mkdir -p include/xen
kfraser@11202 13 mkdir -p include/public
kfraser@11202 14 mkdir -p include/asm
kfraser@11202 15
kfraser@11202 16 lndir -silent ${XL}/include/xen include/xen
kfraser@11202 17 ln -sf ${XEN}/include/public include/xen/interface
kfraser@11202 18
kfraser@11202 19 # Need to be quite careful here: we don't want the files we link in to
kfraser@11202 20 # risk overriding the native Linux ones (in particular, system.h must
kfraser@11202 21 # be native and not xenolinux).
kfraser@11202 22 uname=`uname -m`
kfraser@11202 23 case "$uname"
kfraser@11202 24 in
kfraser@11202 25 "x86_64")
kfraser@11202 26 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
kfraser@11202 27 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
kfraser@11202 28 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
kfraser@11202 29 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
kfraser@11202 30 ln -sf ${XL}/include/asm-i386 include/asm-i386
kfraser@11202 31 ;;
kfraser@11202 32 i[34567]86)
kfraser@11202 33 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
kfraser@11202 34 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
kfraser@11202 35 ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
kfraser@11202 36 ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
kfraser@11202 37 ;;
kfraser@11202 38 *)
kfraser@11202 39 echo unknown architecture $uname
kfraser@11202 40 exit 1
kfraser@11202 41 ;;
kfraser@11202 42 esac