annotate sources/sections/busybox.build @ 1229:313c702a0984

Remove toybox.
author Rob Landley <rob@landley.net>
date Tue, 24 Aug 2010 03:08:47 -0500
parents 8b1017be9de8
children 431d5b4ee537
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
1036
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
2 # glibc (during host_tools) build because glibc is buggy and can't combine
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
3 # --static with --gc-sections.
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
4
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 # Build busybox
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
6
1177
7ca3dfbc9e06 Update to busybox 1.17.1 and switch to defconfig instead of trimconfig.
Rob Landley <rob@landley.net>
parents: 1083
diff changeset
7 #make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" &&
7ca3dfbc9e06 Update to busybox 1.17.1 and switch to defconfig instead of trimconfig.
Rob Landley <rob@landley.net>
parents: 1083
diff changeset
8 make defconfig &&
910
f1671488c740 Split busybox and toybox builds, update toybox and linux package versions.
Rob Landley <rob@landley.net>
parents: 865
diff changeset
9 cp .config "$WORK"/config-busybox &&
1083
cb4dbdb7f2cd Make BUILD_STATIC take comma separated list of packages, or "all" or "none". Default behavior should remain the same.
Rob Landley <rob@landley.net>
parents: 1036
diff changeset
10 LDFLAGS="$LDFLAGS $STATIC_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS &&
1036
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
11 make busybox.links || dienow
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
12
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
13 [ -d "$STAGE_DIR/bin" ] && INSTDIR="$STAGE_DIR/bin" || INSTDIR="$STAGE_DIR"
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
14
e021bba5e22e Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
Rob Landley <rob@landley.net>
parents: 944
diff changeset
15 cp busybox${SKIP_STRIP:+_unstripped} "$INSTDIR/busybox" || dienow
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
16
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 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
18 do
1229
313c702a0984 Remove toybox.
Rob Landley <rob@landley.net>
parents: 1197
diff changeset
19 # busybox mke2fs/tune2fs don't support -j
313c702a0984 Remove toybox.
Rob Landley <rob@landley.net>
parents: 1197
diff changeset
20 if [ "$i" == mke2fs ] || [ "$i" == tune2fs ]
313c702a0984 Remove toybox.
Rob Landley <rob@landley.net>
parents: 1197
diff changeset
21 then
313c702a0984 Remove toybox.
Rob Landley <rob@landley.net>
parents: 1197
diff changeset
22 continue
313c702a0984 Remove toybox.
Rob Landley <rob@landley.net>
parents: 1197
diff changeset
23 fi
1177
7ca3dfbc9e06 Update to busybox 1.17.1 and switch to defconfig instead of trimconfig.
Rob Landley <rob@landley.net>
parents: 1083
diff changeset
24 [ ! -f "$INSTDIR/$i" ] && (ln -sf busybox "$INSTDIR/$i" || dienow)
849
5dd1a99a0737 Factor out more common code: busybox and toybox builds.
Rob Landley <rob@landley.net>
parents:
diff changeset
25 done