annotate cross-compiler.sh @ 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...)
author Rob Landley <rob@landley.net>
date Sun, 27 Jun 2010 21:00:55 -0500
parents
children 300e6d919d86
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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
26 sources/more/cross-smoke-test.sh "$ARCH" || 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
27 fi