debuggers.hg

view install.sh @ 3632:fec8b1778268

bitkeeper revision 1.1159.212.60 (41febc4bKKSkh9u-Zes9v2CmBuLZxA)

More bootstrap fixes for x86/64. Next thing to do is sort out the IDT and
get traps.c working; then we can get rid of a bunch of dummy labels from
end of boot/x86_64.S. We're also going to need some kind of entry.S before
we can safely enable interrupts. Also bear in mind that not all of physical
RAM may be mapped (only first 1GB) and no m2p table is yet allocated or
mapped. Plenty to be done!
author kaf24@viper.(none)
date Mon Jan 31 23:16:27 2005 +0000 (2005-01-31)
parents 30ee9c427a5b
children
line source
1 #!/bin/sh
3 src='./install'
4 if [ -d ./dist ]; then
5 src='./dist/install'
6 fi
8 if ! [ -d $src ]; then
9 echo "ERROR: Could not find a valid distribution directory."
10 echo " If this is a source-only release, try 'make dist'."
11 exit 1
12 fi
14 dst='/'
15 if [ $# -ne 0 ]; then
16 dst=$1
17 fi
19 if ! [ -d $dst ]; then
20 echo "ERROR: You must specify a valid install directory."
21 echo " The specified directory '$dst' is not valid."
22 exit 1
23 fi
25 echo "Installing Xen from '$src' to '$dst'..."
26 cd $src/boot
27 (echo '2.6.*' -2.6; echo '2.4.*' -2.4; echo '2.*.*' '') | while read m v
28 do
29 l=$(eval ls -t vmlinuz-$m-xen0 2>/dev/null | head -n 1)
30 [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xen0
31 l=$(eval ls -t vmlinuz-$m-xenU 2>/dev/null | head -n 1)
32 [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xenU
33 done
34 cd -
35 cp -fdR $src/* $dst
36 echo "All done."
38 echo "Checking to see whether prerequisite tools are installed..."
39 cd $src/../check
40 ./chk install
41 echo "All done."
43 exit 0