debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 11502:3bff5c5b9206

Fix unmodified drivers for PV-on-HVM on IA64.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 13 14:34:34 2006 +0100 (2006-09-13)
parents 88e8abee7575
children dde8c8038e17 7c2a5f96a192
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 ;;
kaf24@11502 45 "ia64")
kaf24@11502 46 ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
kaf24@11502 47 ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
kaf24@11502 48 ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
kaf24@11502 49 ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
kaf24@11502 50 ;;
kfraser@11202 51 *)
kfraser@11202 52 echo unknown architecture $uname
kfraser@11202 53 exit 1
kfraser@11202 54 ;;
kfraser@11202 55 esac