Mercurial > hg > aboriginal
annotate sources/sections/busybox.sh @ 928:0291e9591d18
Update downloads/binaries/README
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 08 Dec 2009 20:22:53 -0600 |
parents | 18f052489f5d |
children |
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 |
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
|
4 [ "$BUILD_STATIC" != "none" ] && [ ! -z "$ARCH" ] && BUSYBOX_STATIC="--static" |
910
f1671488c740
Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents:
865
diff
changeset
|
5 [ ! -z "$ARCH" ] && DO_CROSS=CROSS_COMPILE=${ARCH}- |
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
|
6 |
849
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 # Build busybox |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 setupfor busybox |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 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
|
11 cp .config "$WORK"/config-busybox && |
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
|
12 LDFLAGS="$LDFLAGS $BUSYBOX_STATIC" 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
|
13 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
|
14 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
|
15 |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 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
|
17 do |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 [ ! -f "${STAGE_DIR}/$i" ] && |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 (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
|
20 done |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
5dd1a99a0737
Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 cleanup |