diff options
Diffstat (limited to 'make_single_applets.sh')
-rwxr-xr-x | make_single_applets.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh index 6473e4ddd..705f9821c 100755 --- a/make_single_applets.sh +++ b/make_single_applets.sh | |||
@@ -26,6 +26,7 @@ allno="$cfg" | |||
26 | for app in $apps; do | 26 | for app in $apps; do |
27 | allno="`echo "$allno" | sed "s/^CONFIG_${app}=y\$/# CONFIG_${app} is not set/"`" | 27 | allno="`echo "$allno" | sed "s/^CONFIG_${app}=y\$/# CONFIG_${app} is not set/"`" |
28 | done | 28 | done |
29 | #echo "$allno" >.config_allno | ||
29 | 30 | ||
30 | # Turn on each applet individually and build single-applet executable | 31 | # Turn on each applet individually and build single-applet executable |
31 | fail=0 | 32 | fail=0 |
@@ -37,6 +38,16 @@ for app in $apps; do | |||
37 | mv .config .config.SV | 38 | mv .config .config.SV |
38 | echo "CONFIG_${app}=y" >.config | 39 | echo "CONFIG_${app}=y" >.config |
39 | echo "$allno" | sed "/^# CONFIG_${app} is not set\$/d" >>.config | 40 | echo "$allno" | sed "/^# CONFIG_${app} is not set\$/d" >>.config |
41 | |||
42 | if test x"${app}" != x"SH_IS_ASH"; then | ||
43 | # $allno has all choices for "sh" aliasing at off. | ||
44 | # "sh" aliasing defaults to "ash", not none. | ||
45 | # without this fix, "make oldconfig" sets it wrong, | ||
46 | # resulting in NUM_APPLETS = 2 | ||
47 | sed '/CONFIG_SH_IS_NONE/d' -i .config | ||
48 | echo "CONFIG_SH_IS_NONE=y" >>.config | ||
49 | fi | ||
50 | |||
40 | if ! yes '' | make oldconfig >busybox_make_${app}.log 2>&1; then | 51 | if ! yes '' | make oldconfig >busybox_make_${app}.log 2>&1; then |
41 | : $((fail++)) | 52 | : $((fail++)) |
42 | echo "Config error for ${app}" | 53 | echo "Config error for ${app}" |