aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 02:59:13 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 02:59:13 +0200
commit86d5bf4246a7ba68d220bc6c7a7a3be62119dc12 (patch)
tree7673ca6a045e66ef64581b7193054b8c763d5b69
parent488e609203c23b9826f75179f1b8e567617138ae (diff)
downloadbusybox-w32-86d5bf4246a7ba68d220bc6c7a7a3be62119dc12.tar.gz
busybox-w32-86d5bf4246a7ba68d220bc6c7a7a3be62119dc12.tar.bz2
busybox-w32-86d5bf4246a7ba68d220bc6c7a7a3be62119dc12.zip
config: trim/improve item names and help texts.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Config.in96
-rw-r--r--libbb/Config.src5
2 files changed, 48 insertions, 53 deletions
diff --git a/Config.in b/Config.in
index c1cc591f3..acd3cb883 100644
--- a/Config.in
+++ b/Config.in
@@ -3,13 +3,13 @@
3# see scripts/kbuild/config-language.txt. 3# see scripts/kbuild/config-language.txt.
4# 4#
5 5
6mainmenu "BusyBox Configuration" 6mainmenu "Configuration"
7 7
8config HAVE_DOT_CONFIG 8config HAVE_DOT_CONFIG
9 bool 9 bool
10 default y 10 default y
11 11
12menu "Busybox Settings" 12menu "Settings"
13 13
14config DESKTOP 14config DESKTOP
15 bool "Enable compatibility for full-blown desktop systems" 15 bool "Enable compatibility for full-blown desktop systems"
@@ -57,7 +57,7 @@ config SHOW_USAGE
57 bool "Show applet usage messages" 57 bool "Show applet usage messages"
58 default y 58 default y
59 help 59 help
60 Enabling this option, BusyBox applets will show terse help messages 60 Enabling this option, applets will show terse help messages
61 when invoked with wrong arguments. 61 when invoked with wrong arguments.
62 If you do not want to show any (helpful) usage message when 62 If you do not want to show any (helpful) usage message when
63 issuing wrong command syntax, you can say 'N' here, 63 issuing wrong command syntax, you can say 'N' here,
@@ -68,18 +68,16 @@ config FEATURE_VERBOSE_USAGE
68 default y 68 default y
69 depends on SHOW_USAGE 69 depends on SHOW_USAGE
70 help 70 help
71 All BusyBox applets will show verbose help messages when 71 All applets will show verbose help messages when invoked with --help.
72 busybox is invoked with --help. This will add a lot of text to the 72 This will add a lot of text to the binary.
73 busybox binary. In the default configuration, this will add about
74 13k, but it can add much more depending on your configuration.
75 73
76config FEATURE_COMPRESS_USAGE 74config FEATURE_COMPRESS_USAGE
77 bool "Store applet usage messages in compressed form" 75 bool "Store applet usage messages in compressed form"
78 default y 76 default y
79 depends on SHOW_USAGE 77 depends on SHOW_USAGE
80 help 78 help
81 Store usage messages in .bz compressed form, uncompress them 79 Store usage messages in .bz2 compressed form, uncompress them
82 on-the-fly when <applet> --help is called. 80 on-the-fly when "APPLET --help" is run.
83 81
84 If you have a really tiny busybox with few applets enabled (and 82 If you have a really tiny busybox with few applets enabled (and
85 bunzip2 isn't one of them), the overhead of the decompressor might 83 bunzip2 isn't one of them), the overhead of the decompressor might
@@ -91,25 +89,24 @@ config LFS
91 bool "Support files > 2 GB" 89 bool "Support files > 2 GB"
92 default y 90 default y
93 help 91 help
94 If you want to build BusyBox with large file support, then enable 92 If you need to work with large files, enable this option.
95 this option. This will have no effect if your kernel or your C 93 This will have no effect if your kernel or your C
96 library lacks large file support for large files. Some of the 94 library lacks large file support for large files. Some of the
97 programs that can benefit from large file support include dd, gzip, 95 programs that can benefit from large file support include dd, gzip,
98 cp, mount, tar, and many others. If you want to access files larger 96 cp, mount, tar.
99 than 2 Gigabytes, enable this option.
100 97
101config PAM 98config PAM
102 bool "Support PAM (Pluggable Authentication Modules)" 99 bool "Support PAM (Pluggable Authentication Modules)"
103 default n 100 default n
104 help 101 help
105 Use PAM in some busybox applets (currently login and httpd) instead 102 Use PAM in some applets (currently login and httpd) instead
106 of direct access to password database. 103 of direct access to password database.
107 104
108config FEATURE_DEVPTS 105config FEATURE_DEVPTS
109 bool "Use the devpts filesystem for Unix98 PTYs" 106 bool "Use the devpts filesystem for Unix98 PTYs"
110 default y 107 default y
111 help 108 help
112 Enable if you want BusyBox to use Unix98 PTY support. If enabled, 109 Enable if you want to use Unix98 PTY support. If enabled,
113 busybox will use /dev/ptmx for the master side of the pseudoterminal 110 busybox will use /dev/ptmx for the master side of the pseudoterminal
114 and /dev/pts/<number> for the slave side. Otherwise, BSD style 111 and /dev/pts/<number> for the slave side. Otherwise, BSD style
115 /dev/ttyp<number> will be used. To use this option, you should have 112 /dev/ttyp<number> will be used. To use this option, you should have
@@ -157,9 +154,9 @@ config BUSYBOX
157 bool "Include busybox applet" 154 bool "Include busybox applet"
158 default y 155 default y
159 help 156 help
160 The busybox applet provides general help regarding busybox and 157 The busybox applet provides general help message and allows
161 allows the included applets to be listed. It's also required 158 the included applets to be listed. It also provides
162 if applet links are to be installed at runtime. If you unselect 159 optional --install command to create applet links. If you unselect
163 this option, running busybox without any arguments will give 160 this option, running busybox without any arguments will give
164 just a cryptic error message: 161 just a cryptic error message:
165 162
@@ -181,7 +178,7 @@ config INSTALL_NO_USR
181 bool "Don't use /usr" 178 bool "Don't use /usr"
182 default n 179 default n
183 help 180 help
184 Disable use of /usr. busybox --install and "make install" 181 Disable use of /usr. "busybox --install" and "make install"
185 will install applets only to /bin and /sbin, 182 will install applets only to /bin and /sbin,
186 never to /usr/bin or /usr/sbin. 183 never to /usr/bin or /usr/sbin.
187 184
@@ -194,11 +191,11 @@ config FEATURE_SUID
194 root-level operations even when run by ordinary users 191 root-level operations even when run by ordinary users
195 (for example, mounting of user mounts in fstab needs this). 192 (for example, mounting of user mounts in fstab needs this).
196 193
197 With this option enabled, Busybox drops privileges for applets 194 With this option enabled, busybox drops privileges for applets
198 that don't need root access, before entering their main() function. 195 that don't need root access, before entering their main() function.
199 196
200 If you are really paranoid and don't want even initial busybox code 197 If you are really paranoid and don't want even initial busybox code
201 to run under root for evey applet, build two busybox binaries with 198 to run under root for every applet, build two busybox binaries with
202 different applets in them (and the appropriate symlinks pointing 199 different applets in them (and the appropriate symlinks pointing
203 to each binary), and only set the suid bit on the one that needs it. 200 to each binary), and only set the suid bit on the one that needs it.
204 201
@@ -284,14 +281,14 @@ config FEATURE_PREFER_APPLETS
284 (command name can be shown as 'exe' for applets started this way). 281 (command name can be shown as 'exe' for applets started this way).
285 282
286config BUSYBOX_EXEC_PATH 283config BUSYBOX_EXEC_PATH
287 string "Path to BusyBox executable" 284 string "Path to busybox executable"
288 default "/proc/self/exe" 285 default "/proc/self/exe"
289 help 286 help
290 When Busybox applets need to run other busybox applets, BusyBox 287 When applets need to run other applets, busybox
291 sometimes needs to exec() itself. When the /proc filesystem is 288 sometimes needs to exec() itself. When the /proc filesystem is
292 mounted, /proc/self/exe always points to the currently running 289 mounted, /proc/self/exe always points to the currently running
293 executable. If you haven't got /proc, set this to wherever you 290 executable. If you haven't got /proc, set this to wherever you
294 want to run BusyBox from. 291 want to run busybox from.
295 292
296config SELINUX 293config SELINUX
297 bool "Support NSA Security Enhanced Linux" 294 bool "Support NSA Security Enhanced Linux"
@@ -354,21 +351,17 @@ config PLATFORM_LINUX
354comment 'Build Options' 351comment 'Build Options'
355 352
356config STATIC 353config STATIC
357 bool "Build BusyBox as a static binary (no shared libs)" 354 bool "Build static binary (no shared libs)"
358 default n 355 default n
359 help 356 help
360 If you want to build a static BusyBox binary, which does not 357 If you want to build a static binary, which does not use
361 use or require any shared libraries, then enable this option. 358 or require any shared libraries, enable this option.
362 This can cause BusyBox to be considerably larger, so you should 359 Static binaries are larger, but do not require functioning
363 leave this option false unless you have a good reason (i.e. 360 dynamic libraries to be present, which is important if used
364 your target platform does not support shared libraries, or 361 as a system rescue tool.
365 you are building an initrd which doesn't need anything but
366 BusyBox, etc).
367
368 Most people will leave this set to 'N'.
369 362
370config PIE 363config PIE
371 bool "Build BusyBox as a position independent executable" 364 bool "Build position independent executable"
372 default n 365 default n
373 depends on !STATIC 366 depends on !STATIC
374 help 367 help
@@ -466,10 +459,10 @@ config FEATURE_SHARED_BUSYBOX
466### Say 'N' unless you know what you are doing. 459### Say 'N' unless you know what you are doing.
467 460
468config CROSS_COMPILER_PREFIX 461config CROSS_COMPILER_PREFIX
469 string "Cross Compiler prefix" 462 string "Cross compiler prefix"
470 default "" 463 default ""
471 help 464 help
472 If you want to build BusyBox with a cross compiler, then you 465 If you want to build busybox with a cross compiler, then you
473 will need to set this to the cross-compiler prefix, for example, 466 will need to set this to the cross-compiler prefix, for example,
474 "i386-uclibc-". 467 "i386-uclibc-".
475 468
@@ -482,11 +475,11 @@ config SYSROOT
482 string "Path to sysroot" 475 string "Path to sysroot"
483 default "" 476 default ""
484 help 477 help
485 If you want to build BusyBox with a cross compiler, then you 478 If you want to build busybox with a cross compiler, then you
486 might also need to specify where /usr/include and /usr/lib 479 might also need to specify where /usr/include and /usr/lib
487 will be found. 480 will be found.
488 481
489 For example, BusyBox can be built against an installed 482 For example, busybox can be built against an installed
490 Android NDK, platform version 9, for ARM ABI with 483 Android NDK, platform version 9, for ARM ABI with
491 484
492 CONFIG_SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm 485 CONFIG_SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm
@@ -580,21 +573,22 @@ config INSTALL_SH_APPLET_SCRIPT_WRAPPER
580endchoice 573endchoice
581 574
582config PREFIX 575config PREFIX
583 string "BusyBox installation prefix" 576 string "Destination path for 'make install'"
584 default "./_install" 577 default "./_install"
585 help 578 help
586 Define your directory to install BusyBox files/subdirs in. 579 Where "make install" should install busybox binary and links.
587 580
588comment 'Debugging Options' 581comment 'Debugging Options'
589 582
590config DEBUG 583config DEBUG
591 bool "Build BusyBox with extra Debugging symbols" 584 bool "Build with debug information"
592 default n 585 default n
593 help 586 help
594 Say Y here if you wish to examine BusyBox internals while applets are 587 Say Y here to compile with debug information.
595 running. This increases the size of the binary considerably, and 588 This increases the size of the binary considerably, and
596 should only be used when doing development. If you are doing 589 should only be used when doing development.
597 development and want to debug BusyBox, answer Y. 590
591 This adds -g option to gcc command line.
598 592
599 Most people should answer N. 593 Most people should answer N.
600 594
@@ -609,6 +603,8 @@ config DEBUG_PESSIMIZE
609 in a much bigger executable that more closely matches the source 603 in a much bigger executable that more closely matches the source
610 code. 604 code.
611 605
606 This replaces -Os/-O2 with -O0 in gcc command line.
607
612config DEBUG_SANITIZE 608config DEBUG_SANITIZE
613 bool "Enable runtime sanitizers (ASAN/LSAN/USAN/etc...)" 609 bool "Enable runtime sanitizers (ASAN/LSAN/USAN/etc...)"
614 default n 610 default n
@@ -626,7 +622,7 @@ config UNIT_TEST
626 default n 622 default n
627 help 623 help
628 Say Y here if you want to build unit tests (both the framework and 624 Say Y here if you want to build unit tests (both the framework and
629 test cases) as a Busybox applet. This results in bigger code, so you 625 test cases) as an applet. This results in bigger code, so you
630 probably don't want this option in production builds. 626 probably don't want this option in production builds.
631 627
632config WERROR 628config WERROR
@@ -641,8 +637,8 @@ choice
641 prompt "Additional debugging library" 637 prompt "Additional debugging library"
642 default NO_DEBUG_LIB 638 default NO_DEBUG_LIB
643 help 639 help
644 Using an additional debugging library will make BusyBox become 640 Using an additional debugging library will make busybox become
645 considerable larger and will cause it to run more slowly. You 641 considerably larger and will cause it to run more slowly. You
646 should always leave this option disabled for production use. 642 should always leave this option disabled for production use.
647 643
648 dmalloc support: 644 dmalloc support:
@@ -663,7 +659,7 @@ choice
663 This enables compiling with Electric-fence support. Electric 659 This enables compiling with Electric-fence support. Electric
664 fence is another very useful malloc debugging library which uses 660 fence is another very useful malloc debugging library which uses
665 your computer's virtual memory hardware to detect illegal memory 661 your computer's virtual memory hardware to detect illegal memory
666 accesses. This support will make BusyBox be considerable larger 662 accesses. This support will make busybox be considerably larger
667 and run slower, so you should leave this option disabled unless 663 and run slower, so you should leave this option disabled unless
668 you are hunting a hard to find memory problem. 664 you are hunting a hard to find memory problem.
669 665
diff --git a/libbb/Config.src b/libbb/Config.src
index 9da8b65ee..3c1b064b6 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -11,14 +11,13 @@ choice
11 prompt "Buffer allocation policy" 11 prompt "Buffer allocation policy"
12 default FEATURE_BUFFERS_USE_MALLOC 12 default FEATURE_BUFFERS_USE_MALLOC
13 help 13 help
14 There are 3 ways BusyBox can handle buffer allocations: 14 There are 3 ways busybox can handle buffer allocations:
15 - Use malloc. This costs code size for the call to xmalloc. 15 - Use malloc. This costs code size for the call to xmalloc.
16 - Put them on stack. For some very small machines with limited stack 16 - Put them on stack. For some very small machines with limited stack
17 space, this can be deadly. For most folks, this works just fine. 17 space, this can be deadly. For most folks, this works just fine.
18 - Put them in BSS. This works beautifully for computers with a real 18 - Put them in BSS. This works beautifully for computers with a real
19 MMU (and OS support), but wastes runtime RAM for uCLinux. This 19 MMU (and OS support), but wastes runtime RAM for uCLinux. This
20 behavior was the only one available for BusyBox versions 0.48 and 20 behavior was the only one available for versions 0.48 and earlier.
21 earlier.
22 21
23config FEATURE_BUFFERS_USE_MALLOC 22config FEATURE_BUFFERS_USE_MALLOC
24 bool "Allocate with Malloc" 23 bool "Allocate with Malloc"