Mercurial > hg > aboriginal
changeset 1500:7e918ec092c9
Fix toybox build script.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 04 Feb 2012 23:20:53 -0600 |
parents | 461d70885b17 |
children | fddd7d20ae72 |
files | sources/sections/toybox.build |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/sections/toybox.build Sat Feb 04 13:29:02 2012 -0600 +++ b/sources/sections/toybox.build Sat Feb 04 23:20:53 2012 -0600 @@ -4,10 +4,12 @@ # Build toybox -make defconfig && -cp .config "$WORK"/config-toybox && -CFLAGS="$CFLAGS $STATIC_FLAGS" $DO_CROSS make -j $CPUS && -PREFIX="$STAGE_DIR" make install$([ -z "$DO_CROSS" ] && echo _flat) || dienow +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