Mercurial > hg > aboriginal
view sources/sections/busybox.build @ 1083:cb4dbdb7f2cd
Make BUILD_STATIC take comma separated list of packages, or "all" or "none". Default behavior should remain the same.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 16 May 2010 02:26:03 -0500 |
parents | e021bba5e22e |
children | 7ca3dfbc9e06 |
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" && 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