blob: 6c744fcfeb4107dff91fd7a3ffd0f4a15a11e7dc (
plain)
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
78
79
80
81
82
83
84
85
86
|
#! /bin/sh
#
# Test Driver
#
# $Id$
#
vfile=`dirname $0`/VERSIONS
if [ ! -r ${vfile} ] ; then
echo VERSIONS file not found
exit 1
fi
source ${vfile}
start=`date`
echo Started at: ${start}
BASEDIR=`pwd`
# HELPER - Update RTEMS
update_rtems()
{
cd ${RTEMSDIR}
cvs up -Pd 2>&1 | grep -v ^cvs
./bootstrap -c
./bootstrap
}
# HELPER - Update GCC
update_gcc()
{
cd ${GCCDIR}
./contrib/gcc_update
}
# HELPER - Remove all the installed previous builds
clean_up()
{
rm -rf install/* &
rm -rf bsp-install/* &
wait
}
install_auto()
{
for auto in ${AUTOCONF} ${AUTOMAKE}
do
if [ ! -d ${auto} ] ; then
echo "${d} not installed"
exit 0
fi
cd ${auto}
make distclean
./configure --prefix=${BASEDIR}/install
make all install
done
}
# Clean the install point
clean_up
# Update gcc and install autotools in parallel
install_auto &
update_gcc &
wait
# Do any remaining prep work in parallel
update_rtems &
wait
# Build the native compiler as a baseline to build the others
${SCRIPTDIR}/do_cpus native
# Now cycle over all these CPUs
if [ $? -eq 0 ] ; then
${SCRIPTDIR}/do_cpus sparc mips
#${SCRIPTDIR}/do_cpus m32c arm h8300 i386 mips sh powerpc sparc
#${SCRIPTDIR}/do_cpus i386
# wait
fi
# ${SCRIPTDIR}/do_cpus sparc powerpc mips i386 arm
stopped=`date`
echo Started at: ${start}
echo Stopped at: ${stopped}
|