debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 15322:276b48771f1e

Fix compile errors in PV-on-HVM drivers because of missing asm/gnttab_dma.h.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Fri Jun 15 09:32:22 2007 +0100 (2007-06-15)
parents f5a71c9771a8
children 049d4baa9965
rev   line source
kfraser@11202 1 #! /bin/sh
kfraser@11202 2
kfraser@11885 3 if [ $1 ]; then
kfraser@11885 4 uname="$1"
kfraser@11885 5 else
kfraser@11885 6 uname=`uname -m`
kfraser@11885 7 echo "Defaulting to this machine's architecture, $uname, for linking."
kfraser@11885 8 echo "This may be overridden on the command line (i386,x86_64,ia64)."
kfraser@11885 9 fi
kfraser@11885 10
kfraser@11202 11 C=$PWD
kfraser@11202 12
kfraser@15265 13 if [ -n "$XEN" -a -d "$XEN" ]; then
kfraser@15265 14 XEN=$(cd $XEN && pwd)
kfraser@15265 15 else
kfraser@15265 16 XEN=$C/../../xen
kfraser@15265 17 fi
kfraser@15265 18
kfraser@15265 19 if [ -n "$XL" -a -d "$XL" ]; then
kfraser@15265 20 XL=$(cd $XL && pwd)
kfraser@15265 21 else
kfraser@15265 22 XL=$C/../../linux-2.6.18-xen.hg
kfraser@15265 23 fi
kfraser@11202 24
kfraser@11209 25 for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
kfraser@11209 26 if ! echo $d | egrep -q back; then
kfraser@11209 27 lndir $d $(basename $d) > /dev/null 2>&1
kfraser@11209 28 fi
steven@14758 29 if ! echo $d | egrep -q ball; then
steven@14758 30 lndir $d $(basename $d) > /dev/null 2>&1
steven@14758 31 fi
kfraser@11209 32 done
kfraser@11209 33
kfraser@11203 34 ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
kfraser@11202 35 ln -sf ${XL}/drivers/xen/core/features.c platform-pci
kfraser@11209 36 ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
kfraser@14820 37 ln -sf ${XL}/drivers/xen/core/reboot.c platform-pci
kfraser@11202 38
kaf24@13670 39 mkdir -p include/asm include/xen
kfraser@11202 40
kfraser@11202 41 lndir -silent ${XL}/include/xen include/xen
ian@12243 42 ln -nsf ${XEN}/include/public include/xen/interface
kfraser@11202 43
kfraser@11202 44 # Need to be quite careful here: we don't want the files we link in to
kfraser@11202 45 # risk overriding the native Linux ones (in particular, system.h must
kfraser@11202 46 # be native and not xenolinux).
kfraser@11202 47 case "$uname"
kfraser@11202 48 in
kfraser@11202 49 "x86_64")
kfraser@11885 50 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
kfraser@11885 51 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
kfraser@11885 52 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
kfraser@11885 53 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
keir@15322 54 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/gnttab_dma.h include/asm
kfraser@15264 55 mkdir -p include/asm-i386
kaf24@13670 56 lndir -silent ${XL}/include/asm-i386 include/asm-i386
kfraser@11885 57 ;;
kfraser@11202 58 i[34567]86)
kfraser@11885 59 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
kfraser@11885 60 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
kfraser@11885 61 ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
kfraser@11885 62 ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
keir@15322 63 ln -sf ${XL}/include/asm-i386/mach-xen/asm/gnttab_dma.h include/asm
kfraser@11885 64 ;;
kaf24@11502 65 "ia64")
kfraser@11885 66 ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
kfraser@11885 67 ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
kfraser@11885 68 ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
kfraser@11885 69 ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
keir@15322 70 ln -sf ${XL}/include/asm-ia64/gnttab_dma.h include/asm
kfraser@15264 71 mkdir -p include/asm/xen
awilliam@12036 72 ln -sf ${XL}/include/asm-ia64/xen/xcom_hcall.h include/asm/xen
awilliam@12036 73 ln -sf ${XL}/include/asm-ia64/xen/xencomm.h include/asm/xen
awilliam@12036 74 ln -sf ${XL}/arch/ia64/xen/xcom_mini.c platform-pci
awilliam@12036 75 ln -sf ${XL}/arch/ia64/xen/xencomm.c platform-pci
kfraser@11885 76 ;;
kfraser@11202 77 *)
kfraser@11885 78 echo unknown architecture $uname
kfraser@11885 79 exit 1
kfraser@11885 80 ;;
kfraser@11202 81 esac