Mercurial > hg > aboriginal
view sources/sections/busybox.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/busybox.sh@18f052489f5d |
children | fc134a13357e |
line wrap: on
line source
# Build busybox statically by default, but don't statically link against # glibc because glibc is buggy and can't combine --static with --gc-sections. [ "$BUILD_STATIC" != "none" ] && [ ! -z "$ARCH" ] && BUSYBOX_STATIC="--static" [ ! -z "$ARCH" ] && DO_CROSS=CROSS_COMPILE=${ARCH}- # Build busybox make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" && cp .config "$WORK"/config-busybox && LDFLAGS="$LDFLAGS $BUSYBOX_STATIC" make -j $CPUS $VERBOSITY $DO_CROSS && make busybox.links && cp busybox${SKIP_STRIP:+_unstripped} "${STAGE_DIR}/busybox" || dienow for i in $(sed 's@.*/@@' busybox.links) do [ ! -f "${STAGE_DIR}/$i" ] && (ln -sf busybox "${STAGE_DIR}/$i" || dienow) done