annotate sources/sections/toybox.build @ 1482:b381adcd7968

Add ability to build toybox.
author Rob Landley <rob@landley.net>
date Sun, 01 Jan 2012 05:04:32 -0600
parents
children 461d70885b17
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
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 make defconfig &&
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 cp .config "$WORK"/config-toybox &&
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 CFLAGS="$CFLAGS $STATIC_FLAGS" make -j $CPUS $DO_CROSS &&
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 PREFIX="$STAGE_DIR" make install$([ -z "$DO_CROSS" ] && echo _flat) || dienow
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
11
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 if [ ! -z "$SKIP_STRIP" ]
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 then
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 cp toybox_unstripped "$INSTDIR/toybox" || dienow
b381adcd7968 Add ability to build toybox.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 fi