Mercurial > hg > aboriginal
diff mini-native.sh @ 83:8fb80545fe84
Move the "hello world" source into sources/toys. Build (in mini-native)
tools/bin/hello-{dynamic,static} to make debugging qemu system emulation
easier via "init=/tools/bin/hello-static" and such.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 12 Jan 2007 15:25:59 -0500 |
parents | 6dd38c925bc4 |
children | 7c874da5505c |
line wrap: on
line diff
--- a/mini-native.sh Fri Jan 12 02:59:26 2007 -0500 +++ b/mini-native.sh Fri Jan 12 15:25:59 2007 -0500 @@ -156,6 +156,14 @@ [ $? -ne 0 ] && dienow +# Put statically and dynamically linked hello world programs on there for +# test purposes. + +"${ARCH}-gcc" "${SOURCES}/toys/hello.c" -Os -s -o "${TOOLS}/bin/hello-dynamic" && +"${ARCH}-gcc" "${SOURCES}/toys/hello.c" -Os -s -static -o "${TOOLS}/bin/hello-static" && + +[ $? -ne 0 ] && dienow + fi # Clean up and package the result