view sources/sections/toybox.build @ 938:609bc05b0d6a

Teach build_section to run "*.build" sections (with setupfor/cleanup called for them) as well as "*.sh" sections which do their own setup/cleanup.
author Rob Landley <rob@landley.net>
date Sat, 19 Dec 2009 00:51:16 -0600
parents sources/sections/toybox.sh@18f052489f5d
children fc134a13357e
line wrap: on
line source

# Build toybox

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

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

if [ -z "$USE_TOYBOX" ]
then
  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

cp toybox${SKIP_STRIP:+_unstripped} "$STAGE_DIR/toybox"