view sources/sections/toybox.build @ 1500:7e918ec092c9

Fix toybox build script.
author Rob Landley <rob@landley.net>
date Sat, 04 Feb 2012 23:20:53 -0600
parents 461d70885b17
children ef9114dfbd2e
line wrap: on
line source

# Build toybox statically by default, but don't statically link against
# glibc (during host-tools.sh build) because glibc is buggy and can't combine
# --static with --gc-sections. See http://blah for details

# Build toybox

for i in defconfig toybox install$([ -z "$ARCH" ] && echo _flat)
do
  PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \
    CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $i || dienow
done
cp .config "$WORK"/config-toybox || dienow

if [ ! -z "$SKIP_STRIP" ]
then
  cp toybox_unstripped "$INSTDIR/toybox" || dienow
fi