config: merge "Busybox Settings" and "Busybox Library Tuning" into one menu

Tweak a few help texts while at it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-07-15 20:49:32 +02:00
parent 2c1258c620
commit a3df2fa525
3 changed files with 59 additions and 53 deletions

View File

@ -90,10 +90,14 @@ config BUSYBOX
help help
The busybox applet provides general help regarding busybox and The busybox applet provides general help regarding busybox and
allows the included applets to be listed. It's also required allows the included applets to be listed. It's also required
if applet links are to be installed at runtime. if applet links are to be installed at runtime. If you unselect
this option, running busybox without any arguments will give
just a cryptic error message:
If you can live without these features disabling this will save $ busybox
some space. busybox: applet not found
Running "busybox APPLET [ARGS...]" will still work, of course.
config FEATURE_INSTALLER config FEATURE_INSTALLER
bool "Support --install [-s] to install applet links at runtime" bool "Support --install [-s] to install applet links at runtime"
@ -112,6 +116,17 @@ config INSTALL_NO_USR
will install applets only to /bin and /sbin, will install applets only to /bin and /sbin,
never to /usr/bin or /usr/sbin. never to /usr/bin or /usr/sbin.
config LFS
bool "Build with Large File Support (for accessing files > 2 GB)"
default y
help
If you want to build BusyBox with large file support, then enable
this option. This will have no effect if your kernel or your C
library lacks large file support for large files. Some of the
programs that can benefit from large file support include dd, gzip,
cp, mount, tar, and many others. If you want to access files larger
than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
config PAM config PAM
bool "Support PAM (Pluggable Authentication Modules)" bool "Support PAM (Pluggable Authentication Modules)"
default n default n
@ -136,18 +151,6 @@ config FEATURE_DEVPTS
/dev/ttyp<number> will be used. To use this option, you should have /dev/ttyp<number> will be used. To use this option, you should have
devpts mounted. devpts mounted.
config FEATURE_CLEAN_UP
bool "Clean up all memory before exiting (usually not needed)"
default n
help
As a size optimization, busybox normally exits without explicitly
freeing dynamically allocated memory or closing files. This saves
space since the OS will clean up for us, but it can confuse debuggers
like valgrind, which report tons of memory and resource leaks.
Don't enable this unless you have a really good reason to clean
things up manually.
config FEATURE_UTMP config FEATURE_UTMP
bool "Support utmp file" bool "Support utmp file"
default y default y
@ -177,7 +180,7 @@ config FEATURE_PIDFILE
on applets which require pidfiles to run. on applets which require pidfiles to run.
config PID_FILE_PATH config PID_FILE_PATH
string "Path to directory for pidfile" string "Directory for pidfiles"
default "/var/run" default "/var/run"
depends on FEATURE_PIDFILE depends on FEATURE_PIDFILE
help help
@ -269,24 +272,6 @@ config FEATURE_SUID_CONFIG_QUIET
check this option to avoid users to be notified about missing check this option to avoid users to be notified about missing
permissions. permissions.
config SELINUX
bool "Support NSA Security Enhanced Linux"
default n
select PLATFORM_LINUX
help
Enable support for SELinux in applets ls, ps, and id. Also provide
the option of compiling in SELinux applets.
If you do not have a complete SELinux userland installed, this stuff
will not compile. Specifially, libselinux 1.28 or better is
directly required by busybox. If the installation is located in a
non-standard directory, provide it by invoking make as follows:
CFLAGS=-I<libselinux-include-path> \
LDFLAGS=-L<libselinux-lib-path> \
make
Most people will leave this set to 'N'.
config FEATURE_PREFER_APPLETS config FEATURE_PREFER_APPLETS
bool "exec prefers applets" bool "exec prefers applets"
default n default n
@ -311,6 +296,36 @@ config BUSYBOX_EXEC_PATH
executable. If you haven't got /proc, set this to wherever you executable. If you haven't got /proc, set this to wherever you
want to run BusyBox from. want to run BusyBox from.
config SELINUX
bool "Support NSA Security Enhanced Linux"
default n
select PLATFORM_LINUX
help
Enable support for SELinux in applets ls, ps, and id. Also provide
the option of compiling in SELinux applets.
If you do not have a complete SELinux userland installed, this stuff
will not compile. Specifially, libselinux 1.28 or better is
directly required by busybox. If the installation is located in a
non-standard directory, provide it by invoking make as follows:
CFLAGS=-I<libselinux-include-path> \
LDFLAGS=-L<libselinux-lib-path> \
make
Most people will leave this set to 'N'.
config FEATURE_CLEAN_UP
bool "Clean up all memory before exiting (usually not needed)"
default n
help
As a size optimization, busybox normally exits without explicitly
freeing dynamically allocated memory or closing files. This saves
space since the OS will clean up for us, but it can confuse debuggers
like valgrind, which report tons of memory and resource leaks.
Don't enable this unless you have a really good reason to clean
things up manually.
# These are auto-selected by other options # These are auto-selected by other options
config FEATURE_SYSLOG config FEATURE_SYSLOG
@ -452,17 +467,6 @@ config FEATURE_SHARED_BUSYBOX
### ###
### Say 'N' unless you know what you are doing. ### Say 'N' unless you know what you are doing.
config LFS
bool "Build with Large File Support (for accessing files > 2 GB)"
default y
help
If you want to build BusyBox with large file support, then enable
this option. This will have no effect if your kernel or your C
library lacks large file support for large files. Some of the
programs that can benefit from large file support include dd, gzip,
cp, mount, tar, and many others. If you want to access files larger
than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
config CROSS_COMPILER_PREFIX config CROSS_COMPILER_PREFIX
string "Cross Compiler prefix" string "Cross Compiler prefix"
default "" default ""
@ -669,10 +673,10 @@ config EFENCE
endchoice endchoice
endmenu
source libbb/Config.in source libbb/Config.in
endmenu
comment "Applets" comment "Applets"
source archival/Config.in source archival/Config.in

View File

@ -3,7 +3,7 @@
# see scripts/kbuild/config-language.txt. # see scripts/kbuild/config-language.txt.
# #
menu "Busybox Library Tuning" comment "Library Tuning"
INSERT INSERT
@ -66,7 +66,7 @@ config FEATURE_FAST_TOP
bool "Faster /proc scanning code (+100 bytes)" bool "Faster /proc scanning code (+100 bytes)"
default n # all "fast or small" options default to small default n # all "fast or small" options default to small
help help
This option makes top (and ps) ~20% faster (or 20% less CPU hungry), This option makes top and ps ~20% faster (or 20% less CPU hungry),
but code size is slightly bigger. but code size is slightly bigger.
config FEATURE_ETC_NETWORKS config FEATURE_ETC_NETWORKS
@ -302,13 +302,17 @@ config FEATURE_VERBOSE_CP_MESSAGE
default n default n
help help
Error messages with this feature enabled: Error messages with this feature enabled:
$ cp file /does_not_exist/file $ cp file /does_not_exist/file
cp: cannot create '/does_not_exist/file': Path does not exist cp: cannot create '/does_not_exist/file': Path does not exist
$ cp file /vmlinuz/file $ cp file /vmlinuz/file
cp: cannot stat '/vmlinuz/file': Path has non-directory component cp: cannot stat '/vmlinuz/file': Path has non-directory component
If this feature is not enabled, they will be, respectively: If this feature is not enabled, they will be, respectively:
cp: cannot create '/does_not_exist/file': No such file or directory cp: cannot create '/does_not_exist/file': No such file or directory
cp: cannot stat '/vmlinuz/file': Not a directory cp: cannot stat '/vmlinuz/file': Not a directory
This will cost you ~60 bytes. This will cost you ~60 bytes.
config FEATURE_USE_SENDFILE config FEATURE_USE_SENDFILE
@ -376,7 +380,4 @@ config FEATURE_HWIB
bool "Support infiniband HW" bool "Support infiniband HW"
default y default y
help help
Support for printing infiniband addresses in Support for printing infiniband addresses in network applets.
network applets.
endmenu

View File

@ -19,6 +19,7 @@
//config: //config:
//config: At link time, "text" is padded to a full page. At runtime, all "text" //config: At link time, "text" is padded to a full page. At runtime, all "text"
//config: pages are mapped RO and executable. //config: pages are mapped RO and executable.
//config:
//config: "Data" starts on the next page boundary, but is not padded //config: "Data" starts on the next page boundary, but is not padded
//config: to a full page at the end. "Bss" starts wherever "data" ends. //config: to a full page at the end. "Bss" starts wherever "data" ends.
//config: At runtime, "data" pages are mapped RW and they are file-backed //config: At runtime, "data" pages are mapped RW and they are file-backed