2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
7 config BUSYBOX_CONFIG_HAVE_DOT_CONFIG
11 menu "Busybox Settings"
13 menu "General Configuration"
15 config BUSYBOX_CONFIG_DESKTOP
16 bool "Enable options for full-blown desktop systems"
19 Enable options and features which are not essential.
20 Select this only if you plan to use busybox on full-blown
21 desktop machine with common Linux distro, not on an embedded box.
23 config BUSYBOX_CONFIG_EXTRA_COMPAT
24 bool "Provide compatible behavior for rare corner cases (bigger code)"
27 This option makes grep, sed etc handle rare corner cases
28 (embedded NUL bytes and such). This makes code bigger and uses
29 some GNU extensions in libc. You probably only need this option
30 if you plan to run busybox on desktop.
32 config BUSYBOX_CONFIG_FEATURE_ASSUME_UNICODE
33 bool "Assume that 1:1 char/glyph correspondence is not true"
36 This makes various applets aware that one byte is not
37 one character on screen.
39 Busybox aims to eventually work correctly with Unicode displays.
40 Any older encodings are not guaranteed to work.
41 Probably by the time when busybox will be fully Unicode-clean,
42 other encodings will be mainly of historic interest.
45 prompt "Buffer allocation policy"
46 default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
48 There are 3 ways BusyBox can handle buffer allocations:
49 - Use malloc. This costs code size for the call to xmalloc.
50 - Put them on stack. For some very small machines with limited stack
51 space, this can be deadly. For most folks, this works just fine.
52 - Put them in BSS. This works beautifully for computers with a real
53 MMU (and OS support), but wastes runtime RAM for uCLinux. This
54 behavior was the only one available for BusyBox versions 0.48 and
57 config BUSYBOX_CONFIG_FEATURE_BUFFERS_USE_MALLOC
58 bool "Allocate with Malloc"
60 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
61 bool "Allocate on the Stack"
63 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_IN_BSS
64 bool "Allocate in the .bss section"
68 config BUSYBOX_CONFIG_SHOW_USAGE
69 bool "Show terse applet usage messages"
72 All BusyBox applets will show help messages when invoked with
73 wrong arguments. You can turn off printing these terse usage
74 messages if you say no here.
75 This will save you up to 7k.
77 config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
78 bool "Show verbose applet usage messages"
80 select BUSYBOX_CONFIG_SHOW_USAGE
82 All BusyBox applets will show more verbose help messages when
83 busybox is invoked with --help. This will add a lot of text to the
84 busybox binary. In the default configuration, this will add about
85 13k, but it can add much more depending on your configuration.
87 config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
88 bool "Store applet usage messages in compressed form"
90 depends on BUSYBOX_CONFIG_SHOW_USAGE
92 Store usage messages in compressed form, uncompress them on-the-fly
93 when <applet> --help is called.
95 If you have a really tiny busybox with few applets enabled (and
96 bunzip2 isn't one of them), the overhead of the decompressor might
97 be noticeable. Also, if you run executables directly from ROM
98 and have very little memory, this might not be a win. Otherwise,
99 you probably want this.
101 config BUSYBOX_CONFIG_FEATURE_INSTALLER
102 bool "Support --install [-s] to install applet links at runtime"
105 Enable 'busybox --install [-s]' support. This will allow you to use
106 busybox at runtime to create hard links or symlinks for all the
107 applets that are compiled into busybox.
109 config BUSYBOX_CONFIG_LOCALE_SUPPORT
110 bool "Enable locale support (system needs locale for this to work)"
113 Enable this if your system has locale support and you would like
114 busybox to support locale settings.
116 config BUSYBOX_CONFIG_GETOPT_LONG
117 bool "Support for --long-options"
120 Enable this if you want busybox applets to use the gnu --long-option
121 style, in addition to single character -a -b -c style options.
123 config BUSYBOX_CONFIG_FEATURE_DEVPTS
124 bool "Use the devpts filesystem for Unix98 PTYs"
127 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
128 busybox will use /dev/ptmx for the master side of the pseudoterminal
129 and /dev/pts/<number> for the slave side. Otherwise, BSD style
130 /dev/ttyp<number> will be used. To use this option, you should have
133 config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
134 bool "Clean up all memory before exiting (usually not needed)"
137 As a size optimization, busybox normally exits without explicitly
138 freeing dynamically allocated memory or closing files. This saves
139 space since the OS will clean up for us, but it can confuse debuggers
140 like valgrind, which report tons of memory and resource leaks.
142 Don't enable this unless you have a really good reason to clean
145 config BUSYBOX_CONFIG_FEATURE_PIDFILE
146 bool "Support writing pidfiles"
149 This option makes some applets (e.g. crond, syslogd, inetd) write
150 a pidfile in /var/run. Some applications rely on them.
152 config BUSYBOX_CONFIG_FEATURE_SUID
153 bool "Support for SUID/SGID handling"
156 With this option you can install the busybox binary belonging
157 to root with the suid bit set, and it will automatically drop
158 priviledges for applets that don't need root access.
160 If you are really paranoid and don't want to do this, build two
161 busybox binaries with different applets in them (and the appropriate
162 symlinks pointing to each binary), and only set the suid bit on the
163 one that needs it. The applets currently marked to need the suid bit
166 crontab, dnsd, findfs, ipcrm, ipcs, login, passwd, ping, su,
169 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
170 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
171 default n if BUSYBOX_CONFIG_FEATURE_SUID
172 depends on BUSYBOX_CONFIG_FEATURE_SUID
174 Allow the SUID / SGID state of an applet to be determined at runtime
175 by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
176 The format of this file is as follows:
178 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
180 An example might help:
183 su = ssx root.0 # applet su can be run by anyone and runs with
185 su = ssx # exactly the same
187 mount = sx- root.disk # applet mount can be run by root and members
188 # of group disk and runs with euid=0
190 cp = --- # disable applet cp for everyone
192 The file has to be owned by user root, group root and has to be
193 writeable only by root:
194 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
195 The busybox executable has to be owned by user root, group
196 root and has to be setuid root for this to work:
197 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
199 Robert 'sandman' Griebl has more information here:
200 <url: http://www.softforge.de/bb/suid.html >.
202 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET
203 bool "Suppress warning message if /etc/busybox.conf is not readable"
205 depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
207 /etc/busybox.conf should be readable by the user needing the SUID,
208 check this option to avoid users to be notified about missing
211 config BUSYBOX_CONFIG_SELINUX
212 bool "Support NSA Security Enhanced Linux"
215 Enable support for SELinux in applets ls, ps, and id. Also provide
216 the option of compiling in SELinux applets.
218 If you do not have a complete SELinux userland installed, this stuff
219 will not compile. Go visit
220 http://www.nsa.gov/selinux/index.html
221 to download the necessary stuff to allow busybox to compile with
222 this option enabled. Specifially, libselinux 1.28 or better is
223 directly required by busybox. If the installation is located in a
224 non-standard directory, provide it by invoking make as follows:
225 CFLAGS=-I<libselinux-include-path> \
226 LDFLAGS=-L<libselinux-lib-path> \
229 Most people will leave this set to 'N'.
231 config BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
232 bool "exec prefers applets"
235 This is an experimental option which directs applets about to
236 call 'exec' to try and find an applicable busybox applet before
237 searching the PATH. This is typically done by exec'ing
239 This may affect shell, find -exec, xargs and similar applets.
240 They will use applets even if /bin/<applet> -> busybox link
241 is missing (or is not a link to busybox). However, this causes
242 problems in chroot jails without mounted /proc and with ps/top
243 (command name can be shown as 'exe' for applets started this way).
245 config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
246 string "Path to BusyBox executable"
247 default "/proc/self/exe"
249 When Busybox applets need to run other busybox applets, BusyBox
250 sometimes needs to exec() itself. When the /proc filesystem is
251 mounted, /proc/self/exe always points to the currently running
252 executable. If you haven't got /proc, set this to wherever you
253 want to run BusyBox from.
255 # These are auto-selected by other options
257 config BUSYBOX_CONFIG_FEATURE_SYSLOG
258 bool #No description makes it a hidden option
261 # This option is auto-selected when you select any applet which may
262 # send its output to syslog. You do not need to select it manually.
264 config BUSYBOX_CONFIG_FEATURE_HAVE_RPC
265 bool #No description makes it a hidden option
268 # This is automatically selected if any of enabled applets need it.
269 # You do not need to select it manually.
275 config BUSYBOX_CONFIG_STATIC
276 bool "Build BusyBox as a static binary (no shared libs)"
279 If you want to build a static BusyBox binary, which does not
280 use or require any shared libraries, then enable this option.
281 This can cause BusyBox to be considerably larger, so you should
282 leave this option false unless you have a good reason (i.e.
283 your target platform does not support shared libraries, or
284 you are building an initrd which doesn't need anything but
287 Most people will leave this set to 'N'.
289 config BUSYBOX_CONFIG_PIE
290 bool "Build BusyBox as a position independent executable"
292 depends on !BUSYBOX_CONFIG_STATIC
294 (TODO: what is it and why/when is it useful?)
295 Most people will leave this set to 'N'.
297 config BUSYBOX_CONFIG_NOMMU
298 bool "Force NOMMU build"
301 Busybox tries to detect whether architecture it is being
302 built against supports MMU or not. If this detection fails,
303 or if you want to build NOMMU version of busybox for testing,
304 you may force NOMMU build here.
306 Most people will leave this set to 'N'.
308 # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
309 # build system does not support that
310 config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
311 bool "Build shared libbusybox"
313 depends on !BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS && !BUSYBOX_CONFIG_PIE && !BUSYBOX_CONFIG_STATIC
315 Build a shared library libbusybox.so.N.N.N which contains all
318 This feature allows every applet to be built as a tiny
319 separate executable. Enabling it for "one big busybox binary"
320 approach serves no purpose and increases code size.
321 You should almost certainly say "no" to this.
323 ### config FEATURE_FULL_LIBBUSYBOX
324 ### bool "Feature-complete libbusybox"
325 ### default n if !FEATURE_SHARED_BUSYBOX
326 ### depends on BUILD_LIBBUSYBOX
328 ### Build a libbusybox with the complete feature-set, disregarding
329 ### the actually selected config.
331 ### Normally, libbusybox will only contain the features which are
332 ### used by busybox itself. If you plan to write a separate
333 ### standalone application which uses libbusybox say 'Y'.
335 ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
336 ### might act as a copyright barrier. We can and will modify the
337 ### exported function set between releases (even minor version number
338 ### changes), and happily break out-of-tree features.
340 ### Say 'N' if in doubt.
342 config BUSYBOX_CONFIG_FEATURE_INDIVIDUAL
343 bool "Produce a binary for each applet, linked against libbusybox"
345 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
347 If your CPU architecture doesn't allow for sharing text/rodata
348 sections of running binaries, but allows for runtime dynamic
349 libraries, this option will allow you to reduce memory footprint
350 when you have many different applets running at once.
352 If your CPU architecture allows for sharing text/rodata,
353 having single binary is more optimal.
355 Each applet will be a tiny program, dynamically linked
356 against libbusybox.so.N.N.N.
358 You need to have a working dynamic linker.
360 config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX
361 bool "Produce additional busybox binary linked against libbusybox"
363 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
365 Build busybox, dynamically linked against libbusybox.so.N.N.N.
367 You need to have a working dynamic linker.
369 ### config BUILD_AT_ONCE
370 ### bool "Compile all sources at once"
373 ### Normally each source-file is compiled with one invocation of
375 ### If you set this option, all sources are compiled at once.
376 ### This gives the compiler more opportunities to optimize which can
377 ### result in smaller and/or faster binaries.
379 ### Setting this option will consume alot of memory, e.g. if you
380 ### enable all applets with all features, gcc uses more than 300MB
381 ### RAM during compilation of busybox.
383 ### This option is most likely only beneficial for newer compilers
384 ### such as gcc-4.1 and above.
386 ### Say 'N' unless you know what you are doing.
388 config BUSYBOX_CONFIG_LFS
391 select BUSYBOX_CONFIG_FDISK_SUPPORT_LARGE_DISKS
393 If you want to build BusyBox with large file support, then enable
394 this option. This will have no effect if your kernel or your C
395 library lacks large file support for large files. Some of the
396 programs that can benefit from large file support include dd, gzip,
397 cp, mount, tar, and many others. If you want to access files larger
398 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
400 config BUSYBOX_CONFIG_CROSS_COMPILER_PREFIX
401 string "Cross Compiler prefix"
404 If you want to build BusyBox with a cross compiler, then you
405 will need to set this to the cross-compiler prefix, for example,
408 Note that CROSS_COMPILE environment variable or
409 "make CROSS_COMPILE=xxx ..." will override this selection.
411 Native builds leave this empty.
415 menu 'Debugging Options'
417 config BUSYBOX_CONFIG_DEBUG
418 bool "Build BusyBox with extra Debugging symbols"
421 Say Y here if you wish to examine BusyBox internals while applets are
422 running. This increases the size of the binary considerably, and
423 should only be used when doing development. If you are doing
424 development and want to debug BusyBox, answer Y.
426 Most people should answer N.
428 config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
429 bool "Disable compiler optimizations"
431 depends on BUSYBOX_CONFIG_DEBUG
433 The compiler's optimization of source code can eliminate and reorder
434 code, resulting in an executable that's hard to understand when
435 stepping through it with a debugger. This switches it off, resulting
436 in a much bigger executable that more closely matches the source
439 config BUSYBOX_CONFIG_WERROR
440 bool "Abort compilation on any warning"
443 Selecting this will add -Werror to gcc command line.
445 Most people should answer N.
448 prompt "Additional debugging library"
449 default BUSYBOX_CONFIG_NO_DEBUG_LIB
451 Using an additional debugging library will make BusyBox become
452 considerable larger and will cause it to run more slowly. You
453 should always leave this option disabled for production use.
457 This enables compiling with dmalloc ( http://dmalloc.com/ )
458 which is an excellent public domain mem leak and malloc problem
459 detector. To enable dmalloc, before running busybox you will
460 want to properly set your environment, for example:
461 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
462 The 'debug=' value is generated using the following command
463 dmalloc -p log-stats -p log-non-free -p log-bad-space \
464 -p log-elapsed-time -p check-fence -p check-heap \
465 -p check-lists -p check-blank -p check-funcs -p realloc-copy \
468 Electric-fence support:
469 -----------------------
470 This enables compiling with Electric-fence support. Electric
471 fence is another very useful malloc debugging library which uses
472 your computer's virtual memory hardware to detect illegal memory
473 accesses. This support will make BusyBox be considerable larger
474 and run slower, so you should leave this option disabled unless
475 you are hunting a hard to find memory problem.
478 config BUSYBOX_CONFIG_NO_DEBUG_LIB
481 config BUSYBOX_CONFIG_DMALLOC
484 config BUSYBOX_CONFIG_EFENCE
485 bool "Electric-fence"
489 config BUSYBOX_CONFIG_INCLUDE_SUSv2
490 bool "Enable obsolete features removed before SUSv3?"
493 This option will enable backwards compatibility with SuSv2,
494 specifically, old-style numeric options ('command -1 <file>')
495 will be supported in head, tail, and fold. (Note: should
499 ### bool "Uniform config file parser debugging applet: parse"
503 menu 'Installation Options'
505 config BUSYBOX_CONFIG_INSTALL_NO_USR
506 bool "Don't use /usr"
509 Disable use of /usr. Don't activate this option if you don't know
510 that you really want this behaviour.
513 prompt "Applets links"
514 default BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
516 Choose how you install applets links.
518 config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
521 Install applets as soft-links to the busybox binary. This needs some
522 free inodes on the filesystem, but might help with filesystem
523 generators that can't cope with hard-links.
525 config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS
528 Install applets as hard-links to the busybox binary. This might
529 count on a filesystem with few inodes.
531 config BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
532 bool "as script wrappers"
534 Install applets as script wrappers that call the busybox binary.
536 config BUSYBOX_CONFIG_INSTALL_APPLET_DONT
538 depends on BUSYBOX_CONFIG_FEATURE_INSTALLER || BUSYBOX_CONFIG_FEATURE_SH_STANDALONE || BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
540 Do not install applet links. Useful when using the -install feature
541 or a standalone shell for rescue purposes.
546 prompt "/bin/sh applet link"
547 default BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
548 depends on BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
550 Choose how you install /bin/sh applet link.
552 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
555 Install /bin/sh applet as soft-link to the busybox binary.
557 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_HARDLINK
560 Install /bin/sh applet as hard-link to the busybox binary.
562 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER
563 bool "as script wrapper"
565 Install /bin/sh applet as script wrapper that call the busybox
570 config BUSYBOX_CONFIG_PREFIX
571 string "BusyBox installation prefix"
574 Define your directory to install BusyBox files/subdirs in.
578 source package/busybox/config/libbb/Config.in
584 source package/busybox/config/archival/Config.in
585 source package/busybox/config/coreutils/Config.in
586 source package/busybox/config/console-tools/Config.in
587 source package/busybox/config/debianutils/Config.in
588 source package/busybox/config/editors/Config.in
589 source package/busybox/config/findutils/Config.in
590 source package/busybox/config/init/Config.in
591 source package/busybox/config/loginutils/Config.in
592 source package/busybox/config/e2fsprogs/Config.in
593 source package/busybox/config/modutils/Config.in
594 source package/busybox/config/util-linux/Config.in
595 source package/busybox/config/miscutils/Config.in
596 source package/busybox/config/networking/Config.in
597 source package/busybox/config/printutils/Config.in
598 source package/busybox/config/mailutils/Config.in
599 source package/busybox/config/procps/Config.in
600 source package/busybox/config/runit/Config.in
601 source package/busybox/config/selinux/Config.in
602 source package/busybox/config/shell/Config.in
603 source package/busybox/config/sysklogd/Config.in