blob: b23ec2ce1c7e1436e29f12f85913e68cc788c421 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6mainmenu "BusyBox Configuration"
7
Eric Andersen068b6b02002-12-13 22:53:28 +00008config HAVE_DOT_CONFIG
9 bool
10 default y
11
Rob Landley9dc69132006-03-13 02:52:23 +000012menu "Busybox Settings"
Mike Frysinger72d59db2006-03-10 23:17:17 +000013
Eric Andersen23b51462002-12-05 21:25:20 +000014menu "General Configuration"
15
Eric Andersenc9f20d92002-12-05 08:41:41 +000016choice
17 prompt "Buffer allocation policy"
Eric Andersen72d8e442003-08-05 02:18:25 +000018 default CONFIG_FEATURE_BUFFERS_USE_MALLOC
Eric Andersenc9f20d92002-12-05 08:41:41 +000019 help
Eric Andersen53601822002-12-05 21:12:42 +000020 There are 3 ways BusyBox can handle buffer allocations:
21 - Use malloc. This costs code size for the call to xmalloc.
22 - Put them on stack. For some very small machines with limited stack
23 space, this can be deadly. For most folks, this works just fine.
24 - Put them in BSS. This works beautifully for computers with a real
25 MMU (and OS support), but wastes runtime RAM for uCLinux. This
26 behavior was the only one available for BusyBox versions 0.48 and
27 earlier.
Eric Andersenc9f20d92002-12-05 08:41:41 +000028
29config CONFIG_FEATURE_BUFFERS_USE_MALLOC
30 bool "Allocate with Malloc"
31
32config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
33 bool "Allocate on the Stack"
34
35config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
36 bool "Allocate in the .bss section"
37
38endchoice
39
Bernhard Reutner-Fischer81901a02006-03-31 18:43:55 +000040config CONFIG_SHOW_USAGE
41 bool "Show terse applet usage messages"
42 default y
43 help
44 All BusyBox applets will show help messages when invoked with
45 wrong arguments. You can turn off printing these terse usage
46 messages if you say no here.
47 This will save you up to 7k.
48
Eric Andersenc9f20d92002-12-05 08:41:41 +000049config CONFIG_FEATURE_VERBOSE_USAGE
50 bool "Show verbose applet usage messages"
51 default n
Bernhard Reutner-Fischer81901a02006-03-31 18:43:55 +000052 select CONFIG_SHOW_USAGE
Eric Andersenc9f20d92002-12-05 08:41:41 +000053 help
Eric Andersen53601822002-12-05 21:12:42 +000054 All BusyBox applets will show more verbose help messages when
Eric Andersen88c916b2003-10-22 09:58:56 +000055 busybox is invoked with --help. This will add a lot of text to the
Eric Andersen53601822002-12-05 21:12:42 +000056 busybox binary. In the default configuration, this will add about
57 13k, but it can add much more depending on your configuration.
Eric Andersenc9f20d92002-12-05 08:41:41 +000058
59config CONFIG_FEATURE_INSTALLER
60 bool "Support --install [-s] to install applet links at runtime"
61 default n
62 help
Eric Andersen53601822002-12-05 21:12:42 +000063 Enable 'busybox --install [-s]' support. This will allow you to use
64 busybox at runtime to create hard links or symlinks for all the
65 applets that are compiled into busybox. This feature requires the
66 /proc filesystem.
Eric Andersenc9f20d92002-12-05 08:41:41 +000067
68config CONFIG_LOCALE_SUPPORT
69 bool "Enable locale support (system needs locale for this to work)"
70 default n
71 help
Eric Andersen88c916b2003-10-22 09:58:56 +000072 Enable this if your system has locale support and you would like
Eric Andersen53601822002-12-05 21:12:42 +000073 busybox to support locale settings.
Eric Andersenc9f20d92002-12-05 08:41:41 +000074
75config CONFIG_FEATURE_DEVFS
76 bool "Support for devfs"
77 default n
78 help
Eric Andersen53601822002-12-05 21:12:42 +000079 Enable if you want BusyBox to work with devfs.
Eric Andersenc9f20d92002-12-05 08:41:41 +000080
81config CONFIG_FEATURE_DEVPTS
82 bool "Use the devpts filesystem for Unix98 PTYs"
83 default y if CONFIG_FEATURE_DEVFS
84 help
Eric Andersen53601822002-12-05 21:12:42 +000085 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
86 busybox will use /dev/ptmx for the master side of the pseudoterminal
87 and /dev/pts/<number> for the slave side. Otherwise, BSD style
88 /dev/ttyp<number> will be used. To use this option, you should have
89 devpts or devfs mounted.
Eric Andersenc9f20d92002-12-05 08:41:41 +000090
91config CONFIG_FEATURE_CLEAN_UP
92 bool "Clean up all memory before exiting (usually not needed)"
93 default n
94 help
Rob Landley1ab4c3d2006-02-08 18:50:17 +000095 As a size optimization, busybox normally exits without explicitly
96 freeing dynamically allocated memory or closing files. This saves
97 space since the OS will clean up for us, but it can confuse debuggers
98 like valgrind, which report tons of memory and resource leaks.
99
100 Don't enable this unless you have a really good reason to clean
Eric Andersene5642112003-07-14 19:37:08 +0000101 things up manually.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000102
103config CONFIG_FEATURE_SUID
104 bool "Support for SUID/SGID handling"
105 default n
106 help
Eric Andersene5272072003-07-22 22:15:21 +0000107 Support SUID and SGID binaries.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000108
109config CONFIG_FEATURE_SUID_CONFIG
110 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
Eric Andersen5043ea12005-06-23 19:15:40 +0000111 default n if CONFIG_FEATURE_SUID
Eric Andersenc9f20d92002-12-05 08:41:41 +0000112 depends on CONFIG_FEATURE_SUID
113 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000114 Allow the SUID / SGID state of an applet to be determined runtime by
Eric Andersene5272072003-07-22 22:15:21 +0000115 checking /etc/busybox.conf. The format of this file is as follows:
116
117 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
Eric Andersen5043ea12005-06-23 19:15:40 +0000118
Eric Andersene5272072003-07-22 22:15:21 +0000119 An example might help:
120
121 [SUID]
122 su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
123 su = ssx # exactly the same
124
125 mount = sx- root.disk # applet mount can be run by root and members of group disk
126 # and runs with euid=0
127
128 cp = --- # disable applet cp for everyone
129
Rob Landleyfdc4c202005-04-29 19:48:29 +0000130 The file has to be owned by user root, group root and has to be
131 writeable only by root:
132 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
133 The busybox executable has to be owned by user root, group
134 root and has to be setuid root for this to work:
135 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
136
Eric Andersene5272072003-07-22 22:15:21 +0000137 Robert 'sandman' Griebl has more information here:
138 <url: http://www.softforge.de/bb/suid.html >.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000139
140config CONFIG_FEATURE_SUID_CONFIG_QUIET
141 bool "Suppress warning message if /etc/busybox.conf is not readable"
142 default n
143 depends on CONFIG_FEATURE_SUID_CONFIG
144 help
Eric Andersene5272072003-07-22 22:15:21 +0000145 /etc/busybox.conf should be readable by the user needing the SUID, check
146 this option to avoid users to be notified about missing permissions.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000147
Eric Andersen9e480452003-07-03 10:07:04 +0000148config CONFIG_SELINUX
149 bool "Support NSA Security Enhanced Linux"
150 default n
151 help
Rob Landley24b0a952006-03-29 15:35:23 +0000152 Enable support for SELinux in applets ls, ps, and id. Also provide
153 the option of compiling in SELinux applets.
Eric Andersen9e480452003-07-03 10:07:04 +0000154
Rob Landley24b0a952006-03-29 15:35:23 +0000155 If you do not have a complete SELinux userland installed, this stuff
156 will not compile. Go visit
Eric Andersen31d898f2004-02-05 00:18:26 +0000157 http://www.nsa.gov/selinux/index.html
Rob Landley24b0a952006-03-29 15:35:23 +0000158 to download the necessary stuff to allow busybox to compile with
159 this option enabled. Specifially, libselinux 1.28 or better is
160 directly required by busybox. If the installation is located in a
161 non-standard directory, provide it by invoking make as follows:
162 CFLAGS=-I<libselinux-include-path> \
163 LDFLAGS=-L<libselinux-lib-path> \
164 make
Eric Andersen31d898f2004-02-05 00:18:26 +0000165
166 Most people will leave this set to 'N'.
167
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168endmenu
169
170menu 'Build Options'
171
Eric Andersene5272072003-07-22 22:15:21 +0000172config CONFIG_STATIC
Eric Andersenc9f20d92002-12-05 08:41:41 +0000173 bool "Build BusyBox as a static binary (no shared libs)"
174 default n
175 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000176 If you want to build a static BusyBox binary, which does not
177 use or require any shared libraries, then enable this option.
Eric Andersen88c916b2003-10-22 09:58:56 +0000178 This can cause BusyBox to be considerably larger, so you should
Eric Andersene5272072003-07-22 22:15:21 +0000179 leave this option false unless you have a good reason (i.e.
180 your target platform does not support shared libraries, or
181 you are building an initrd which doesn't need anything but
182 BusyBox, etc).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000183
Eric Andersene5272072003-07-22 22:15:21 +0000184 Most people will leave this set to 'N'.
185
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000186config CONFIG_BUILD_LIBBUSYBOX
187 bool "Build shared libbusybox"
Rob Landley8ad70872006-04-10 17:28:27 +0000188 default y
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000189 help
190 Build a shared library libbusybox.so which contains all
191 libraries used inside busybox.
192
193config CONFIG_FEATURE_FULL_LIBBUSYBOX
194 bool "Feature-complete libbusybox"
195 default n if !CONFIG_FEATURE_SHARED_BUSYBOX
196 depends on CONFIG_BUILD_LIBBUSYBOX
197 help
198 Build a libbusybox with the complete feature-set, disregarding
199 the actually selected config.
200
201 Normally, libbusybox will only contain the features which are
202 used by busybox itself. If you plan to write a separate
203 standalone application which uses libbusybox say 'Y'.
204
Rob Landley9e275e32006-01-31 03:45:26 +0000205 Note: libbusybox is GPL, not LGPL, and exports no stable API that
206 might act as a copyright barrier. We can and will modify the
207 exported function set between releases (even minor version number
208 changes), and happily break out-of-tree features.
209
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000210 Say 'N' if in doubt.
211
212config CONFIG_FEATURE_SHARED_BUSYBOX
213 bool "Use shared libbusybox for busybox"
214 default y if CONFIG_BUILD_LIBBUSYBOX
215 depends on !CONFIG_STATIC && CONFIG_BUILD_LIBBUSYBOX
216 help
217 Use libbusybox.so also for busybox itself.
218 You need to have a working dynamic linker to use this variant.
219
Eric Andersene5272072003-07-22 22:15:21 +0000220config CONFIG_LFS
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000221 bool "Build with Large File Support (for accessing files > 2 GB)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000222 default n
Eric Andersenf086ed82004-05-25 11:30:22 +0000223 select FDISK_SUPPORT_LARGE_DISKS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000224 help
225 If you want to build BusyBox with large file support, then enable
226 this option. This will have no effect if your kernel or your C
227 library lacks large file support for large files. Some of the
228 programs that can benefit from large file support include dd, gzip,
229 cp, mount, tar, and many others. If you want to access files larger
230 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
231
232config USING_CROSS_COMPILER
233 bool "Do you want to build BusyBox with a Cross Compiler?"
234 default n
235 help
236 Do you want to build BusyBox with a Cross Compiler? If so,
237 then enable this option. Otherwise leave it set to 'N'.
238
239config CROSS_COMPILER_PREFIX
240 string "Cross Compiler prefix"
241 default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
242 depends on USING_CROSS_COMPILER
243 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000244 If you want to build BusyBox with a cross compiler, then you
Eric Andersenc9f20d92002-12-05 08:41:41 +0000245 will need to set this to the cross-compiler prefix. For example,
246 if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
247 then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
248 which will ensure the correct compiler is used.
249
250config EXTRA_CFLAGS_OPTIONS
251 string "Any extra CFLAGS options for the compiler?"
252 default ""
253 help
254 Do you want to pass any extra CFLAGS options to the compiler as
255 you build BusyBox? If so, this is the option for you... For example,
256 if you want to add some simple compiler switches (like -march=i686),
257 or check for warnings using -Werror, just those options here.
258
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000259config CONFIG_BUILD_AT_ONCE
260 bool "Compile all sources at once"
261 default n
262 help
263 Normally each source-file is compiled with one invocation of
264 the compiler.
265 If you set this option, all sources are compiled at once.
266 This gives the compiler more opportunities to optimize which can
267 result in smaller and/or faster binaries.
268
269 Setting this option will consume alot of memory, e.g. if you
270 enable all applets with all features, gcc uses more than 300MB
271 RAM during compilation of busybox.
272
273 This option is most likely only beneficial for newer compilers
274 such as gcc-4.1 and above.
275
276 Say 'N' unless you know what you are doing.
277
Eric Andersenc9f20d92002-12-05 08:41:41 +0000278endmenu
279
Eric Andersenc9f20d92002-12-05 08:41:41 +0000280menu 'Debugging Options'
281
Eric Andersene5272072003-07-22 22:15:21 +0000282config CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000283 bool "Build BusyBox with Debugging symbols"
284 default n
285 help
286 Say Y here if you wish to compile BusyBox with debugging symbols.
287 This will allow you to use a debugger to examine BusyBox internals
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000288 while applets are running. This increases the size of the binary
Eric Andersenc9f20d92002-12-05 08:41:41 +0000289 considerably and should only be used when doing development.
290 If you are doing development and want to debug BusyBox, answer Y.
291
Eric Andersenf086ed82004-05-25 11:30:22 +0000292 Most people should answer N.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000293
Eric Andersenf086ed82004-05-25 11:30:22 +0000294choice
295 prompt "Additional debugging library"
296 default CONFIG_NO_DEBUG_LIB
297 depends on CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000298 help
Eric Andersenf086ed82004-05-25 11:30:22 +0000299 Using an additional debugging library will make BusyBox become
300 considerable larger and will cause it to run more slowly. You
301 should always leave this option disabled for production use.
302
303 dmalloc support:
304 ----------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000305 This enables compiling with dmalloc ( http://dmalloc.com/ )
306 which is an excellent public domain mem leak and malloc problem
307 detector. To enable dmalloc, before running busybox you will
308 want to properly set your environment, for example:
309 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
310 The 'debug=' value is generated using the following command
311 dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
312 -p check-fence -p check-heap -p check-lists -p check-blank \
313 -p check-funcs -p realloc-copy -p allow-free-null
314
Eric Andersenf086ed82004-05-25 11:30:22 +0000315 Electric-fence support:
316 -----------------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000317 This enables compiling with Electric-fence support. Electric
Eric Andersen88c916b2003-10-22 09:58:56 +0000318 fence is another very useful malloc debugging library which uses
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000319 your computer's virtual memory hardware to detect illegal memory
320 accesses. This support will make BusyBox be considerable larger
321 and run slower, so you should leave this option disabled unless
Eric Andersenc9f20d92002-12-05 08:41:41 +0000322 you are hunting a hard to find memory problem.
323
Eric Andersenf086ed82004-05-25 11:30:22 +0000324
325config CONFIG_NO_DEBUG_LIB
326 bool "None"
327
328config CONFIG_DMALLOC
329 bool "Dmalloc"
330
331config CONFIG_EFENCE
332 bool "Electric-fence"
333
334endchoice
335
Rob Landleyf8fd4db2006-01-30 01:30:39 +0000336config CONFIG_DEBUG_YANK_SUSv2
337 bool "Disable obsolete features removed before SUSv3?"
338 default y
339 help
Bernhard Reutner-Fischera1bccc02006-04-02 20:17:55 +0000340 This option will disable backwards compatibility with SuSv2,
Rob Landleyf8fd4db2006-01-30 01:30:39 +0000341 specifically, old-style numeric options ('command -1 <file>')
342 will not be supported in head, tail, and fold. (Note: should
343 yank from renice too.)
Eric Andersenf086ed82004-05-25 11:30:22 +0000344
Eric Andersenc9f20d92002-12-05 08:41:41 +0000345endmenu
Mike Frysinger72d59db2006-03-10 23:17:17 +0000346
347menu 'Installation Options'
348
349config CONFIG_INSTALL_NO_USR
350 bool "Don't use /usr"
351 default n
352 help
353 Disable use of /usr. Don't activate this option if you don't know
354 that you really want this behaviour.
355
356choice
357 prompt "Applets links"
358 default CONFIG_INSTALL_APPLET_SYMLINKS
359 help
360 Choose how you install applets links.
361
362config CONFIG_INSTALL_APPLET_SYMLINKS
363 bool "as soft-links"
364 help
365 Install applets as soft-links to the busybox binary. This needs some
366 free inodes on the filesystem, but might help with filesystem
367 generators that can't cope with hard-links.
368
369config CONFIG_INSTALL_APPLET_HARDLINKS
370 bool "as hard-links"
371 help
372 Install applets as hard-links to the busybox binary. This might count
373 on a filesystem with few inodes.
374
375config CONFIG_INSTALL_APPLET_DONT
376 bool
377 prompt "not installed"
378 depends on CONFIG_FEATURE_INSTALLER || CONFIG_FEATURE_SH_STANDALONE_SHELL
379 help
380 Do not install applets links. Usefull when using the -install feature
381 or a standalone shell for rescue pruposes.
382
383endchoice
384
385config PREFIX
386 string "BusyBox installation prefix"
387 default "./_install"
388 help
389 Define your directory to install BusyBox files/subdirs in.
390
391endmenu
392
393source libbb/Config.in
394
Rob Landley9dc69132006-03-13 02:52:23 +0000395endmenu
396
Mike Frysinger72d59db2006-03-10 23:17:17 +0000397comment "Applets"
398
399source archival/Config.in
400source coreutils/Config.in
401source console-tools/Config.in
402source debianutils/Config.in
403source editors/Config.in
404source findutils/Config.in
405source init/Config.in
406source loginutils/Config.in
407source e2fsprogs/Config.in
408source modutils/Config.in
409source util-linux/Config.in
410source miscutils/Config.in
411source networking/Config.in
412source procps/Config.in
413source shell/Config.in
414source sysklogd/Config.in