view more/ @ 1522:95a720e694a6

Switch x86_64 from nptl back to pthreads. This isn't the correct fix but uClibc apparently never tested nptl on x86-64, and one of the assembly files doesn't support PIC.
author Rob Landley <>
date Thu, 10 May 2012 22:03:22 -0500
parents 0921d99c1b71
children bd385934451f
line wrap: on
line source


# Run a native build with a control image for every architecture,
# using existing system-images under build, saving log files to build/log,
# uploading output into build.

# If $FORK is set, build them in parallel.

# Kill any build that doesn't produce output for $TIMEOUT (default 60) seconds.

. sources/ || exit 1

if [ ! -f "$1" ]
  echo "Can't find control image at \"$1\"" >&2
  exit 1

trap "killtree $$" EXIT

# Build the hdb images sequentially without, to avoid potential
# I/O storm triggering timeouts

FORK= more/ \
  '. sources/toys/; HDBMEGS=2048; HDB=build/system-image-$TARGET/hdb.img; echo "$HDB"; rm -f "$HDB"; make_hdb'

# Put each control image's output in the build directory

mkdir -p build/logs || dienow
more/ 'ln -sf .. build/system-image-$TARGET/upload'

# Run a control image for each target, using existing hdb.img

[ -z "$TIMEOUT" ] && export TIMEOUT=60
[ -z "$LOGFILE" ] && LOGFILE="$(echo $1 | sed 's@.*/\(.*\)\.hdc@\1@')"
more/ \
  'more/ $TIMEOUT "HDB=hdb.img more/ $TARGET '"$1 | tee build/logs/native-$LOGFILE-"'$TARGET.txt"'