annotate sources/sections/toybox.build @ 1500:7e918ec092c9

Fix toybox build script.
author Rob Landley <rob@landley.net>
date Sat, 04 Feb 2012 23:20:53 -0600
parents 461d70885b17
children ef9114dfbd2e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1482
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 # Build toybox statically by default, but don't statically link against
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
2 # glibc (during host-tools.sh build) because glibc is buggy and can't combine
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # --static with --gc-sections. See http://blah for details
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 # Build toybox
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
6
1500
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
7 for i in defconfig toybox install$([ -z "$ARCH" ] && echo _flat)
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
8 do
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
9 PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
10 CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $i || dienow
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
11 done
7e918ec092c9 Fix toybox build script.
Rob Landley <rob@landley.net>
parents: 1499
diff changeset
12 cp .config "$WORK"/config-toybox || dienow
1482
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
13
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 if [ ! -z "$SKIP_STRIP" ]
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 then
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 cp toybox_unstripped "$INSTDIR/toybox" || dienow
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 fi