view sources/sections/busybox.build @ 1177:7ca3dfbc9e06

Update to busybox 1.17.1 and switch to defconfig instead of trimconfig.
author Rob Landley <rob@landley.net>
date Mon, 26 Jul 2010 00:05:38 -0500
parents cb4dbdb7f2cd
children 41fdac77a907
line wrap: on
line source

# Build busybox statically by default, but don't statically link against
# glibc (during host_tools) build because glibc is buggy and can't combine
# --static with --gc-sections.

# Build busybox

#make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" &&
make defconfig &&
cp .config "$WORK"/config-busybox &&
LDFLAGS="$LDFLAGS $STATIC_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS &&
make busybox.links || dienow

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

cp busybox${SKIP_STRIP:+_unstripped} "$INSTDIR/busybox" || dienow

for i in $(sed 's@.*/@@' busybox.links)
do
  [ ! -f "$INSTDIR/$i" ] && (ln -sf busybox "$INSTDIR/$i" || dienow)
done
rm -f "$INSTDIR"/{patch,tune2fs}