debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 11202:879918dbe77f

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