Mercurial > hg > aboriginal
comparison sources/sections/toybox.build @ 1544:e2f722cc97a6
Make busybox build by default, switch override knob to BUSYBOX=1 to use defconfig busybox, always use toybox for oneit, cleanup/fix record-commands logic.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 06 Sep 2012 05:11:25 -0500 |
parents | ef9114dfbd2e |
children | 59c1495d5b5e |
comparison
equal
deleted
inserted
replaced
1543:ff7f43a0bee0 | 1544:e2f722cc97a6 |
---|---|
2 # glibc (during host-tools.sh build) because glibc is buggy and can't combine | 2 # glibc (during host-tools.sh build) because glibc is buggy and can't combine |
3 # --static with --gc-sections. See http://blah for details | 3 # --static with --gc-sections. See http://blah for details |
4 | 4 |
5 # Build toybox | 5 # Build toybox |
6 | 6 |
7 for i in defconfig toybox install$([ -z "$ARCH" ] && echo _flat) | 7 for i in defconfig toybox \ |
8 $( [ -z "$BUSYBOX" ] && echo install$([ -z "$ARCH" ] && echo _flat) ) | |
8 do | 9 do |
9 PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \ | 10 PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \ |
10 CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $VERBOSITY $i || dienow | 11 CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $VERBOSITY $i || dienow |
11 done | 12 done |
12 cp .config "$WORK"/config-toybox || dienow | 13 cp .config "$WORK"/config-toybox || dienow |
13 | 14 |
15 # We always need at least oneit | |
16 | |
17 if [ ! -z "$BUSYBOX" ] | |
18 then | |
19 ln -sf toybox "$STAGE_DIR/${ARCH:+sbin/}oneit" || dienow | |
20 fi | |
21 | |
14 if [ ! -z "$SKIP_STRIP" ] | 22 if [ ! -z "$SKIP_STRIP" ] |
15 then | 23 then |
16 cp toybox_unstripped "$INSTDIR/toybox" || dienow | 24 cp toybox_unstripped "$INSTDIR/toybox" || dienow |
17 fi | 25 fi |