view @ 1839:c8293b3ab81f draft default tip

Teach chroot-splice to accept one or two arguments. (Control image now optional.)
author Rob Landley <>
date Sun, 17 Jan 2016 21:18:52 -0600
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