view sources/sections/toybox.sh @ 910:f1671488c740

Split busybox and toybox builds, update toybox and linux package versions.
author Rob Landley <rob@landley.net>
date Tue, 01 Dec 2009 19:49:23 -0600
parents
children 18f052489f5d
line wrap: on
line source

# Build toybox

[ ! -z "$ARCH" ] && DO_CROSS=CROSS_COMPILE=${ARCH}-

setupfor toybox
make defconfig &&
CFLAGS="$CFLAGS $STATIC_FLAGS" make $DO_CROSS || dienow

if [ -z "$USE_TOYBOX" ]
then
  mv toybox "$STAGE_DIR" &&
  ln -sf toybox "$STAGE_DIR"/patch &&
  ln -sf toybox "$STAGE_DIR"/oneit &&
  ln -sf toybox "$STAGE_DIR"/netcat || dienow
else
  make install_flat PREFIX="$STAGE_DIR" || dienow
fi

cleanup