view sources/sections/toybox.build @ 1187:878dbfe76341

Move $BUILD/logs creation from record-commands.sh to include.sh so it gets reliably recreated when a user blanks the logs and re-runs.
author Rob Landley <rob@landley.net>
date Sun, 01 Aug 2010 15:19:00 -0500
parents 1ad777637d2d
children
line wrap: on
line source

# Build toybox

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

# Install into bin subdirectory if it exists

[ -d "$STAGE_DIR/bin" ] && INSTDIR="$STAGE_DIR/bin" || INSTDIR="$STAGE_DIR"

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

mv toybox${SKIP_STRIP:+_unstripped} "$INSTDIR/toybox"