aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 16:31:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 16:31:21 +0100
commite7b54d0fcce26fdbb0559728e317fb852c63e02b (patch)
tree266048a59192347b3241206d69a2a8d564328ec8
parent590402bb55be940310f68d14a540f2d109420a98 (diff)
downloadbusybox-w32-e7b54d0fcce26fdbb0559728e317fb852c63e02b.tar.gz
busybox-w32-e7b54d0fcce26fdbb0559728e317fb852c63e02b.tar.bz2
busybox-w32-e7b54d0fcce26fdbb0559728e317fb852c63e02b.zip
make_single_applets.sh: show errors and warnings
While at it, fix one warning in modprobe-small.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xmake_single_applets.sh8
-rw-r--r--modutils/modprobe-small.c9
2 files changed, 15 insertions, 2 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh
index 00f502eda..03a5c324f 100755
--- a/make_single_applets.sh
+++ b/make_single_applets.sh
@@ -28,6 +28,8 @@ for app in $apps; do
28done 28done
29#echo "$allno" >.config_allno 29#echo "$allno" >.config_allno
30 30
31trap 'test -f .config.SV && mv .config.SV .config && touch .config' EXIT
32
31# Turn on each applet individually and build single-applet executable 33# Turn on each applet individually and build single-applet executable
32fail=0 34fail=0
33for app in $apps; do 35for app in $apps; do
@@ -54,16 +56,20 @@ for app in $apps; do
54 mv .config busybox_config_${app} 56 mv .config busybox_config_${app}
55 elif ! make $makeopts >>busybox_make_${app}.log 2>&1; then 57 elif ! make $makeopts >>busybox_make_${app}.log 2>&1; then
56 : $((fail++)) 58 : $((fail++))
59 grep -i -e error: -e warning: busybox_make_${app}.log
57 echo "Build error for ${app}" 60 echo "Build error for ${app}"
58 mv .config busybox_config_${app} 61 mv .config busybox_config_${app}
59 elif ! grep -q '^#define NUM_APPLETS 1$' include/NUM_APPLETS.h; then 62 elif ! grep -q '^#define NUM_APPLETS 1$' include/NUM_APPLETS.h; then
63 grep -i -e error: -e warning: busybox_make_${app}.log
60 mv busybox busybox_${app} 64 mv busybox busybox_${app}
61 : $((fail++)) 65 : $((fail++))
62 echo "NUM_APPLETS != 1 for ${app}: `cat include/NUM_APPLETS.h`" 66 echo "NUM_APPLETS != 1 for ${app}: `cat include/NUM_APPLETS.h`"
63 mv .config busybox_config_${app} 67 mv .config busybox_config_${app}
64 else 68 else
69 grep -i -e error: -e warning: busybox_make_${app}.log \
70 || rm busybox_make_${app}.log
65 mv busybox busybox_${app} 71 mv busybox busybox_${app}
66 rm busybox_make_${app}.log 72 #mv .config busybox_config_${app}
67 fi 73 fi
68 mv .config.SV .config 74 mv .config.SV .config
69 #exit 75 #exit
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 75b36f748..21fa9dbdd 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -59,7 +59,12 @@
59#define DEPFILE_BB CONFIG_DEFAULT_DEPMOD_FILE".bb" 59#define DEPFILE_BB CONFIG_DEFAULT_DEPMOD_FILE".bb"
60 60
61#define MOD_APPLET_CNT (ENABLE_MODPROBE + ENABLE_DEPMOD + ENABLE_INSMOD + ENABLE_LSMOD + ENABLE_RMMOD) 61#define MOD_APPLET_CNT (ENABLE_MODPROBE + ENABLE_DEPMOD + ENABLE_INSMOD + ENABLE_LSMOD + ENABLE_RMMOD)
62#define ONLY_APPLET (MOD_APPLET_CNT <= 1) 62
63/* Do not bother if MODPROBE_SMALL=y but no applets selected. */
64/* The rest of the file is in this if block. */
65#if MOD_APPLET_CNT > 0
66
67#define ONLY_APPLET (MOD_APPLET_CNT == 1)
63#define is_modprobe (ENABLE_MODPROBE && (ONLY_APPLET || applet_name[0] == 'm')) 68#define is_modprobe (ENABLE_MODPROBE && (ONLY_APPLET || applet_name[0] == 'm'))
64#define is_depmod (ENABLE_DEPMOD && (ONLY_APPLET || applet_name[0] == 'd')) 69#define is_depmod (ENABLE_DEPMOD && (ONLY_APPLET || applet_name[0] == 'd'))
65#define is_insmod (ENABLE_INSMOD && (ONLY_APPLET || applet_name[0] == 'i')) 70#define is_insmod (ENABLE_INSMOD && (ONLY_APPLET || applet_name[0] == 'i'))
@@ -1063,3 +1068,5 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
1063 return exitcode; 1068 return exitcode;
1064#endif /* MODPROBE || INSMOD || RMMOD */ 1069#endif /* MODPROBE || INSMOD || RMMOD */
1065} 1070}
1071
1072#endif /* MOD_APPLET_CNT > 0 */