Mercurial > hg > aboriginal
annotate buildall.sh @ 776:37c083cca810
Move doforklog to sources/functions.sh.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Jul 2009 14:12:25 -0500 |
parents | 2b9e8af90917 |
children | e373d2b6d0b8 |
rev | line source |
---|---|
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Build every target architecture, creating out-$ARCH.txt log files. |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # If $FORK is set, build them in parallel. |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
669 | 6 . sources/functions.sh || exit 1 |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
8 [ -z "${ARCHES}" ] && |
722 | 9 ARCHES="$(cd sources/targets/; ls | grep -v '^hw-')" |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
10 [ -z "$ALLARCHES" ] && |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
11 ALLARCHES="${ARCHES} $(cd sources/targets; ls | grep '^hw-')" |
744
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
12 export FAIL_QUIET=1 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
13 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
14 DO_SKIP_STAGE_TARBALLS="$SKIP_STAGE_TARBALLS" |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
15 [ ! -z "$CROSS_COMPILERS_EH" ] && DO_SKIP_STAGE_TARBALLS=1 |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
16 |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
17 # Perform initial setup that doesn't parallelize well: Download source, |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 # build host tools, extract source. |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 |
755 | 20 blank_tempdir build |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
21 mkdir -p build/logs |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
22 (./download.sh && ./host-tools.sh && ./download.sh --extract || dienow ) 2>&1 | |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
23 tee build/logs/out-host.txt |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 |
630
0e8a887f9d8b
buildall.sh should create the README file in the output directory.
Rob Landley <rob@landley.net>
parents:
610
diff
changeset
|
25 # Create README file (requires build/sources to be extracted) |
0e8a887f9d8b
buildall.sh should create the README file in the output directory.
Rob Landley <rob@landley.net>
parents:
610
diff
changeset
|
26 |
722 | 27 cat packages/MANIFEST sources/toys/README.footer > build/README || exit 1 |
630
0e8a887f9d8b
buildall.sh should create the README file in the output directory.
Rob Landley <rob@landley.net>
parents:
610
diff
changeset
|
28 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
29 # Build all the initial cross compilers, possibly in parallel |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
31 # These are dynamically linked on the host, --disable-shared, no uClibc++. |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
32 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
33 for i in ${ARCHES} |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
35 LOG=build/logs/cross-dynamic-${i}.txt \ |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
36 SKIP_STAGE_TARBALLS="$DO_SKIP_STAGE_TARBALLS" \ |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
37 doforklog ./cross-compiler.sh $i |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 done |
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
40 wait |
610
a47844b73616
New simple buildall.sh that's a wrapper around build.sh. (Chop out half of build-all-targets, need to make a separate script to build static toolchains.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
42 # Should we do the static compilers via canadian cross? |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
43 |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
44 if [ ! -z "$CROSS_COMPILERS_EH" ] |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
45 then |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
46 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
47 # Build the static cross compilers, possibly in parallel |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
48 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
49 # These are statically linked against uClibc on the host (for portability), |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
50 # built --with-shared, and have uClibc++ installed. |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
51 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
52 # To build each of these we need two existing cross compilers: one for |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
53 # the host (to build the executables) and one for the target (to build |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
54 # the libraries). |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
55 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
56 for i in ${ARCHES} |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
57 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
58 LOG=build/logs/cross-static-${i}.txt SKIP_STAGE_TARBALLS=1 BUILD_STATIC=1 \ |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
59 FROM_ARCH="$CROSS_COMPILERS_EH" NATIVE_TOOLCHAIN=only \ |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
60 STAGE_NAME=cross-static doforklog ./root-filesystem.sh $i |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
61 done |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
62 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
63 wait |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
64 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
65 # Replace the dynamic cross compilers with the static ones, and tar 'em up. |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
66 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
67 rm -rf build/dynamic && |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
68 mkdir -p build/dynamic && |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
69 mv build/cross-compiler-* build/dynamic || exit 1 |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
70 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
71 for i in ${ARCHES} |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
72 do |
744
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
73 mv build/{root-filesystem-$i,cross-compiler-$i} 2>/dev/null && |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
74 doforklog tar cjfC build/cross-compiler-$i.tar.bz2 build cross-compiler-$i |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
75 done |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
76 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
77 wait |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
78 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
79 fi |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
80 |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
81 if [ ! -z "$NATIVE_COMPILERS_EH" ] |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
82 then |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
83 |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
84 # Build static native compilers for each target, possibly in parallel |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
85 |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
86 for i in ${ARCHES} |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
87 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
88 LOG=build/logs/native-static-${i}.txt SKIP_STAGE_TARBALLS=1 BUILD_STATIC=1 \ |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
89 NATIVE_TOOLCHAIN=only STAGE_NAME=native-static \ |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
90 doforklog ./root-filesystem.sh $i |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
91 done |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
92 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
93 wait |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
94 |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
95 for i in ${ARCHES} |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
96 do |
744
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
97 mv build/{root-filesystem-$i,natemp-$i} 2>/dev/null && |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
98 doforklog tar cjfC build/native-compiler-$i.tar.bz2 build/natemp-"$i" . |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
99 done |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
100 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
101 wait |
736
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
102 |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
103 rm -rf build/natemp-* & |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
104 fi |
88c2f1225e35
Build statically linked native compiler tarballs (extract 'em on any native system and build with them), and fix several unrelated bugs.
Rob Landley <rob@landley.net>
parents:
722
diff
changeset
|
105 |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
106 # Now that we have our cross compilers, use them to build root filesystems. |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
107 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
108 for i in ${ARCHES} |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
109 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
110 LOG=build/logs/root-filesystem-$i.txt doforklog ./root-filesystem.sh $i |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
111 done |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
112 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
113 wait |
721
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
114 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
115 # Package all targets, including hw-targets. |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
116 |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
117 for i in ${ALLARCHES} |
f0ede6d6c952
Do canadian cross static toolchains properly, via buildall.sh.
Rob Landley <rob@landley.net>
parents:
718
diff
changeset
|
118 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
119 LOG=build/logs/system-image-$i.txt doforklog ./system-image.sh $i |
717
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
120 done |
5a3ebc77340c
Teach buildall.sh to canadian cross static cross compilers with --enable-shared and uClibc++ when you set "$CROSS_COMPILERS_EH".
Rob Landley <rob@landley.net>
parents:
669
diff
changeset
|
121 |
744
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
122 # Run smoketest.sh for each non-hw target. |
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
123 |
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
124 for i in ${ARCHES} |
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
125 do |
769
5cb8f24c116a
Have buildall save its logs in build/logs instead of build/.
Rob Landley <rob@landley.net>
parents:
755
diff
changeset
|
126 LOG=build/logs/smoketest-$i.txt doforklog ./smoketest.sh $i |
744
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
127 done |
759adf5a0fe9
Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents:
736
diff
changeset
|
128 |
773
2b9e8af90917
Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
Rob Landley <rob@landley.net>
parents:
769
diff
changeset
|
129 wait |