summaryrefslogtreecommitdiff
path: root/make_single_applets.sh
diff options
context:
space:
mode:
authorDenys Vlasenko2016-12-23 15:12:27 +0100
committerDenys Vlasenko2016-12-23 15:13:16 +0100
commita1cd0d9849946e0627484ec6b6435837c853a113 (patch)
tree23c7c643bd0af2859beff3876bdbaa20953bdb5f /make_single_applets.sh
parentce3a98a222a2191ef4a22e90c49a51dfa7279e07 (diff)
downloadbusybox-a1cd0d9849946e0627484ec6b6435837c853a113.zip
busybox-a1cd0d9849946e0627484ec6b6435837c853a113.tar.gz
modprobe-small: make applets individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'make_single_applets.sh')
-rwxr-xr-xmake_single_applets.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh
index 5b9393e..6473e4d 100755
--- a/make_single_applets.sh
+++ b/make_single_applets.sh
@@ -14,7 +14,6 @@ apps="`
grep ^IF_ include/applets.h \
| grep -v ^IF_FEATURE_ \
| sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \
-| grep -v ^MODPROBE_SMALL \
| sort | uniq
`"
@@ -46,6 +45,11 @@ for app in $apps; do
: $((fail++))
echo "Build error for ${app}"
mv .config busybox_config_${app}
+ elif ! grep -q '^#define NUM_APPLETS 1$' include/NUM_APPLETS.h; then
+ mv busybox busybox_${app}
+ : $((fail++))
+ echo "NUM_APPLETS != 1 for ${app}: `cat include/NUM_APPLETS.h`"
+ mv .config busybox_config_${app}
else
mv busybox busybox_${app}
rm busybox_make_${app}.log
@@ -53,5 +57,6 @@ for app in $apps; do
mv .config.SV .config
#exit
done
+touch .config # or else next "make" can be confused
echo "Failures: $fail"
test $fail = 0 # set exitcode