debuggers.hg

annotate unmodified_drivers/linux-2.6/mkbuildtree @ 13670:fcaf34bc5e41

Cleanups for unmodified (pv-on-hvm) driver building.

- some cleanup to mkbuildtree
- adjustment to the fake __supported_pte_mask definition (removing the
export for x86-64 in native Linux is being discussed, so this shouldn't be
i386 specific)
- remove odd/unused defines (mostly CONFIG_*) in overrides.mk

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kaf24@localhost.localdomain
date Fri Jan 26 13:34:02 2007 +0000 (2007-01-26)
parents af1403dd13af
children 2bbd28891160
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@11202 13 XEN=$C/../../xen
kfraser@11202 14 XL=$C/../../linux-2.6-xen-sparse
kfraser@11202 15
kfraser@11209 16 for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
kfraser@11209 17 if ! echo $d | egrep -q back; then
kfraser@11209 18 lndir $d $(basename $d) > /dev/null 2>&1
kfraser@11209 19 fi
kfraser@11209 20 done
kfraser@11209 21
kfraser@11203 22 ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
kfraser@11202 23 ln -sf ${XL}/drivers/xen/core/features.c platform-pci
kfraser@11209 24 ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
ssmith@12074 25 ln -sf ${XL}/drivers/xen/core/reboot.c util
kfraser@11202 26
kaf24@13670 27 mkdir -p include/asm include/xen
kfraser@11202 28
kfraser@11202 29 lndir -silent ${XL}/include/xen include/xen
ian@12243 30 ln -nsf ${XEN}/include/public include/xen/interface
kfraser@11202 31
kfraser@11202 32 # Need to be quite careful here: we don't want the files we link in to
kfraser@11202 33 # risk overriding the native Linux ones (in particular, system.h must
kfraser@11202 34 # be native and not xenolinux).
kfraser@11202 35 case "$uname"
kfraser@11202 36 in
kfraser@11202 37 "x86_64")
kfraser@11885 38 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
kfraser@11885 39 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
kfraser@11885 40 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
kfraser@11885 41 ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
kaf24@13670 42 mkdir include/asm-i386
kaf24@13670 43 lndir -silent ${XL}/include/asm-i386 include/asm-i386
kfraser@11885 44 ;;
kfraser@11202 45 i[34567]86)
kfraser@11885 46 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
kfraser@11885 47 ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
kfraser@11885 48 ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
kfraser@11885 49 ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
kfraser@11885 50 ;;
kaf24@11502 51 "ia64")
kfraser@11885 52 ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
kfraser@11885 53 ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
kfraser@11885 54 ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
kfraser@11885 55 ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
kaf24@13670 56 mkdir include/asm/xen
awilliam@12036 57 ln -sf ${XL}/include/asm-ia64/xen/xcom_hcall.h include/asm/xen
awilliam@12036 58 ln -sf ${XL}/include/asm-ia64/xen/xencomm.h include/asm/xen
awilliam@12036 59 ln -sf ${XL}/arch/ia64/xen/xcom_mini.c platform-pci
awilliam@12036 60 ln -sf ${XL}/arch/ia64/xen/xencomm.c platform-pci
kfraser@11885 61 ;;
kfraser@11202 62 *)
kfraser@11885 63 echo unknown architecture $uname
kfraser@11885 64 exit 1
kfraser@11885 65 ;;
kfraser@11202 66 esac