blob: 3d73a84dc53d706ed984110debb00f68458b9c6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#!/bin/sh
#
# $Id: populate,v 1.3 1998/09/04 08:08:05 abial Exp $
#
pwd=`pwd`
echo "-> Populating MFS tree..."
cd ../${TYPE}/mfs.tree
make
if [ X"${RELENG_2_2}" != X"" ]
then
make devnodes
fi
if [ "X$?" != "X0" ]
then
echo "-> ERROR while making \"${TYPE}\" hierarchy in /mnt..."
echo "-> Aborting $0"
exit 10
fi
if [ "${TYPE}" = "router" ]
then
cp ../lang/mfs.rc.${LANGUAGE} /mnt/etc/oinit.rc
else
cp ../lang/mfs.rc.${LANGUAGE} /mnt/etc/rc
cp login.conf /mnt/etc/login.conf
cp ../lang/reboot.${LANGUAGE} /mnt/stand/reboot
ln -f /mnt/stand/reboot /mnt/stand/shutdown
cp ../lang/README.${LANGUAGE} /mnt/README
fi
cp ../lang/update.${LANGUAGE} /mnt/stand/update
if [ "${TYPE}" = "dial" ]
then
cp ../lang/login.${LANGUAGE} /mnt/stand/login
cp ../lang/dialup.${LANGUAGE} /mnt/stand/dialup
(cd ../../help;\
rm -rf tmp_hlp;\
mkdir tmp_hlp;\
for i in `ls *.hlp.${LANGUAGE}`;\
do \
cp $i tmp_hlp/`basename $i .hlp.${LANGUAGE}`;\
done;\
cd tmp_hlp;\
ar -cru help.a *;\
cp help.a /mnt/help.a)
elif [ "${TYPE}" != "router" ]
then
cp ../../build/kvm_kernel.db /mnt/var/db/kvm_kernel.db
rm ../../build/kvm_kernel.db
fi
echo "-> Making and installing crunch1..."
cd ../crunch1
make "SRC=${SRC}" && make install 2>&1 >/dev/null
if [ "X$?" != "X0" ]
then
echo "-> ERROR while building ../${TYPE}/crunch1..."
echo "-> Aborting $0"
exit 10
fi
cd ${pwd}
echo "-> Preparing kernel symbols list..."
if [ ! -f ../tools/dumpnlist/dumpnlist ]
then
(cd ../tools/dumpnlist; make)
fi
../tools/dumpnlist/dumpnlist ./kernel >/mnt/stand/symbols
echo "-> Preparing kernel config list..."
if [ ! -f ../tinyware/kget/kget ]
then
(cd ../tinyware/kget; make)
fi
../tinyware/kget/kget ./kernel /mnt/stand/vanilla
(echo "-> Fixing permissions"; cd /mnt; chown -R root *)
|