view @ 1633:a4823c561e28

Patrick Lauer suggested making the smoketest timeout configurable, and default to 3 minutes when FORK=1.
author Rob Landley <>
date Tue, 15 Oct 2013 22:25:55 -0500
parents 7eabfa815c90
line wrap: on
line source


# Build a more advanced cross compiler, including thread support and uClibc++,
# built --with-shared (which produces, statically linked
# against uClibc on the host (for portability), and including the $TARGET-ldd
# and $TARGET-ldconfig utilities.

# Building this requires two existing (simple) cross compilers: one for
# the host (to build the executables) and one for the target (to build
# the libraries).

# This is a simple wrapper for, we re-use the canadian
# cross infrastructure in there to build a very similar compiler.

. sources/ || exit 1

# Unless told otherwise, create statically linked i686 host binaries (which
# should run on an x86-64 host just fine, even if it hasn't got 32-bit
# libraries installed).

  TOOLCHAIN_PREFIX="${1}-" STAGE_NAME=cross-compiler \
  ./ "$1" || exit 1

# Run the cross compiler smoke test if requested.

if [ ! -z "$CROSS_SMOKE_TEST" ]
  more/ "$ARCH" || exit 1