Mercurial > hg > aboriginal
annotate more/buildall-native.sh @ 1432:ee0e4f2f4bdb
Fiddle with the downloads/binaries layout yet again, and update README for it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 23 Aug 2011 08:21:48 -0500 |
parents | aabc07905de3 |
children | 1039cd16dc92 |
rev | line source |
---|---|
1417
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Natively build for every target architecture, saving log files to build/log. |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # If $FORK is set, build them in parallel. |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 . sources/utility_functions.sh || exit 1 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 if [ ! -f "$1" ] |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 then |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 echo "Can't find control image at \"$1\"" >&2 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 exit 1 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 fi |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 trap "killtree $$" EXIT |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 # Build the hdb images sequentially without timeout.sh, to avoid potential |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 # I/O storm triggering timeouts |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 FORK= more/for-each-target.sh \ |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 '. sources/toys/make-hdb.sh; HDBMEGS=2048; HDB=build/system-image-$TARGET/hdb.img; echo "$HDB"; rm -f "$HDB"; make_hdb' |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 # Build static-tools (dropbear and strace) for each target |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 mkdir -p build/native-static || dienow |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 more/for-each-target.sh \ |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 'ln -sf ../native-static build/system-image-$TARGET/upload' |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 more/for-each-target.sh \ |
aabc07905de3
Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 'more/timeout.sh 60 "HDB=hdb.img more/native-build-from-build.sh $TARGET "'"$1"'" | tee build/logs/native-$TARGET.txt"' |