Mercurial > hg > aboriginal
annotate sources/sections/busybox.build @ 1197:8b1017be9de8
is_in_list doesn't like "[" and "[[", thinks it's an unterminated regex.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 08 Aug 2010 20:57:58 -0500 |
parents | 41fdac77a907 |
children | 313c702a0984 |
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 |
1197
8b1017be9de8
is_in_list doesn't like "[" and "[[", thinks it's an unterminated regex.
Rob Landley <rob@landley.net>
parents:
1195
diff
changeset
|
19 # is_in_list can't handle [ and [[ filenames, they're an unterminated regex. |
8b1017be9de8
is_in_list doesn't like "[" and "[[", thinks it's an unterminated regex.
Rob Landley <rob@landley.net>
parents:
1195
diff
changeset
|
20 [ "$i" != "[" ] && [ "$i" != "[[" ] && |
1195
41fdac77a907
Change how to filter out (currently) unusable busybox apps, and add mke2fs to force e2fsprogs build.
Rob Landley <rob@landley.net>
parents:
1177
diff
changeset
|
21 # Still using toybox patch, and busybox mke2fs/tune2fs don't support -j |
41fdac77a907
Change how to filter out (currently) unusable busybox apps, and add mke2fs to force e2fsprogs build.
Rob Landley <rob@landley.net>
parents:
1177
diff
changeset
|
22 is_in_list $i patch,tune2fs,mke2fs && continue |
1177
7ca3dfbc9e06
Update to busybox 1.17.1 and switch to defconfig instead of trimconfig.
Rob Landley <rob@landley.net>
parents:
1083
diff
changeset
|
23 [ ! -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
|
24 done |