aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_bash5.tests
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2017-01-09 15:04:43 +0800
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-09 09:31:17 +0100
commit80172e46221222f26680f3b9caf7637383205e7a (patch)
tree73e65bf0435b0780e67d8227aa40c9fd1757fd45 /shell/ash_test/ash-vars/var_bash5.tests
parentb130f9f758b6404c6d0911a1c120937ae6ab47f8 (diff)
downloadbusybox-80172e46221222f26680f3b9caf7637383205e7a.tar.gz
modprobe-small: optimizations for single applet build
(I'm requesting for a review first because I fear such an aggressive change could lead to bugs. While I observe the sizes have reduced, I haven't test the functionality of each applet after that. So please test before merging.) Aggressively cut off unneeded code when the relevant applets are not built. Correct dependencies of FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE and FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED. Don't bother with the '-r' option check if only rmmod is built (assume true then), or when neither rmmod or mobprobe is built (assume false then). Size comparison before and after the change (single applet configuration): text data bss dec hex filename 34778 946 112 35836 8bfc old/busybox_DEPMOD 34151 946 112 35209 8989 new/busybox_DEPMOD 34903 946 112 35961 8c79 old/busybox_INSMOD 28316 778 112 29206 7216 new/busybox_INSMOD 35228 962 112 36302 8dce old/busybox_LSMOD 5011 706 40 5757 167d new/busybox_LSMOD 34830 946 112 35888 8c30 old/busybox_MODPROBE 34795 946 112 35853 8c0d new/busybox_MODPROBE 34718 946 112 35776 8bc0 old/busybox_RMMOD 7502 714 104 8320 2080 new/busybox_RMMOD Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/var_bash5.tests')
0 files changed, 0 insertions, 0 deletions