diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-23 15:12:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-23 15:13:16 +0100 |
commit | a1cd0d9849946e0627484ec6b6435837c853a113 (patch) | |
tree | 23c7c643bd0af2859beff3876bdbaa20953bdb5f /make_single_applets.sh | |
parent | ce3a98a222a2191ef4a22e90c49a51dfa7279e07 (diff) | |
download | busybox-w32-a1cd0d9849946e0627484ec6b6435837c853a113.tar.gz busybox-w32-a1cd0d9849946e0627484ec6b6435837c853a113.tar.bz2 busybox-w32-a1cd0d9849946e0627484ec6b6435837c853a113.zip |
modprobe-small: make applets individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'make_single_applets.sh')
-rwxr-xr-x | make_single_applets.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh index 5b9393e33..6473e4ddd 100755 --- a/make_single_applets.sh +++ b/make_single_applets.sh | |||
@@ -14,7 +14,6 @@ apps="` | |||
14 | grep ^IF_ include/applets.h \ | 14 | grep ^IF_ include/applets.h \ |
15 | | grep -v ^IF_FEATURE_ \ | 15 | | grep -v ^IF_FEATURE_ \ |
16 | | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ | 16 | | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ |
17 | | grep -v ^MODPROBE_SMALL \ | ||
18 | | sort | uniq | 17 | | sort | uniq |
19 | `" | 18 | `" |
20 | 19 | ||
@@ -46,6 +45,11 @@ for app in $apps; do | |||
46 | : $((fail++)) | 45 | : $((fail++)) |
47 | echo "Build error for ${app}" | 46 | echo "Build error for ${app}" |
48 | mv .config busybox_config_${app} | 47 | mv .config busybox_config_${app} |
48 | elif ! grep -q '^#define NUM_APPLETS 1$' include/NUM_APPLETS.h; then | ||
49 | mv busybox busybox_${app} | ||
50 | : $((fail++)) | ||
51 | echo "NUM_APPLETS != 1 for ${app}: `cat include/NUM_APPLETS.h`" | ||
52 | mv .config busybox_config_${app} | ||
49 | else | 53 | else |
50 | mv busybox busybox_${app} | 54 | mv busybox busybox_${app} |
51 | rm busybox_make_${app}.log | 55 | rm busybox_make_${app}.log |
@@ -53,5 +57,6 @@ for app in $apps; do | |||
53 | mv .config.SV .config | 57 | mv .config.SV .config |
54 | #exit | 58 | #exit |
55 | done | 59 | done |
60 | touch .config # or else next "make" can be confused | ||
56 | echo "Failures: $fail" | 61 | echo "Failures: $fail" |
57 | test $fail = 0 # set exitcode | 62 | test $fail = 0 # set exitcode |