diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-15 20:49:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-15 20:49:32 +0200 |
commit | a3df2fa5250730c84ea0e5ad839f44435888818e (patch) | |
tree | fec8ea72b27f8ef1f379edd03dcb24220aac01f3 | |
parent | 2c1258c620c5847649367394439cc10d0331d211 (diff) | |
download | busybox-w32-a3df2fa5250730c84ea0e5ad839f44435888818e.tar.gz busybox-w32-a3df2fa5250730c84ea0e5ad839f44435888818e.tar.bz2 busybox-w32-a3df2fa5250730c84ea0e5ad839f44435888818e.zip |
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>
-rw-r--r-- | Config.in | 98 | ||||
-rw-r--r-- | libbb/Config.src | 13 | ||||
-rw-r--r-- | libbb/common_bufsiz.c | 1 |
3 files changed, 59 insertions, 53 deletions
@@ -90,10 +90,14 @@ config BUSYBOX | |||
90 | help | 90 | help |
91 | The busybox applet provides general help regarding busybox and | 91 | The busybox applet provides general help regarding busybox and |
92 | allows the included applets to be listed. It's also required | 92 | allows the included applets to be listed. It's also required |
93 | if applet links are to be installed at runtime. | 93 | if applet links are to be installed at runtime. If you unselect |
94 | this option, running busybox without any arguments will give | ||
95 | just a cryptic error message: | ||
94 | 96 | ||
95 | If you can live without these features disabling this will save | 97 | $ busybox |
96 | some space. | 98 | busybox: applet not found |
99 | |||
100 | Running "busybox APPLET [ARGS...]" will still work, of course. | ||
97 | 101 | ||
98 | config FEATURE_INSTALLER | 102 | config FEATURE_INSTALLER |
99 | bool "Support --install [-s] to install applet links at runtime" | 103 | bool "Support --install [-s] to install applet links at runtime" |
@@ -112,6 +116,17 @@ config INSTALL_NO_USR | |||
112 | will install applets only to /bin and /sbin, | 116 | will install applets only to /bin and /sbin, |
113 | never to /usr/bin or /usr/sbin. | 117 | never to /usr/bin or /usr/sbin. |
114 | 118 | ||
119 | config LFS | ||
120 | bool "Build with Large File Support (for accessing files > 2 GB)" | ||
121 | default y | ||
122 | help | ||
123 | If you want to build BusyBox with large file support, then enable | ||
124 | this option. This will have no effect if your kernel or your C | ||
125 | library lacks large file support for large files. Some of the | ||
126 | programs that can benefit from large file support include dd, gzip, | ||
127 | cp, mount, tar, and many others. If you want to access files larger | ||
128 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. | ||
129 | |||
115 | config PAM | 130 | config PAM |
116 | bool "Support PAM (Pluggable Authentication Modules)" | 131 | bool "Support PAM (Pluggable Authentication Modules)" |
117 | default n | 132 | default n |
@@ -136,18 +151,6 @@ config FEATURE_DEVPTS | |||
136 | /dev/ttyp<number> will be used. To use this option, you should have | 151 | /dev/ttyp<number> will be used. To use this option, you should have |
137 | devpts mounted. | 152 | devpts mounted. |
138 | 153 | ||
139 | config FEATURE_CLEAN_UP | ||
140 | bool "Clean up all memory before exiting (usually not needed)" | ||
141 | default n | ||
142 | help | ||
143 | As a size optimization, busybox normally exits without explicitly | ||
144 | freeing dynamically allocated memory or closing files. This saves | ||
145 | space since the OS will clean up for us, but it can confuse debuggers | ||
146 | like valgrind, which report tons of memory and resource leaks. | ||
147 | |||
148 | Don't enable this unless you have a really good reason to clean | ||
149 | things up manually. | ||
150 | |||
151 | config FEATURE_UTMP | 154 | config FEATURE_UTMP |
152 | bool "Support utmp file" | 155 | bool "Support utmp file" |
153 | default y | 156 | default y |
@@ -177,7 +180,7 @@ config FEATURE_PIDFILE | |||
177 | on applets which require pidfiles to run. | 180 | on applets which require pidfiles to run. |
178 | 181 | ||
179 | config PID_FILE_PATH | 182 | config PID_FILE_PATH |
180 | string "Path to directory for pidfile" | 183 | string "Directory for pidfiles" |
181 | default "/var/run" | 184 | default "/var/run" |
182 | depends on FEATURE_PIDFILE | 185 | depends on FEATURE_PIDFILE |
183 | help | 186 | help |
@@ -269,24 +272,6 @@ config FEATURE_SUID_CONFIG_QUIET | |||
269 | check this option to avoid users to be notified about missing | 272 | check this option to avoid users to be notified about missing |
270 | permissions. | 273 | permissions. |
271 | 274 | ||
272 | config SELINUX | ||
273 | bool "Support NSA Security Enhanced Linux" | ||
274 | default n | ||
275 | select PLATFORM_LINUX | ||
276 | help | ||
277 | Enable support for SELinux in applets ls, ps, and id. Also provide | ||
278 | the option of compiling in SELinux applets. | ||
279 | |||
280 | If you do not have a complete SELinux userland installed, this stuff | ||
281 | will not compile. Specifially, libselinux 1.28 or better is | ||
282 | directly required by busybox. If the installation is located in a | ||
283 | non-standard directory, provide it by invoking make as follows: | ||
284 | CFLAGS=-I<libselinux-include-path> \ | ||
285 | LDFLAGS=-L<libselinux-lib-path> \ | ||
286 | make | ||
287 | |||
288 | Most people will leave this set to 'N'. | ||
289 | |||
290 | config FEATURE_PREFER_APPLETS | 275 | config FEATURE_PREFER_APPLETS |
291 | bool "exec prefers applets" | 276 | bool "exec prefers applets" |
292 | default n | 277 | default n |
@@ -311,6 +296,36 @@ config BUSYBOX_EXEC_PATH | |||
311 | executable. If you haven't got /proc, set this to wherever you | 296 | executable. If you haven't got /proc, set this to wherever you |
312 | want to run BusyBox from. | 297 | want to run BusyBox from. |
313 | 298 | ||
299 | config SELINUX | ||
300 | bool "Support NSA Security Enhanced Linux" | ||
301 | default n | ||
302 | select PLATFORM_LINUX | ||
303 | help | ||
304 | Enable support for SELinux in applets ls, ps, and id. Also provide | ||
305 | the option of compiling in SELinux applets. | ||
306 | |||
307 | If you do not have a complete SELinux userland installed, this stuff | ||
308 | will not compile. Specifially, libselinux 1.28 or better is | ||
309 | directly required by busybox. If the installation is located in a | ||
310 | non-standard directory, provide it by invoking make as follows: | ||
311 | CFLAGS=-I<libselinux-include-path> \ | ||
312 | LDFLAGS=-L<libselinux-lib-path> \ | ||
313 | make | ||
314 | |||
315 | Most people will leave this set to 'N'. | ||
316 | |||
317 | config FEATURE_CLEAN_UP | ||
318 | bool "Clean up all memory before exiting (usually not needed)" | ||
319 | default n | ||
320 | help | ||
321 | As a size optimization, busybox normally exits without explicitly | ||
322 | freeing dynamically allocated memory or closing files. This saves | ||
323 | space since the OS will clean up for us, but it can confuse debuggers | ||
324 | like valgrind, which report tons of memory and resource leaks. | ||
325 | |||
326 | Don't enable this unless you have a really good reason to clean | ||
327 | things up manually. | ||
328 | |||
314 | # These are auto-selected by other options | 329 | # These are auto-selected by other options |
315 | 330 | ||
316 | config FEATURE_SYSLOG | 331 | config FEATURE_SYSLOG |
@@ -452,17 +467,6 @@ config FEATURE_SHARED_BUSYBOX | |||
452 | ### | 467 | ### |
453 | ### Say 'N' unless you know what you are doing. | 468 | ### Say 'N' unless you know what you are doing. |
454 | 469 | ||
455 | config LFS | ||
456 | bool "Build with Large File Support (for accessing files > 2 GB)" | ||
457 | default y | ||
458 | help | ||
459 | If you want to build BusyBox with large file support, then enable | ||
460 | this option. This will have no effect if your kernel or your C | ||
461 | library lacks large file support for large files. Some of the | ||
462 | programs that can benefit from large file support include dd, gzip, | ||
463 | cp, mount, tar, and many others. If you want to access files larger | ||
464 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. | ||
465 | |||
466 | config CROSS_COMPILER_PREFIX | 470 | config CROSS_COMPILER_PREFIX |
467 | string "Cross Compiler prefix" | 471 | string "Cross Compiler prefix" |
468 | default "" | 472 | default "" |
@@ -669,10 +673,10 @@ config EFENCE | |||
669 | 673 | ||
670 | endchoice | 674 | endchoice |
671 | 675 | ||
672 | endmenu | ||
673 | |||
674 | source libbb/Config.in | 676 | source libbb/Config.in |
675 | 677 | ||
678 | endmenu | ||
679 | |||
676 | comment "Applets" | 680 | comment "Applets" |
677 | 681 | ||
678 | source archival/Config.in | 682 | source archival/Config.in |
diff --git a/libbb/Config.src b/libbb/Config.src index c51640305..16c79dbf0 100644 --- a/libbb/Config.src +++ b/libbb/Config.src | |||
@@ -3,7 +3,7 @@ | |||
3 | # see scripts/kbuild/config-language.txt. | 3 | # see scripts/kbuild/config-language.txt. |
4 | # | 4 | # |
5 | 5 | ||
6 | menu "Busybox Library Tuning" | 6 | comment "Library Tuning" |
7 | 7 | ||
8 | INSERT | 8 | INSERT |
9 | 9 | ||
@@ -66,7 +66,7 @@ config FEATURE_FAST_TOP | |||
66 | bool "Faster /proc scanning code (+100 bytes)" | 66 | bool "Faster /proc scanning code (+100 bytes)" |
67 | default n # all "fast or small" options default to small | 67 | default n # all "fast or small" options default to small |
68 | help | 68 | help |
69 | This option makes top (and ps) ~20% faster (or 20% less CPU hungry), | 69 | This option makes top and ps ~20% faster (or 20% less CPU hungry), |
70 | but code size is slightly bigger. | 70 | but code size is slightly bigger. |
71 | 71 | ||
72 | config FEATURE_ETC_NETWORKS | 72 | config FEATURE_ETC_NETWORKS |
@@ -302,13 +302,17 @@ config FEATURE_VERBOSE_CP_MESSAGE | |||
302 | default n | 302 | default n |
303 | help | 303 | help |
304 | Error messages with this feature enabled: | 304 | Error messages with this feature enabled: |
305 | |||
305 | $ cp file /does_not_exist/file | 306 | $ cp file /does_not_exist/file |
306 | cp: cannot create '/does_not_exist/file': Path does not exist | 307 | cp: cannot create '/does_not_exist/file': Path does not exist |
307 | $ cp file /vmlinuz/file | 308 | $ cp file /vmlinuz/file |
308 | cp: cannot stat '/vmlinuz/file': Path has non-directory component | 309 | cp: cannot stat '/vmlinuz/file': Path has non-directory component |
310 | |||
309 | If this feature is not enabled, they will be, respectively: | 311 | If this feature is not enabled, they will be, respectively: |
312 | |||
310 | cp: cannot create '/does_not_exist/file': No such file or directory | 313 | cp: cannot create '/does_not_exist/file': No such file or directory |
311 | cp: cannot stat '/vmlinuz/file': Not a directory | 314 | cp: cannot stat '/vmlinuz/file': Not a directory |
315 | |||
312 | This will cost you ~60 bytes. | 316 | This will cost you ~60 bytes. |
313 | 317 | ||
314 | config FEATURE_USE_SENDFILE | 318 | config FEATURE_USE_SENDFILE |
@@ -376,7 +380,4 @@ config FEATURE_HWIB | |||
376 | bool "Support infiniband HW" | 380 | bool "Support infiniband HW" |
377 | default y | 381 | default y |
378 | help | 382 | help |
379 | Support for printing infiniband addresses in | 383 | Support for printing infiniband addresses in network applets. |
380 | network applets. | ||
381 | |||
382 | endmenu | ||
diff --git a/libbb/common_bufsiz.c b/libbb/common_bufsiz.c index 2847eb57d..f1124ba0e 100644 --- a/libbb/common_bufsiz.c +++ b/libbb/common_bufsiz.c | |||
@@ -19,6 +19,7 @@ | |||
19 | //config: | 19 | //config: |
20 | //config: At link time, "text" is padded to a full page. At runtime, all "text" | 20 | //config: At link time, "text" is padded to a full page. At runtime, all "text" |
21 | //config: pages are mapped RO and executable. | 21 | //config: pages are mapped RO and executable. |
22 | //config: | ||
22 | //config: "Data" starts on the next page boundary, but is not padded | 23 | //config: "Data" starts on the next page boundary, but is not padded |
23 | //config: to a full page at the end. "Bss" starts wherever "data" ends. | 24 | //config: to a full page at the end. "Bss" starts wherever "data" ends. |
24 | //config: At runtime, "data" pages are mapped RW and they are file-backed | 25 | //config: At runtime, "data" pages are mapped RW and they are file-backed |