Mercurial > hg > aboriginal
changeset 507:58e9523a775d
Tweak the readme, add comments, remove some dead code.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 30 Nov 2008 06:18:43 -0600 |
parents | defaef66dfae |
children | 909a4921273d |
files | cross-compiler.sh |
diffstat | 1 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/cross-compiler.sh Sun Nov 30 06:18:12 2008 -0600 +++ b/cross-compiler.sh Sun Nov 30 06:18:43 2008 -0600 @@ -107,9 +107,9 @@ cat > "${CROSS}"/README << EOF && Cross compiler for $ARCH -From http://landley.net/code/firmware +From http://impactlinux.com/fwl -To use: Add the "bin" directory to your \$PATH, and use "$ARCH-gcc" as +To use: Add the "bin" subdirectory to your \$PATH, and use "$ARCH-gcc" as your compiler. The syntax used to build the Linux kernel is: @@ -118,25 +118,21 @@ EOF -# Strip everything +# Strip the binaries cd "$CROSS" for i in `find bin -type f` `find "$CROSS_TARGET" -type f` do strip "$i" 2> /dev/null done -#for i in `find lib -type f` `find gcc/lib -type f` -#do -# "${ARCH}-strip" "$i" 2> /dev/null -#done + +# Tar it up echo -n creating "build/cross-compiler-${ARCH}".tar.bz2 && cd "${BUILD}" { tar cjvf "cross-compiler-${ARCH}".tar.bz2 cross-compiler-"${ARCH}" || dienow } | dotprogress -[ $? -ne 0 ] && dienow - # A quick hello world program to test the cross-compiler out. # Build hello.c dynamic, then static, to verify header/library paths.