Bump zlib to 1.3.1, 1.3 is no longer available.
[harbours.git] / build_all.sh
blobaae4bd9e361d1c8cfeb09343a13ce48b23dcc9c0
1 #!/bin/sh
3 helenos_dir=$1
5 profiles="amd64 ia64/ski ia32 arm32/integratorcp mips32/msim ppc32 riscv64 sparc64/ultra"
7 profiles="$profiles arm32/beagleboardxm arm32/beaglebone arm32/gta02 arm32/raspberrypi"
8 profiles="$profiles ia64/i460GX mips32/malta-be mips32/malta-le sparc64/niagara"
10 # Order matters, dependencies must come before dependents.
11 harbours="binutils fdlibm libgmp libisl libmpfr libmpc zlib gcc gzx jainja libiconv libpng lua msim pcc python2 sycek"
13 excludes=`cat<<EOF
14 ia64/i460GX:pcc
15 ia64/ski:pcc
16 arm32/beagleboardxm:pcc
17 arm32/beaglebone:pcc
18 arm32/gta02:pcc
19 arm32/integratorcp:pcc
20 arm32/raspberrypi:pcc
21 riscv64:pcc
22 riscv64:binutils
23 riscv64:gcc
24 sparc64/niagara:pcc
25 sparc64/ultra:pcc
26 EOF`
29 if [ -z "$helenos_dir" ]; then
30 echo "You need to specify helenos directory on the command line."
31 exit 1
34 helenos_dir=`realpath $helenos_dir`
35 echo "HelenOS directory: $helenos_dir"
37 if [ -x build ]; then
38 echo "build directory already exists"
39 exit 1
42 mkdir build
43 cd build
45 for p in $profiles; do
46 pdir=`echo $p | sed 's/\//_/g'`
48 mkdir $pdir
49 cd $pdir
51 printf "%-32s " "$p"
53 ../../hsct.sh init $helenos_dir $p >helenos.log 2>&1
55 if [ $? -eq 0 ]; then
56 echo "OK"
57 cd ..
58 else
59 echo "FAILED"
60 cd ..
61 rm -rf $pdir
63 done
65 for p in $profiles; do
66 pdir=`echo $p | sed 's/\//_/g'`
68 cd $pdir || continue
70 for h in $harbours; do
71 printf "%-32s " "$p:$h"
73 echo "$excludes" | grep "$p:$h" > /dev/null
74 if [ $? -eq 0 ]; then
75 echo "ign"
76 continue
79 ../../hsct.sh archive --no-deps $h >$h.log 2>&1
80 rc=$?
81 case $rc in
82 "0")
83 echo "OK"
85 "62" | "63")
86 echo "FAILED FETCH"
88 "64")
89 echo "dep"
91 "66")
92 echo "FAILED BUILD"
95 echo "FAILED $rc"
97 esac
98 done
100 cd ..
101 done