Mercurial > hg > aboriginal
view smoketest.sh @ 654:fa2498e3b3c9
Make a config option for the cross compiler smoke test. The problem is that recent kernel upgrades broke qemu-arm (application emulation, not system emulation), so it can't run anything unless you "echo 0 > /proc/sys/vm/mmap_min_addr" as root. Fun.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 26 Mar 2009 15:32:31 -0500 |
parents | 148b62e763d3 |
children | 0ac06d08cfe5 |
line wrap: on
line source
#!/bin/bash # This script compiles stuff under the final system, using distcc to call out # to the cross compiler. # Note that the first line of the script is a few spaces followed by a comment # character. This gives some harmless data for the linux boot process to # consume and discard before it gets to the command prompt. I don't know why # it does this, but it does. The comment character is so you can see how # much got eaten, generally about 3 characters. # If you cat your own script into emulator-build.sh, you probably also need # to start with a line of spaces like that. Just FYI. ./run-from-build.sh $1 << 'EOF' # # Show free space df # Smoke test for the compiler gcc -s /usr/src/thread-hello2.c -lpthread && ./a.out sync exit EOF