summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--coreutils/Kbuild.src20
-rw-r--r--coreutils/test.c2
-rwxr-xr-xmake_single_applets.sh11
-rw-r--r--procps/Kbuild.src2
-rw-r--r--shell/Config.src45
-rw-r--r--shell/Kbuild.src2
-rw-r--r--shell/ash.c95
-rw-r--r--shell/hush.c59
-rw-r--r--shell/math.h2
9 files changed, 120 insertions, 118 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh
index 6473e4d..705f982 100755
--- a/make_single_applets.sh
+++ b/make_single_applets.sh
@@ -26,6 +26,7 @@ allno="$cfg"
for app in $apps; do
allno="`echo "$allno" | sed "s/^CONFIG_${app}=y\$/# CONFIG_${app} is not set/"`"
done
+#echo "$allno" >.config_allno
# Turn on each applet individually and build single-applet executable
fail=0
@@ -37,6 +38,16 @@ for app in $apps; do
mv .config .config.SV
echo "CONFIG_${app}=y" >.config
echo "$allno" | sed "/^# CONFIG_${app} is not set\$/d" >>.config
+
+ if test x"${app}" != x"SH_IS_ASH"; then
+ # $allno has all choices for "sh" aliasing at off.
+ # "sh" aliasing defaults to "ash", not none.
+ # without this fix, "make oldconfig" sets it wrong,
+ # resulting in NUM_APPLETS = 2
+ sed '/CONFIG_SH_IS_NONE/d' -i .config
+ echo "CONFIG_SH_IS_NONE=y" >>.config
+ fi
+
if ! yes '' | make oldconfig >busybox_make_${app}.log 2>&1; then
: $((fail++))
echo "Config error for ${app}"