annotate sources/sections/busybox.build @ 979:88b354c0eee1

Tweak mercurial repo entry and add link to current snapshot.
author Rob Landley <rob@landley.net>
date Tue, 16 Feb 2010 06:57:14 -0600
parents fc134a13357e
children e021bba5e22e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
865
15522b490e53 Build busybox static by default (but not for host-tools.sh, since static glibc is buggy, and let .config to switch it off).
Rob Landley <rob@landley.net>
parents: 849
diff changeset
1 # Build busybox statically by default, but don't statically link against
15522b490e53 Build busybox static by default (but not for host-tools.sh, since static glibc is buggy, and let .config to switch it off).
Rob Landley <rob@landley.net>
parents: 849
diff changeset
2 # glibc because glibc is buggy and can't combine --static with --gc-sections.
15522b490e53 Build busybox static by default (but not for host-tools.sh, since static glibc is buggy, and let .config to switch it off).
Rob Landley <rob@landley.net>
parents: 849
diff changeset
3
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
4 # Build busybox
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
5
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" &&
910
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents: 865
diff changeset
7 cp .config "$WORK"/config-busybox &&
944
fc134a13357e Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents: 938
diff changeset
8 LDFLAGS="$LDFLAGS $STATIC_DEFAULT_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS &&
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 make busybox.links &&
918
18f052489f5d Make ccwrap, hello, busybox, and toybox respect SKIP_STRIP and CFLAGS=-g.
Rob Landley <rob@landley.net>
parents: 910
diff changeset
10 cp busybox${SKIP_STRIP:+_unstripped} "${STAGE_DIR}/busybox" || dienow
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
11
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 for i in $(sed 's@.*/@@' busybox.links)
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 do
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 [ ! -f "${STAGE_DIR}/$i" ] &&
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 (ln -sf busybox "${STAGE_DIR}/$i" || dienow)
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 done