1482
|
1 # Build toybox statically by default, but don't statically link against
|
|
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
|
|
4
|
|
5 # Build toybox
|
|
6
|
1500
|
7 for i in defconfig toybox install$([ -z "$ARCH" ] && echo _flat)
|
|
8 do
|
|
9 PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \
|
|
10 CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $i || dienow
|
|
11 done
|
|
12 cp .config "$WORK"/config-toybox || dienow
|
1482
|
13
|
|
14 if [ ! -z "$SKIP_STRIP" ]
|
|
15 then
|
|
16 cp toybox_unstripped "$INSTDIR/toybox" || dienow
|
|
17 fi
|