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_INCLUDE_SUSv2
33 bool "Enable obsolete features removed before SUSv3"
36 This option will enable backwards compatibility with SuSv2,
37 specifically, old-style numeric options ('command -1 <file>')
38 will be supported in head, tail, and fold. (Note: should
41 config BUSYBOX_CONFIG_USE_PORTABLE_CODE
42 bool "Avoid using GCC-specific code constructs"
45 Use this option if you are trying to compile busybox with
46 compiler other than gcc.
47 If you do use gcc, this option may needlessly increase code size.
50 prompt "Buffer allocation policy"
51 default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
53 There are 3 ways BusyBox can handle buffer allocations:
54 - Use malloc. This costs code size for the call to xmalloc.
55 - Put them on stack. For some very small machines with limited stack
56 space, this can be deadly. For most folks, this works just fine.
57 - Put them in BSS. This works beautifully for computers with a real
58 MMU (and OS support), but wastes runtime RAM for uCLinux. This
59 behavior was the only one available for BusyBox versions 0.48 and
62 config BUSYBOX_CONFIG_FEATURE_BUFFERS_USE_MALLOC
63 bool "Allocate with Malloc"
65 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
66 bool "Allocate on the Stack"
68 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_IN_BSS
69 bool "Allocate in the .bss section"
73 config BUSYBOX_CONFIG_SHOW_USAGE
74 bool "Show terse applet usage messages"
77 All BusyBox applets will show help messages when invoked with
78 wrong arguments. You can turn off printing these terse usage
79 messages if you say no here.
80 This will save you up to 7k.
82 config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
83 bool "Show verbose applet usage messages"
85 select BUSYBOX_CONFIG_SHOW_USAGE
87 All BusyBox applets will show more verbose help messages when
88 busybox is invoked with --help. This will add a lot of text to the
89 busybox binary. In the default configuration, this will add about
90 13k, but it can add much more depending on your configuration.
92 config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
93 bool "Store applet usage messages in compressed form"
95 depends on BUSYBOX_CONFIG_SHOW_USAGE
97 Store usage messages in compressed form, uncompress them on-the-fly
98 when <applet> --help is called.
100 If you have a really tiny busybox with few applets enabled (and
101 bunzip2 isn't one of them), the overhead of the decompressor might
102 be noticeable. Also, if you run executables directly from ROM
103 and have very little memory, this might not be a win. Otherwise,
104 you probably want this.
106 config BUSYBOX_CONFIG_FEATURE_INSTALLER
107 bool "Support --install [-s] to install applet links at runtime"
110 Enable 'busybox --install [-s]' support. This will allow you to use
111 busybox at runtime to create hard links or symlinks for all the
112 applets that are compiled into busybox.
114 config BUSYBOX_CONFIG_LOCALE_SUPPORT
115 bool "Enable locale support (system needs locale for this to work)"
118 Enable this if your system has locale support and you would like
119 busybox to support locale settings.
121 config BUSYBOX_CONFIG_FEATURE_ASSUME_UNICODE
122 bool "Support Unicode"
125 This makes various applets aware that one byte is not
126 one character on screen.
128 Busybox aims to eventually work correctly with Unicode displays.
129 Any older encodings are not guaranteed to work.
130 Probably by the time when busybox will be fully Unicode-clean,
131 other encodings will be mainly of historic interest.
133 config BUSYBOX_CONFIG_FEATURE_CHECK_UNICODE_IN_ENV
134 bool "Check $LANG environment variable"
136 depends on BUSYBOX_CONFIG_FEATURE_ASSUME_UNICODE && !BUSYBOX_CONFIG_LOCALE_SUPPORT
138 With this option on, Unicode support is activated
139 only if LANG variable has the value of the form "xxxx.utf8"
141 Otherwise, Unicode support will be always enabled and active.
143 config BUSYBOX_CONFIG_LONG_OPTS
144 bool "Support for --long-options"
147 Enable this if you want busybox applets to use the gnu --long-option
148 style, in addition to single character -a -b -c style options.
150 config BUSYBOX_CONFIG_FEATURE_DEVPTS
151 bool "Use the devpts filesystem for Unix98 PTYs"
154 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
155 busybox will use /dev/ptmx for the master side of the pseudoterminal
156 and /dev/pts/<number> for the slave side. Otherwise, BSD style
157 /dev/ttyp<number> will be used. To use this option, you should have
160 config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
161 bool "Clean up all memory before exiting (usually not needed)"
164 As a size optimization, busybox normally exits without explicitly
165 freeing dynamically allocated memory or closing files. This saves
166 space since the OS will clean up for us, but it can confuse debuggers
167 like valgrind, which report tons of memory and resource leaks.
169 Don't enable this unless you have a really good reason to clean
172 config BUSYBOX_CONFIG_FEATURE_PIDFILE
173 bool "Support writing pidfiles"
176 This option makes some applets (e.g. crond, syslogd, inetd) write
177 a pidfile in /var/run. Some applications rely on them.
179 config BUSYBOX_CONFIG_FEATURE_SUID
180 bool "Support for SUID/SGID handling"
183 With this option you can install the busybox binary belonging
184 to root with the suid bit set, and it will automatically drop
185 priviledges for applets that don't need root access.
187 If you are really paranoid and don't want to do this, build two
188 busybox binaries with different applets in them (and the appropriate
189 symlinks pointing to each binary), and only set the suid bit on the
190 one that needs it. The applets currently marked to need the suid bit
193 crontab, dnsd, findfs, ipcrm, ipcs, login, passwd, ping, su,
196 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
197 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
198 default n if BUSYBOX_CONFIG_FEATURE_SUID
199 depends on BUSYBOX_CONFIG_FEATURE_SUID
201 Allow the SUID / SGID state of an applet to be determined at runtime
202 by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
203 The format of this file is as follows:
205 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
207 An example might help:
210 su = ssx root.0 # applet su can be run by anyone and runs with
212 su = ssx # exactly the same
214 mount = sx- root.disk # applet mount can be run by root and members
215 # of group disk and runs with euid=0
217 cp = --- # disable applet cp for everyone
219 The file has to be owned by user root, group root and has to be
220 writeable only by root:
221 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
222 The busybox executable has to be owned by user root, group
223 root and has to be setuid root for this to work:
224 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
226 Robert 'sandman' Griebl has more information here:
227 <url: http://www.softforge.de/bb/suid.html >.
229 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET
230 bool "Suppress warning message if /etc/busybox.conf is not readable"
232 depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
234 /etc/busybox.conf should be readable by the user needing the SUID,
235 check this option to avoid users to be notified about missing
238 config BUSYBOX_CONFIG_SELINUX
239 bool "Support NSA Security Enhanced Linux"
242 Enable support for SELinux in applets ls, ps, and id. Also provide
243 the option of compiling in SELinux applets.
245 If you do not have a complete SELinux userland installed, this stuff
246 will not compile. Go visit
247 http://www.nsa.gov/selinux/index.html
248 to download the necessary stuff to allow busybox to compile with
249 this option enabled. Specifially, libselinux 1.28 or better is
250 directly required by busybox. If the installation is located in a
251 non-standard directory, provide it by invoking make as follows:
252 CFLAGS=-I<libselinux-include-path> \
253 LDFLAGS=-L<libselinux-lib-path> \
256 Most people will leave this set to 'N'.
258 config BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
259 bool "exec prefers applets"
262 This is an experimental option which directs applets about to
263 call 'exec' to try and find an applicable busybox applet before
264 searching the PATH. This is typically done by exec'ing
266 This may affect shell, find -exec, xargs and similar applets.
267 They will use applets even if /bin/<applet> -> busybox link
268 is missing (or is not a link to busybox). However, this causes
269 problems in chroot jails without mounted /proc and with ps/top
270 (command name can be shown as 'exe' for applets started this way).
272 config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
273 string "Path to BusyBox executable"
274 default "/proc/self/exe"
276 When Busybox applets need to run other busybox applets, BusyBox
277 sometimes needs to exec() itself. When the /proc filesystem is
278 mounted, /proc/self/exe always points to the currently running
279 executable. If you haven't got /proc, set this to wherever you
280 want to run BusyBox from.
282 # These are auto-selected by other options
284 config BUSYBOX_CONFIG_FEATURE_SYSLOG
285 bool #No description makes it a hidden option
288 # This option is auto-selected when you select any applet which may
289 # send its output to syslog. You do not need to select it manually.
291 config BUSYBOX_CONFIG_FEATURE_HAVE_RPC
292 bool #No description makes it a hidden option
295 # This is automatically selected if any of enabled applets need it.
296 # You do not need to select it manually.
302 config BUSYBOX_CONFIG_STATIC
303 bool "Build BusyBox as a static binary (no shared libs)"
306 If you want to build a static BusyBox binary, which does not
307 use or require any shared libraries, then enable this option.
308 This can cause BusyBox to be considerably larger, so you should
309 leave this option false unless you have a good reason (i.e.
310 your target platform does not support shared libraries, or
311 you are building an initrd which doesn't need anything but
314 Most people will leave this set to 'N'.
316 config BUSYBOX_CONFIG_PIE
317 bool "Build BusyBox as a position independent executable"
319 depends on !BUSYBOX_CONFIG_STATIC
321 (TODO: what is it and why/when is it useful?)
322 Most people will leave this set to 'N'.
324 config BUSYBOX_CONFIG_NOMMU
325 bool "Force NOMMU build"
328 Busybox tries to detect whether architecture it is being
329 built against supports MMU or not. If this detection fails,
330 or if you want to build NOMMU version of busybox for testing,
331 you may force NOMMU build here.
333 Most people will leave this set to 'N'.
335 # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
336 # build system does not support that
337 config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
338 bool "Build shared libbusybox"
340 depends on !BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS && !BUSYBOX_CONFIG_PIE && !BUSYBOX_CONFIG_STATIC
342 Build a shared library libbusybox.so.N.N.N which contains all
345 This feature allows every applet to be built as a tiny
346 separate executable. Enabling it for "one big busybox binary"
347 approach serves no purpose and increases code size.
348 You should almost certainly say "no" to this.
350 ### config FEATURE_FULL_LIBBUSYBOX
351 ### bool "Feature-complete libbusybox"
352 ### default n if !FEATURE_SHARED_BUSYBOX
353 ### depends on BUILD_LIBBUSYBOX
355 ### Build a libbusybox with the complete feature-set, disregarding
356 ### the actually selected config.
358 ### Normally, libbusybox will only contain the features which are
359 ### used by busybox itself. If you plan to write a separate
360 ### standalone application which uses libbusybox say 'Y'.
362 ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
363 ### might act as a copyright barrier. We can and will modify the
364 ### exported function set between releases (even minor version number
365 ### changes), and happily break out-of-tree features.
367 ### Say 'N' if in doubt.
369 config BUSYBOX_CONFIG_FEATURE_INDIVIDUAL
370 bool "Produce a binary for each applet, linked against libbusybox"
372 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
374 If your CPU architecture doesn't allow for sharing text/rodata
375 sections of running binaries, but allows for runtime dynamic
376 libraries, this option will allow you to reduce memory footprint
377 when you have many different applets running at once.
379 If your CPU architecture allows for sharing text/rodata,
380 having single binary is more optimal.
382 Each applet will be a tiny program, dynamically linked
383 against libbusybox.so.N.N.N.
385 You need to have a working dynamic linker.
387 config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX
388 bool "Produce additional busybox binary linked against libbusybox"
390 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
392 Build busybox, dynamically linked against libbusybox.so.N.N.N.
394 You need to have a working dynamic linker.
396 ### config BUILD_AT_ONCE
397 ### bool "Compile all sources at once"
400 ### Normally each source-file is compiled with one invocation of
402 ### If you set this option, all sources are compiled at once.
403 ### This gives the compiler more opportunities to optimize which can
404 ### result in smaller and/or faster binaries.
406 ### Setting this option will consume alot of memory, e.g. if you
407 ### enable all applets with all features, gcc uses more than 300MB
408 ### RAM during compilation of busybox.
410 ### This option is most likely only beneficial for newer compilers
411 ### such as gcc-4.1 and above.
413 ### Say 'N' unless you know what you are doing.
415 config BUSYBOX_CONFIG_LFS
418 select BUSYBOX_CONFIG_FDISK_SUPPORT_LARGE_DISKS
420 If you want to build BusyBox with large file support, then enable
421 this option. This will have no effect if your kernel or your C
422 library lacks large file support for large files. Some of the
423 programs that can benefit from large file support include dd, gzip,
424 cp, mount, tar, and many others. If you want to access files larger
425 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
427 config BUSYBOX_CONFIG_CROSS_COMPILER_PREFIX
428 string "Cross Compiler prefix"
431 If you want to build BusyBox with a cross compiler, then you
432 will need to set this to the cross-compiler prefix, for example,
435 Note that CROSS_COMPILE environment variable or
436 "make CROSS_COMPILE=xxx ..." will override this selection.
438 Native builds leave this empty.
440 config BUSYBOX_CONFIG_EXTRA_CFLAGS
441 string "Additional CFLAGS"
444 Additional CFLAGS to pass to the compiler verbatim.
448 menu 'Debugging Options'
450 config BUSYBOX_CONFIG_DEBUG
451 bool "Build BusyBox with extra Debugging symbols"
454 Say Y here if you wish to examine BusyBox internals while applets are
455 running. This increases the size of the binary considerably, and
456 should only be used when doing development. If you are doing
457 development and want to debug BusyBox, answer Y.
459 Most people should answer N.
461 config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
462 bool "Disable compiler optimizations"
464 depends on BUSYBOX_CONFIG_DEBUG
466 The compiler's optimization of source code can eliminate and reorder
467 code, resulting in an executable that's hard to understand when
468 stepping through it with a debugger. This switches it off, resulting
469 in a much bigger executable that more closely matches the source
472 config BUSYBOX_CONFIG_WERROR
473 bool "Abort compilation on any warning"
476 Selecting this will add -Werror to gcc command line.
478 Most people should answer N.
481 prompt "Additional debugging library"
482 default BUSYBOX_CONFIG_NO_DEBUG_LIB
484 Using an additional debugging library will make BusyBox become
485 considerable larger and will cause it to run more slowly. You
486 should always leave this option disabled for production use.
490 This enables compiling with dmalloc ( http://dmalloc.com/ )
491 which is an excellent public domain mem leak and malloc problem
492 detector. To enable dmalloc, before running busybox you will
493 want to properly set your environment, for example:
494 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
495 The 'debug=' value is generated using the following command
496 dmalloc -p log-stats -p log-non-free -p log-bad-space \
497 -p log-elapsed-time -p check-fence -p check-heap \
498 -p check-lists -p check-blank -p check-funcs -p realloc-copy \
501 Electric-fence support:
502 -----------------------
503 This enables compiling with Electric-fence support. Electric
504 fence is another very useful malloc debugging library which uses
505 your computer's virtual memory hardware to detect illegal memory
506 accesses. This support will make BusyBox be considerable larger
507 and run slower, so you should leave this option disabled unless
508 you are hunting a hard to find memory problem.
511 config BUSYBOX_CONFIG_NO_DEBUG_LIB
514 config BUSYBOX_CONFIG_DMALLOC
517 config BUSYBOX_CONFIG_EFENCE
518 bool "Electric-fence"
523 ### bool "Uniform config file parser debugging applet: parse"
527 menu 'Installation Options'
529 config BUSYBOX_CONFIG_INSTALL_NO_USR
530 bool "Don't use /usr"
533 Disable use of /usr. Don't activate this option if you don't know
534 that you really want this behaviour.
537 prompt "Applets links"
538 default BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
540 Choose how you install applets links.
542 config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
545 Install applets as soft-links to the busybox binary. This needs some
546 free inodes on the filesystem, but might help with filesystem
547 generators that can't cope with hard-links.
549 config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS
552 Install applets as hard-links to the busybox binary. This might
553 count on a filesystem with few inodes.
555 config BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
556 bool "as script wrappers"
558 Install applets as script wrappers that call the busybox binary.
560 config BUSYBOX_CONFIG_INSTALL_APPLET_DONT
562 depends on BUSYBOX_CONFIG_FEATURE_INSTALLER || BUSYBOX_CONFIG_FEATURE_SH_STANDALONE || BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
564 Do not install applet links. Useful when using the -install feature
565 or a standalone shell for rescue purposes.
570 prompt "/bin/sh applet link"
571 default BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
572 depends on BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
574 Choose how you install /bin/sh applet link.
576 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
579 Install /bin/sh applet as soft-link to the busybox binary.
581 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_HARDLINK
584 Install /bin/sh applet as hard-link to the busybox binary.
586 config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER
587 bool "as script wrapper"
589 Install /bin/sh applet as script wrapper that call the busybox
594 config BUSYBOX_CONFIG_PREFIX
595 string "BusyBox installation prefix"
598 Define your directory to install BusyBox files/subdirs in.
602 source package/busybox/config/libbb/Config.in
608 source package/busybox/config/archival/Config.in
609 source package/busybox/config/coreutils/Config.in
610 source package/busybox/config/console-tools/Config.in
611 source package/busybox/config/debianutils/Config.in
612 source package/busybox/config/editors/Config.in
613 source package/busybox/config/findutils/Config.in
614 source package/busybox/config/init/Config.in
615 source package/busybox/config/loginutils/Config.in
616 source package/busybox/config/e2fsprogs/Config.in
617 source package/busybox/config/modutils/Config.in
618 source package/busybox/config/util-linux/Config.in
619 source package/busybox/config/miscutils/Config.in
620 source package/busybox/config/networking/Config.in
621 source package/busybox/config/printutils/Config.in
622 source package/busybox/config/mailutils/Config.in
623 source package/busybox/config/procps/Config.in
624 source package/busybox/config/runit/Config.in
625 source package/busybox/config/selinux/Config.in
626 source package/busybox/config/shell/Config.in
627 source package/busybox/config/sysklogd/Config.in