mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
56 lines
1.7 KiB
Bash
56 lines
1.7 KiB
Bash
#! /bin/sh
|
|
|
|
C=$PWD
|
|
|
|
XEN=$C/../../xen
|
|
XL=$C/../../linux-2.6-xen-sparse
|
|
|
|
for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
|
|
if ! echo $d | egrep -q back; then
|
|
lndir $d $(basename $d) > /dev/null 2>&1
|
|
fi
|
|
done
|
|
|
|
ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
|
|
ln -sf ${XL}/drivers/xen/core/features.c platform-pci
|
|
ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
|
|
|
|
mkdir -p include
|
|
mkdir -p include/xen
|
|
mkdir -p include/public
|
|
mkdir -p include/asm
|
|
|
|
lndir -silent ${XL}/include/xen include/xen
|
|
ln -sf ${XEN}/include/public include/xen/interface
|
|
|
|
# Need to be quite careful here: we don't want the files we link in to
|
|
# risk overriding the native Linux ones (in particular, system.h must
|
|
# be native and not xenolinux).
|
|
uname=`uname -m`
|
|
case "$uname"
|
|
in
|
|
"x86_64")
|
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypervisor.h include/asm
|
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
|
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
|
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
|
|
ln -sf ${XL}/include/asm-i386 include/asm-i386
|
|
;;
|
|
i[34567]86)
|
|
ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
|
|
ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypercall.h include/asm
|
|
ln -sf ${XL}/include/asm-i386/mach-xen/asm/synch_bitops.h include/asm
|
|
ln -sf ${XL}/include/asm-i386/mach-xen/asm/maddr.h include/asm
|
|
;;
|
|
"ia64")
|
|
ln -sf ${XL}/include/asm-ia64/hypervisor.h include/asm
|
|
ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
|
|
ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
|
|
ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
|
|
;;
|
|
*)
|
|
echo unknown architecture $uname
|
|
exit 1
|
|
;;
|
|
esac
|