diff cross-compiler.sh @ 175:6fd189c18c1c

Three things: 1) dash->bash, 2) install cross-ldd and cross-readelf, 3) Note when about to run qemu application emulation sanity test (so people have some clue why it failed if it does).
author Rob Landley <rob@landley.net>
date Sun, 24 Jun 2007 17:43:01 -0400
parents 711eb6884b54
children fc827ab6166f
line wrap: on
line diff
--- a/cross-compiler.sh	Sun Jun 24 17:27:13 2007 -0400
+++ b/cross-compiler.sh	Sun Jun 24 17:43:01 2007 -0400
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Get lots of predefined environment variables and shell functions.
 
@@ -92,8 +92,8 @@
 make CROSS= distclean &&
 make CROSS= allnoconfig &&
 make CROSS= headers KERNEL_HEADERS=/usr/include &&
-$CC -Os -s -I include utils/readelf.c -o readelf &&
-$CC -Os -s -I ldso/include utils/ldd.c -o ldd &&
+$CC -Os -s -I include utils/readelf.c -o "${CROSS}/bin/${ARCH}-readelf" &&
+$CC -Os -s -I ldso/include utils/ldd.c -o "${CROSS}/bin/${ARCH}-ldd" &&
 cd .. &&
 $CLEANUP uClibc*
 
@@ -134,6 +134,8 @@
 # A quick hello world program to test the cross-compiler out.
 # Build hello.c dynamic, then static, to verify header/library paths.
 
+echo "Sanity test: building Hello World."
+
 "${ARCH}-gcc" -Os "${SOURCES}/toys/hello.c" -o "$WORK"/hello &&
 "${ARCH}-gcc" -Os -static "${SOURCES}/toys/hello.c" -o "$WORK"/hello &&
 if which qemu-"${QEMU_TEST}" > /dev/null