blob: 6c9e0c5de84655c66998b5deff22f792b6c4696d [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
Mike Frysinger72d59db2006-03-10 23:17:17 +000012comment "Busybox Settings"
13
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
40config CONFIG_FEATURE_VERBOSE_USAGE
41 bool "Show verbose applet usage messages"
42 default n
43 help
Eric Andersen53601822002-12-05 21:12:42 +000044 All BusyBox applets will show more verbose help messages when
Eric Andersen88c916b2003-10-22 09:58:56 +000045 busybox is invoked with --help. This will add a lot of text to the
Eric Andersen53601822002-12-05 21:12:42 +000046 busybox binary. In the default configuration, this will add about
47 13k, but it can add much more depending on your configuration.
Eric Andersenc9f20d92002-12-05 08:41:41 +000048
49config CONFIG_FEATURE_INSTALLER
50 bool "Support --install [-s] to install applet links at runtime"
51 default n
52 help
Eric Andersen53601822002-12-05 21:12:42 +000053 Enable 'busybox --install [-s]' support. This will allow you to use
54 busybox at runtime to create hard links or symlinks for all the
55 applets that are compiled into busybox. This feature requires the
56 /proc filesystem.
Eric Andersenc9f20d92002-12-05 08:41:41 +000057
58config CONFIG_LOCALE_SUPPORT
59 bool "Enable locale support (system needs locale for this to work)"
60 default n
61 help
Eric Andersen88c916b2003-10-22 09:58:56 +000062 Enable this if your system has locale support and you would like
Eric Andersen53601822002-12-05 21:12:42 +000063 busybox to support locale settings.
Eric Andersenc9f20d92002-12-05 08:41:41 +000064
65config CONFIG_FEATURE_DEVFS
66 bool "Support for devfs"
67 default n
68 help
Eric Andersen53601822002-12-05 21:12:42 +000069 Enable if you want BusyBox to work with devfs.
Eric Andersenc9f20d92002-12-05 08:41:41 +000070
71config CONFIG_FEATURE_DEVPTS
72 bool "Use the devpts filesystem for Unix98 PTYs"
73 default y if CONFIG_FEATURE_DEVFS
74 help
Eric Andersen53601822002-12-05 21:12:42 +000075 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
76 busybox will use /dev/ptmx for the master side of the pseudoterminal
77 and /dev/pts/<number> for the slave side. Otherwise, BSD style
78 /dev/ttyp<number> will be used. To use this option, you should have
79 devpts or devfs mounted.
Eric Andersenc9f20d92002-12-05 08:41:41 +000080
81config CONFIG_FEATURE_CLEAN_UP
82 bool "Clean up all memory before exiting (usually not needed)"
83 default n
84 help
Rob Landley1ab4c3d2006-02-08 18:50:17 +000085 As a size optimization, busybox normally exits without explicitly
86 freeing dynamically allocated memory or closing files. This saves
87 space since the OS will clean up for us, but it can confuse debuggers
88 like valgrind, which report tons of memory and resource leaks.
89
90 Don't enable this unless you have a really good reason to clean
Eric Andersene5642112003-07-14 19:37:08 +000091 things up manually.
Eric Andersenc9f20d92002-12-05 08:41:41 +000092
93config CONFIG_FEATURE_SUID
94 bool "Support for SUID/SGID handling"
95 default n
96 help
Eric Andersene5272072003-07-22 22:15:21 +000097 Support SUID and SGID binaries.
Eric Andersenc9f20d92002-12-05 08:41:41 +000098
99config CONFIG_FEATURE_SUID_CONFIG
100 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
Eric Andersen5043ea12005-06-23 19:15:40 +0000101 default n if CONFIG_FEATURE_SUID
Eric Andersenc9f20d92002-12-05 08:41:41 +0000102 depends on CONFIG_FEATURE_SUID
103 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000104 Allow the SUID / SGID state of an applet to be determined runtime by
Eric Andersene5272072003-07-22 22:15:21 +0000105 checking /etc/busybox.conf. The format of this file is as follows:
106
107 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
Eric Andersen5043ea12005-06-23 19:15:40 +0000108
Eric Andersene5272072003-07-22 22:15:21 +0000109 An example might help:
110
111 [SUID]
112 su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
113 su = ssx # exactly the same
114
115 mount = sx- root.disk # applet mount can be run by root and members of group disk
116 # and runs with euid=0
117
118 cp = --- # disable applet cp for everyone
119
Rob Landleyfdc4c202005-04-29 19:48:29 +0000120 The file has to be owned by user root, group root and has to be
121 writeable only by root:
122 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
123 The busybox executable has to be owned by user root, group
124 root and has to be setuid root for this to work:
125 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
126
Eric Andersene5272072003-07-22 22:15:21 +0000127 Robert 'sandman' Griebl has more information here:
128 <url: http://www.softforge.de/bb/suid.html >.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000129
130config CONFIG_FEATURE_SUID_CONFIG_QUIET
131 bool "Suppress warning message if /etc/busybox.conf is not readable"
132 default n
133 depends on CONFIG_FEATURE_SUID_CONFIG
134 help
Eric Andersene5272072003-07-22 22:15:21 +0000135 /etc/busybox.conf should be readable by the user needing the SUID, check
136 this option to avoid users to be notified about missing permissions.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000137
Eric Andersen9e480452003-07-03 10:07:04 +0000138config CONFIG_SELINUX
139 bool "Support NSA Security Enhanced Linux"
140 default n
141 help
142 Enable support for SE Linux in applets ls, ps, and id. Also provide
143 the option of compiling in SE Linux applets.
144
Eric Andersen31d898f2004-02-05 00:18:26 +0000145 If you do not have a complete SE Linux Full Userland installed, this
146 stuff will not compile. Go visit
147 http://www.nsa.gov/selinux/index.html
148 to download the necessary stuff to allow busybox to compile with this
149 option enabled.
150
151 Most people will leave this set to 'N'.
152
Eric Andersenc9f20d92002-12-05 08:41:41 +0000153endmenu
154
155menu 'Build Options'
156
Eric Andersene5272072003-07-22 22:15:21 +0000157config CONFIG_STATIC
Eric Andersenc9f20d92002-12-05 08:41:41 +0000158 bool "Build BusyBox as a static binary (no shared libs)"
159 default n
160 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000161 If you want to build a static BusyBox binary, which does not
162 use or require any shared libraries, then enable this option.
Eric Andersen88c916b2003-10-22 09:58:56 +0000163 This can cause BusyBox to be considerably larger, so you should
Eric Andersene5272072003-07-22 22:15:21 +0000164 leave this option false unless you have a good reason (i.e.
165 your target platform does not support shared libraries, or
166 you are building an initrd which doesn't need anything but
167 BusyBox, etc).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168
Eric Andersene5272072003-07-22 22:15:21 +0000169 Most people will leave this set to 'N'.
170
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000171config CONFIG_BUILD_LIBBUSYBOX
172 bool "Build shared libbusybox"
173 default y
174 help
175 Build a shared library libbusybox.so which contains all
176 libraries used inside busybox.
177
178config CONFIG_FEATURE_FULL_LIBBUSYBOX
179 bool "Feature-complete libbusybox"
180 default n if !CONFIG_FEATURE_SHARED_BUSYBOX
181 depends on CONFIG_BUILD_LIBBUSYBOX
182 help
183 Build a libbusybox with the complete feature-set, disregarding
184 the actually selected config.
185
186 Normally, libbusybox will only contain the features which are
187 used by busybox itself. If you plan to write a separate
188 standalone application which uses libbusybox say 'Y'.
189
Rob Landley9e275e32006-01-31 03:45:26 +0000190 Note: libbusybox is GPL, not LGPL, and exports no stable API that
191 might act as a copyright barrier. We can and will modify the
192 exported function set between releases (even minor version number
193 changes), and happily break out-of-tree features.
194
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000195 Say 'N' if in doubt.
196
197config CONFIG_FEATURE_SHARED_BUSYBOX
198 bool "Use shared libbusybox for busybox"
199 default y if CONFIG_BUILD_LIBBUSYBOX
200 depends on !CONFIG_STATIC && CONFIG_BUILD_LIBBUSYBOX
201 help
202 Use libbusybox.so also for busybox itself.
203 You need to have a working dynamic linker to use this variant.
204
Eric Andersene5272072003-07-22 22:15:21 +0000205config CONFIG_LFS
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000206 bool "Build with Large File Support (for accessing files > 2 GB)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000207 default n
Eric Andersenf086ed82004-05-25 11:30:22 +0000208 select FDISK_SUPPORT_LARGE_DISKS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000209 help
210 If you want to build BusyBox with large file support, then enable
211 this option. This will have no effect if your kernel or your C
212 library lacks large file support for large files. Some of the
213 programs that can benefit from large file support include dd, gzip,
214 cp, mount, tar, and many others. If you want to access files larger
215 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
216
217config USING_CROSS_COMPILER
218 bool "Do you want to build BusyBox with a Cross Compiler?"
219 default n
220 help
221 Do you want to build BusyBox with a Cross Compiler? If so,
222 then enable this option. Otherwise leave it set to 'N'.
223
224config CROSS_COMPILER_PREFIX
225 string "Cross Compiler prefix"
226 default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
227 depends on USING_CROSS_COMPILER
228 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000229 If you want to build BusyBox with a cross compiler, then you
Eric Andersenc9f20d92002-12-05 08:41:41 +0000230 will need to set this to the cross-compiler prefix. For example,
231 if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
232 then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
233 which will ensure the correct compiler is used.
234
235config EXTRA_CFLAGS_OPTIONS
236 string "Any extra CFLAGS options for the compiler?"
237 default ""
238 help
239 Do you want to pass any extra CFLAGS options to the compiler as
240 you build BusyBox? If so, this is the option for you... For example,
241 if you want to add some simple compiler switches (like -march=i686),
242 or check for warnings using -Werror, just those options here.
243
Bernhard Reutner-Fischer2aba3952006-01-24 16:14:14 +0000244config CONFIG_BUILD_AT_ONCE
245 bool "Compile all sources at once"
246 default n
247 help
248 Normally each source-file is compiled with one invocation of
249 the compiler.
250 If you set this option, all sources are compiled at once.
251 This gives the compiler more opportunities to optimize which can
252 result in smaller and/or faster binaries.
253
254 Setting this option will consume alot of memory, e.g. if you
255 enable all applets with all features, gcc uses more than 300MB
256 RAM during compilation of busybox.
257
258 This option is most likely only beneficial for newer compilers
259 such as gcc-4.1 and above.
260
261 Say 'N' unless you know what you are doing.
262
Eric Andersenc9f20d92002-12-05 08:41:41 +0000263endmenu
264
Eric Andersenc9f20d92002-12-05 08:41:41 +0000265menu 'Debugging Options'
266
Eric Andersene5272072003-07-22 22:15:21 +0000267config CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000268 bool "Build BusyBox with Debugging symbols"
269 default n
270 help
271 Say Y here if you wish to compile BusyBox with debugging symbols.
272 This will allow you to use a debugger to examine BusyBox internals
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000273 while applets are running. This increases the size of the binary
Eric Andersenc9f20d92002-12-05 08:41:41 +0000274 considerably and should only be used when doing development.
275 If you are doing development and want to debug BusyBox, answer Y.
276
Eric Andersenf086ed82004-05-25 11:30:22 +0000277 Most people should answer N.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000278
Eric Andersenf086ed82004-05-25 11:30:22 +0000279choice
280 prompt "Additional debugging library"
281 default CONFIG_NO_DEBUG_LIB
282 depends on CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000283 help
Eric Andersenf086ed82004-05-25 11:30:22 +0000284 Using an additional debugging library will make BusyBox become
285 considerable larger and will cause it to run more slowly. You
286 should always leave this option disabled for production use.
287
288 dmalloc support:
289 ----------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000290 This enables compiling with dmalloc ( http://dmalloc.com/ )
291 which is an excellent public domain mem leak and malloc problem
292 detector. To enable dmalloc, before running busybox you will
293 want to properly set your environment, for example:
294 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
295 The 'debug=' value is generated using the following command
296 dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
297 -p check-fence -p check-heap -p check-lists -p check-blank \
298 -p check-funcs -p realloc-copy -p allow-free-null
299
Eric Andersenf086ed82004-05-25 11:30:22 +0000300 Electric-fence support:
301 -----------------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000302 This enables compiling with Electric-fence support. Electric
Eric Andersen88c916b2003-10-22 09:58:56 +0000303 fence is another very useful malloc debugging library which uses
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000304 your computer's virtual memory hardware to detect illegal memory
305 accesses. This support will make BusyBox be considerable larger
306 and run slower, so you should leave this option disabled unless
Eric Andersenc9f20d92002-12-05 08:41:41 +0000307 you are hunting a hard to find memory problem.
308
Eric Andersenf086ed82004-05-25 11:30:22 +0000309
310config CONFIG_NO_DEBUG_LIB
311 bool "None"
312
313config CONFIG_DMALLOC
314 bool "Dmalloc"
315
316config CONFIG_EFENCE
317 bool "Electric-fence"
318
319endchoice
320
Mike Frysingerc70240c2006-03-10 23:20:48 +0000321config CONFIG_STRIP_BINARIES
322 bool "Strip busybox objects"
323 default y if !CONFIG_DEBUG
324 default n if CONFIG_DEBUG
325 help
326 Whether or not we strip the busybox binary and such.
327
Rob Landleyf8fd4db2006-01-30 01:30:39 +0000328config CONFIG_DEBUG_YANK_SUSv2
329 bool "Disable obsolete features removed before SUSv3?"
330 default y
331 help
332 This option will disable backwards compatability with SuSv2,
333 specifically, old-style numeric options ('command -1 <file>')
334 will not be supported in head, tail, and fold. (Note: should
335 yank from renice too.)
Eric Andersenf086ed82004-05-25 11:30:22 +0000336
Eric Andersenc9f20d92002-12-05 08:41:41 +0000337endmenu
Mike Frysinger72d59db2006-03-10 23:17:17 +0000338
339menu 'Installation Options'
340
341config CONFIG_INSTALL_NO_USR
342 bool "Don't use /usr"
343 default n
344 help
345 Disable use of /usr. Don't activate this option if you don't know
346 that you really want this behaviour.
347
348choice
349 prompt "Applets links"
350 default CONFIG_INSTALL_APPLET_SYMLINKS
351 help
352 Choose how you install applets links.
353
354config CONFIG_INSTALL_APPLET_SYMLINKS
355 bool "as soft-links"
356 help
357 Install applets as soft-links to the busybox binary. This needs some
358 free inodes on the filesystem, but might help with filesystem
359 generators that can't cope with hard-links.
360
361config CONFIG_INSTALL_APPLET_HARDLINKS
362 bool "as hard-links"
363 help
364 Install applets as hard-links to the busybox binary. This might count
365 on a filesystem with few inodes.
366
367config CONFIG_INSTALL_APPLET_DONT
368 bool
369 prompt "not installed"
370 depends on CONFIG_FEATURE_INSTALLER || CONFIG_FEATURE_SH_STANDALONE_SHELL
371 help
372 Do not install applets links. Usefull when using the -install feature
373 or a standalone shell for rescue pruposes.
374
375endchoice
376
377config PREFIX
378 string "BusyBox installation prefix"
379 default "./_install"
380 help
381 Define your directory to install BusyBox files/subdirs in.
382
383endmenu
384
385source libbb/Config.in
386
387comment "Applets"
388
389source archival/Config.in
390source coreutils/Config.in
391source console-tools/Config.in
392source debianutils/Config.in
393source editors/Config.in
394source findutils/Config.in
395source init/Config.in
396source loginutils/Config.in
397source e2fsprogs/Config.in
398source modutils/Config.in
399source util-linux/Config.in
400source miscutils/Config.in
401source networking/Config.in
402source procps/Config.in
403source shell/Config.in
404source sysklogd/Config.in