annotate sources/sections/toybox.build @ 1014:75054b02f21d

When USE_TOYBOX=1, don't try to truncate and append to a file that's in use. (Bug spotted by David Seikel.)
author Rob Landley <rob@landley.net>
date Sat, 27 Mar 2010 20:26:58 -0500
parents de53ddd05abd
children e021bba5e22e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
910
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 # Build toybox
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
976
de53ddd05abd The kconfig "make defconfig" will occasionally prompt the user for stuff. (*boggle*) Workaround.
Rob Landley <rob@landley.net>
parents: 944
diff changeset
3 yes "" | make defconfig &&
944
fc134a13357e Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents: 938
diff changeset
4 CFLAGS="$CFLAGS $STATIC_DEFAULT_FLAGS" make $DO_CROSS || dienow
910
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
5
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 if [ -z "$USE_TOYBOX" ]
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 then
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 ln -sf toybox "$STAGE_DIR"/patch &&
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 ln -sf toybox "$STAGE_DIR"/oneit &&
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 ln -sf toybox "$STAGE_DIR"/netcat || dienow
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 else
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 make install_flat PREFIX="$STAGE_DIR" || dienow
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 fi
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
diff changeset
14
1014
75054b02f21d When USE_TOYBOX=1, don't try to truncate and append to a file that's in use. (Bug spotted by David Seikel.)
Rob Landley <rob@landley.net>
parents: 976
diff changeset
15 mv toybox${SKIP_STRIP:+_unstripped} "$STAGE_DIR/toybox"