Mercurial > hg > aboriginal
annotate cross-compiler.sh @ 1164:3a959ee85558
Make NO_CLEANUP work with sources/sections/gcc.sh
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 10 Jul 2010 23:38:51 -0500 |
parents | 300e6d919d86 |
children | ac490c50f9f5 |
rev | line source |
---|---|
1144
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Build a more advanced cross compiler, including thread support and uClibc++, |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # built --with-shared (which produces libgcc_s.so), and statically linked |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # against uClibc on the host (for portability). |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 # Building this requires two existing (simple) cross compilers: one for |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 # the host (to build the executables) and one for the target (to build |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 # the libraries). |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 # This is a simple wrapper for native-compiler.sh, we re-use the canadian |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 # cross infrastructure in there to build a very similar compiler. |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 # Unless told otherwise, create statically linked i686 host binaries (which |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 # should run on an x86-64 host just fine, even if it hasn't got 32-bit |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 # libraries installed). |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 HOST_ARCH="${CROSS_HOST_ARCH:-i686}" BUILD_STATIC=${BUILD_STATIC:-all} \ |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 STAGE_NAME=cross-compiler ./native-compiler.sh "$1" || exit 1 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 # Run the cross compiler smoke test if requested. |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 if [ ! -z "$CROSS_SMOKE_TEST" ] |
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 then |
1157
300e6d919d86
Move "sources/more/" to just "more/", add a README explaining why those scripts are there, and adjust calls to them.
Rob Landley <rob@landley.net>
parents:
1144
diff
changeset
|
26 more/cross-smoke-test.sh "$ARCH" || exit 1 |
1144
319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 fi |