2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
7 config BUSYBOX_HAVE_DOT_CONFIG
11 menu "Busybox Settings"
13 menu "General Configuration"
15 config BUSYBOX_CONFIG_NITPICK
16 bool "See lots more (probably unnecessary) configuration options."
19 Some BusyBox applets have more configuration options than anyone
20 will ever care about. To avoid drowining people in complexity, most
21 of the applet features that can be set to a sane default value are
22 hidden, unless you hit the above switch.
24 This is better than to telling people to edit the busybox source
25 code, but not by much.
27 See http://en.wikipedia.org/wiki/Fibber_McGee_and_Molly#The_Closet
32 prompt "Buffer allocation policy"
33 default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
34 depends on BUSYBOX_CONFIG_NITPICK
36 There are 3 ways BusyBox can handle buffer allocations:
37 - Use malloc. This costs code size for the call to xmalloc.
38 - Put them on stack. For some very small machines with limited stack
39 space, this can be deadly. For most folks, this works just fine.
40 - Put them in BSS. This works beautifully for computers with a real
41 MMU (and OS support), but wastes runtime RAM for uCLinux. This
42 behavior was the only one available for BusyBox versions 0.48 and
45 config BUSYBOX_CONFIG_FEATURE_BUFFERS_USE_MALLOC
46 bool "Allocate with Malloc"
48 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
49 bool "Allocate on the Stack"
51 config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_IN_BSS
52 bool "Allocate in the .bss section"
56 config BUSYBOX_CONFIG_SHOW_USAGE
57 bool "Show terse applet usage messages"
60 All BusyBox applets will show help messages when invoked with
61 wrong arguments. You can turn off printing these terse usage
62 messages if you say no here.
63 This will save you up to 7k.
65 config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
66 bool "Show verbose applet usage messages"
68 select BUSYBOX_CONFIG_SHOW_USAGE
70 All BusyBox applets will show more verbose help messages when
71 busybox is invoked with --help. This will add a lot of text to the
72 busybox binary. In the default configuration, this will add about
73 13k, but it can add much more depending on your configuration.
75 config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
76 bool "Store applet usage messages in compressed form"
78 depends on BUSYBOX_CONFIG_SHOW_USAGE && BUSYBOX_CONFIG_NITPICK
80 Store usage messages in compressed form, uncompress them on-the-fly
81 when <applet> --help is called.
83 If you have a really tiny busybox with few applets enabled (and
84 bunzip2 isn't one of them), the overhead of the decompressor might
85 be noticeable. Also, if you run executables directly from ROM
86 and have very little memory, this might not be a win. Otherwise,
87 you probably want this.
89 config BUSYBOX_CONFIG_FEATURE_INSTALLER
90 bool "Support --install [-s] to install applet links at runtime"
93 Enable 'busybox --install [-s]' support. This will allow you to use
94 busybox at runtime to create hard links or symlinks for all the
95 applets that are compiled into busybox. This feature requires the
98 config BUSYBOX_CONFIG_LOCALE_SUPPORT
99 bool "Enable locale support (system needs locale for this to work)"
102 Enable this if your system has locale support and you would like
103 busybox to support locale settings.
105 config BUSYBOX_CONFIG_GETOPT_LONG
108 # bool "Enable support for --long-options"
111 # Enable this if you want busybox applets to use the gnu --long-option
112 # style, in addition to single character -a -b -c style options.
114 config BUSYBOX_CONFIG_FEATURE_DEVPTS
115 bool "Use the devpts filesystem for Unix98 PTYs"
118 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
119 busybox will use /dev/ptmx for the master side of the pseudoterminal
120 and /dev/pts/<number> for the slave side. Otherwise, BSD style
121 /dev/ttyp<number> will be used. To use this option, you should have
124 config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
125 bool "Clean up all memory before exiting (usually not needed)"
127 depends on BUSYBOX_CONFIG_NITPICK
129 As a size optimization, busybox normally exits without explicitly
130 freeing dynamically allocated memory or closing files. This saves
131 space since the OS will clean up for us, but it can confuse debuggers
132 like valgrind, which report tons of memory and resource leaks.
134 Don't enable this unless you have a really good reason to clean
137 config BUSYBOX_CONFIG_FEATURE_SUID
138 bool "Support for SUID/SGID handling"
141 With this option you can install the busybox binary belonging
142 to root with the suid bit set, and it'll and it'll automatically drop
143 priviledges for applets that don't need root access.
145 If you're really paranoid and don't want to do this, build two
146 busybox binaries with different applets in them (and the appropriate
147 symlinks pointing to each binary), and only set the suid bit on the
148 one that needs it. The applets currently marked to need the suid bit
149 are login, passwd, su, ping, traceroute, crontab, dnsd, ipcrm, ipcs,
152 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
153 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
154 default n if BUSYBOX_CONFIG_FEATURE_SUID
155 depends on BUSYBOX_CONFIG_FEATURE_SUID
157 Allow the SUID / SGID state of an applet to be determined at runtime
158 by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
159 The format of this file is as follows:
161 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
163 An example might help:
166 su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
167 su = ssx # exactly the same
169 mount = sx- root.disk # applet mount can be run by root and members of group disk
170 # and runs with euid=0
172 cp = --- # disable applet cp for everyone
174 The file has to be owned by user root, group root and has to be
175 writeable only by root:
176 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
177 The busybox executable has to be owned by user root, group
178 root and has to be setuid root for this to work:
179 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
181 Robert 'sandman' Griebl has more information here:
182 <url: http://www.softforge.de/bb/suid.html >.
184 config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET
185 bool "Suppress warning message if /etc/busybox.conf is not readable"
187 depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
189 /etc/busybox.conf should be readable by the user needing the SUID, check
190 this option to avoid users to be notified about missing permissions.
192 config BUSYBOX_CONFIG_SELINUX
193 bool "Support NSA Security Enhanced Linux"
196 Enable support for SELinux in applets ls, ps, and id. Also provide
197 the option of compiling in SELinux applets.
199 If you do not have a complete SELinux userland installed, this stuff
200 will not compile. Go visit
201 http://www.nsa.gov/selinux/index.html
202 to download the necessary stuff to allow busybox to compile with
203 this option enabled. Specifially, libselinux 1.28 or better is
204 directly required by busybox. If the installation is located in a
205 non-standard directory, provide it by invoking make as follows:
206 CFLAGS=-I<libselinux-include-path> \
207 LDFLAGS=-L<libselinux-lib-path> \
210 Most people will leave this set to 'N'.
212 config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
213 string "Path to BusyBox executable"
214 default "/proc/self/exe"
216 When Busybox applets need to run other busybox applets, BusyBox
217 sometimes needs to exec() itself. When the /proc filesystem is
218 mounted, /proc/self/exe always points to the currently running
219 executable. If you haven't got /proc, set this to wherever you
220 want to run BusyBox from.
226 config BUSYBOX_CONFIG_STATIC
227 bool "Build BusyBox as a static binary (no shared libs)"
230 If you want to build a static BusyBox binary, which does not
231 use or require any shared libraries, then enable this option.
232 This can cause BusyBox to be considerably larger, so you should
233 leave this option false unless you have a good reason (i.e.
234 your target platform does not support shared libraries, or
235 you are building an initrd which doesn't need anything but
238 Most people will leave this set to 'N'.
240 config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
241 bool "Build shared libbusybox"
244 Build a shared library libbusybox.so which contains all
245 libraries used inside busybox.
247 This is an experimental feature intended to support the upcoming
248 "make standalone" mode. Enabling it against the one big busybox
249 binary serves no purpose (and increases the size). You should
250 almost certainly say "no" to this right now.
252 config BUSYBOX_CONFIG_FEATURE_FULL_LIBBUSYBOX
253 bool "Feature-complete libbusybox"
254 default n if !CONFIG_FEATURE_SHARED_BUSYBOX
255 depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
257 Build a libbusybox with the complete feature-set, disregarding
258 the actually selected config.
260 Normally, libbusybox will only contain the features which are
261 used by busybox itself. If you plan to write a separate
262 standalone application which uses libbusybox say 'Y'.
264 Note: libbusybox is GPL, not LGPL, and exports no stable API that
265 might act as a copyright barrier. We can and will modify the
266 exported function set between releases (even minor version number
267 changes), and happily break out-of-tree features.
271 config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX
272 bool "Use shared libbusybox for busybox"
273 default n if BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
274 depends on !CONFIG_STATIC && BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
276 Use libbusybox.so also for busybox itself.
277 You need to have a working dynamic linker to use this variant.
279 config BUSYBOX_CONFIG_LFS
282 select BUSYBOX_FDISK_SUPPORT_LARGE_DISKS
284 If you want to build BusyBox with large file support, then enable
285 this option. This will have no effect if your kernel or your C
286 library lacks large file support for large files. Some of the
287 programs that can benefit from large file support include dd, gzip,
288 cp, mount, tar, and many others. If you want to access files larger
289 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
291 config BUSYBOX_USING_CROSS_COMPILER
295 Do you want to build BusyBox with a Cross Compiler? If so,
296 then enable this option. Otherwise leave it set to 'N'.
298 config BUSYBOX_CROSS_COMPILER_PREFIX
300 default "mipsel-uclibc-"
301 depends on BUSYBOX_USING_CROSS_COMPILER
303 If you want to build BusyBox with a cross compiler, then you
304 will need to set this to the cross-compiler prefix. For example,
305 if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
306 then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
307 which will ensure the correct compiler is used.
309 config BUSYBOX_CONFIG_BUILD_AT_ONCE
310 bool "Compile all sources at once"
313 Normally each source-file is compiled with one invocation of
315 If you set this option, all sources are compiled at once.
316 This gives the compiler more opportunities to optimize which can
317 result in smaller and/or faster binaries.
319 Setting this option will consume alot of memory, e.g. if you
320 enable all applets with all features, gcc uses more than 300MB
321 RAM during compilation of busybox.
323 This option is most likely only beneficial for newer compilers
324 such as gcc-4.1 and above.
326 Say 'N' unless you know what you are doing.
330 menu 'Debugging Options'
332 config BUSYBOX_CONFIG_DEBUG
333 bool "Build BusyBox with extra Debugging symbols"
336 Say Y here if you wish to examine BusyBox internals while applets are
337 running. This increases the size of the binary considerably, and
338 should only be used when doing development. If you are doing
339 development and want to debug BusyBox, answer Y.
341 Most people should answer N.
343 config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
344 bool "Disable compiler optimizations."
346 depends on BUSYBOX_CONFIG_DEBUG
348 The compiler's optimization of source code can eliminate and reorder
349 code, resulting in an executable that's hard to understand when
350 stepping through it with a debugger. This switches it off, resulting
351 in a much bigger executable that more closely matches the source
355 prompt "Additional debugging library"
356 default BUSYBOX_CONFIG_NO_DEBUG_LIB
357 depends on BUSYBOX_CONFIG_DEBUG
359 Using an additional debugging library will make BusyBox become
360 considerable larger and will cause it to run more slowly. You
361 should always leave this option disabled for production use.
365 This enables compiling with dmalloc ( http://dmalloc.com/ )
366 which is an excellent public domain mem leak and malloc problem
367 detector. To enable dmalloc, before running busybox you will
368 want to properly set your environment, for example:
369 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
370 The 'debug=' value is generated using the following command
371 dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
372 -p check-fence -p check-heap -p check-lists -p check-blank \
373 -p check-funcs -p realloc-copy -p allow-free-null
375 Electric-fence support:
376 -----------------------
377 This enables compiling with Electric-fence support. Electric
378 fence is another very useful malloc debugging library which uses
379 your computer's virtual memory hardware to detect illegal memory
380 accesses. This support will make BusyBox be considerable larger
381 and run slower, so you should leave this option disabled unless
382 you are hunting a hard to find memory problem.
385 config BUSYBOX_CONFIG_NO_DEBUG_LIB
388 config BUSYBOX_CONFIG_DMALLOC
391 config BUSYBOX_CONFIG_EFENCE
392 bool "Electric-fence"
396 config BUSYBOX_CONFIG_DEBUG_YANK_SUSv2
397 bool "Disable obsolete features removed before SUSv3?"
400 This option will disable backwards compatibility with SuSv2,
401 specifically, old-style numeric options ('command -1 <file>')
402 will not be supported in head, tail, and fold. (Note: should
403 yank from renice too.)
407 menu 'Installation Options'
409 config BUSYBOX_CONFIG_INSTALL_NO_USR
410 bool "Don't use /usr"
413 Disable use of /usr. Don't activate this option if you don't know
414 that you really want this behaviour.
417 prompt "Applets links"
418 default BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
420 Choose how you install applets links.
422 config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
425 Install applets as soft-links to the busybox binary. This needs some
426 free inodes on the filesystem, but might help with filesystem
427 generators that can't cope with hard-links.
429 config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS
432 Install applets as hard-links to the busybox binary. This might count
433 on a filesystem with few inodes.
435 config BUSYBOX_CONFIG_INSTALL_APPLET_DONT
437 prompt "not installed"
438 depends on BUSYBOX_CONFIG_FEATURE_INSTALLER || BUSYBOX_CONFIG_FEATURE_SH_STANDALONE_SHELL
440 Do not install applets links. Usefull when using the -install feature
441 or a standalone shell for rescue pruposes.
445 config BUSYBOX_PREFIX
449 Define your directory to install BusyBox files/subdirs in.
453 source package/busybox/config/libbb/Config.in
459 source package/busybox/config/archival/Config.in
460 source package/busybox/config/coreutils/Config.in
461 source package/busybox/config/console-tools/Config.in
462 source package/busybox/config/debianutils/Config.in
463 source package/busybox/config/editors/Config.in
464 source package/busybox/config/findutils/Config.in
465 source package/busybox/config/init/Config.in
466 source package/busybox/config/loginutils/Config.in
467 source package/busybox/config/e2fsprogs/Config.in
468 source package/busybox/config/modutils/Config.in
469 source package/busybox/config/util-linux/Config.in
470 source package/busybox/config/miscutils/Config.in
471 source package/busybox/config/networking/Config.in
472 source package/busybox/config/procps/Config.in
473 source package/busybox/config/shell/Config.in
474 source package/busybox/config/sysklogd/Config.in