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
|
|
7 make defconfig &&
|
|
8 cp .config "$WORK"/config-toybox &&
|
|
9 CFLAGS="$CFLAGS $STATIC_FLAGS" make -j $CPUS $DO_CROSS &&
|
|
10 PREFIX="$STAGE_DIR" make install$([ -z "$DO_CROSS" ] && echo _flat) || dienow
|
|
11
|
|
12 if [ ! -z "$SKIP_STRIP" ]
|
|
13 then
|
|
14 cp toybox_unstripped "$INSTDIR/toybox" || dienow
|
|
15 fi
|