Mercurial > hg > aboriginal
comparison 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 |
comparison
equal
deleted
inserted
replaced
82:7b1360b20d9c | 83:8fb80545fe84 |
---|---|
154 cd .. && | 154 cd .. && |
155 $CLEANUP bash-* | 155 $CLEANUP bash-* |
156 | 156 |
157 [ $? -ne 0 ] && dienow | 157 [ $? -ne 0 ] && dienow |
158 | 158 |
159 # Put statically and dynamically linked hello world programs on there for | |
160 # test purposes. | |
161 | |
162 "${ARCH}-gcc" "${SOURCES}/toys/hello.c" -Os -s -o "${TOOLS}/bin/hello-dynamic" && | |
163 "${ARCH}-gcc" "${SOURCES}/toys/hello.c" -Os -s -static -o "${TOOLS}/bin/hello-static" && | |
164 | |
165 [ $? -ne 0 ] && dienow | |
166 | |
159 fi | 167 fi |
160 | 168 |
161 # Clean up and package the result | 169 # Clean up and package the result |
162 | 170 |
163 "${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*} | 171 "${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*} |