view @ 345:1a70dfe0a436 0.4.0

Quick smoke test for system image: ./ $ARCH | grep 'Hello world!' The result should be "Hello world!". (Also acts as a template for driving a qemu instance from a script.)
author Rob Landley <>
date Wed, 04 Jun 2008 18:03:00 -0500
children 148b62e763d3
line wrap: on
line source


# 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, you probably also need
# to start with a line of spaces like that.  Just FYI.

./ $1 << 'EOF'
# Show free space
# Smoke test for the compiler
gcc -s /tools/src/thread-hello2.c -lpthread &&