Make busybox an optional applet
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 31 May 2016 00:42:49 +0000 (02:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 31 May 2016 00:44:34 +0000 (02:44 +0200)
commit8e95068c7f28fe2a1e31b01636e3ed29eed09ef8
tree366721e86423370093b64989a215bee4ab1790ff
parent877dedb8251be47b3614a371434081ae9b7b358b
Make busybox an optional applet

If it's disabled, code shrinks by about 900 bytes:

function                                             old     new   delta
usr_bin                                               10       -     -10
usr_sbin                                              11       -     -11
install_dir                                           20       -     -20
applet_install_loc                                   184       -    -184
run_applet_and_exit                                  686      21    -665
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/1 up/down: 0/-890)           Total: -890 bytes
   text    data     bss     dec     hex filename
 911327     493    7336  919156   e0674 busybox_old
 909848     493    7336  917677   e00ad busybox_unstripped

but busybox executable by itself does not say anything useful:

$ busybox
busybox: applet not found

Based on the patch by Ron Yorston <rmy@pobox.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Config.in
libbb/appletlib.c