view @ 999:4bd1bc15a744

Move distcc setup to Fix bug where CPUS wasn't defined if distcc wasn't being used (leading to make -j with no limit, and OOM conditions in the emulated system).
author Rob Landley <>
date Mon, 15 Mar 2010 06:01:36 -0500
parents 2ca7ea5d3ec1
children c1556be739ba
line wrap: on
line source


. sources/ || exit 1

# This script compiles stuff under the final system, using distcc to call out
# to the cross compiler.  It calls run-from-build with a here document.

# 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 (serial
# initialization) to consume and discard before it gets to the command prompt.
# (The comment character is just so you can see how much got eaten.)

# If you cat your own script into, you probably also need
# to start with a line of spaces like that.  Just FYI.

SKIP_HOME=1 sources/ 60 ./ $1 << 'EOF'
# Show free space
# Smoke test for the compiler
gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello &&