blob: 3501ff767aa3292b5b759f9d93d929bc56805355 [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
Eric Andersen23b51462002-12-05 21:25:20 +000012menu "General Configuration"
13
Eric Andersenc9f20d92002-12-05 08:41:41 +000014choice
15 prompt "Buffer allocation policy"
Eric Andersen72d8e442003-08-05 02:18:25 +000016 default CONFIG_FEATURE_BUFFERS_USE_MALLOC
Eric Andersenc9f20d92002-12-05 08:41:41 +000017 help
Eric Andersen53601822002-12-05 21:12:42 +000018 There are 3 ways BusyBox can handle buffer allocations:
19 - Use malloc. This costs code size for the call to xmalloc.
20 - Put them on stack. For some very small machines with limited stack
21 space, this can be deadly. For most folks, this works just fine.
22 - Put them in BSS. This works beautifully for computers with a real
23 MMU (and OS support), but wastes runtime RAM for uCLinux. This
24 behavior was the only one available for BusyBox versions 0.48 and
25 earlier.
Eric Andersenc9f20d92002-12-05 08:41:41 +000026
27config CONFIG_FEATURE_BUFFERS_USE_MALLOC
28 bool "Allocate with Malloc"
29
30config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
31 bool "Allocate on the Stack"
32
33config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
34 bool "Allocate in the .bss section"
35
36endchoice
37
38config CONFIG_FEATURE_VERBOSE_USAGE
39 bool "Show verbose applet usage messages"
40 default n
41 help
Eric Andersen53601822002-12-05 21:12:42 +000042 All BusyBox applets will show more verbose help messages when
Eric Andersen88c916b2003-10-22 09:58:56 +000043 busybox is invoked with --help. This will add a lot of text to the
Eric Andersen53601822002-12-05 21:12:42 +000044 busybox binary. In the default configuration, this will add about
45 13k, but it can add much more depending on your configuration.
Eric Andersenc9f20d92002-12-05 08:41:41 +000046
47config CONFIG_FEATURE_INSTALLER
48 bool "Support --install [-s] to install applet links at runtime"
49 default n
50 help
Eric Andersen53601822002-12-05 21:12:42 +000051 Enable 'busybox --install [-s]' support. This will allow you to use
52 busybox at runtime to create hard links or symlinks for all the
53 applets that are compiled into busybox. This feature requires the
54 /proc filesystem.
Eric Andersenc9f20d92002-12-05 08:41:41 +000055
56config CONFIG_LOCALE_SUPPORT
57 bool "Enable locale support (system needs locale for this to work)"
58 default n
59 help
Eric Andersen88c916b2003-10-22 09:58:56 +000060 Enable this if your system has locale support and you would like
Eric Andersen53601822002-12-05 21:12:42 +000061 busybox to support locale settings.
Eric Andersenc9f20d92002-12-05 08:41:41 +000062
63config CONFIG_FEATURE_DEVFS
64 bool "Support for devfs"
65 default n
66 help
Eric Andersen53601822002-12-05 21:12:42 +000067 Enable if you want BusyBox to work with devfs.
Eric Andersenc9f20d92002-12-05 08:41:41 +000068
69config CONFIG_FEATURE_DEVPTS
70 bool "Use the devpts filesystem for Unix98 PTYs"
71 default y if CONFIG_FEATURE_DEVFS
72 help
Eric Andersen53601822002-12-05 21:12:42 +000073 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
74 busybox will use /dev/ptmx for the master side of the pseudoterminal
75 and /dev/pts/<number> for the slave side. Otherwise, BSD style
76 /dev/ttyp<number> will be used. To use this option, you should have
77 devpts or devfs mounted.
Eric Andersenc9f20d92002-12-05 08:41:41 +000078
79config CONFIG_FEATURE_CLEAN_UP
80 bool "Clean up all memory before exiting (usually not needed)"
81 default n
82 help
Eric Andersene5642112003-07-14 19:37:08 +000083 As a size optimization, busybox by default does not cleanup memory
84 that is dynamically allocated or close files before exiting. This
85 saves space and is usually not needed since the OS will clean up for
86 us. Don't enable this unless you have a really good reason to clean
87 things up manually.
Eric Andersenc9f20d92002-12-05 08:41:41 +000088
89config CONFIG_FEATURE_SUID
90 bool "Support for SUID/SGID handling"
91 default n
92 help
Eric Andersene5272072003-07-22 22:15:21 +000093 Support SUID and SGID binaries.
Eric Andersenc9f20d92002-12-05 08:41:41 +000094
95config CONFIG_FEATURE_SUID_CONFIG
96 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
Eric Andersen5043ea12005-06-23 19:15:40 +000097 default n if CONFIG_FEATURE_SUID
Eric Andersenc9f20d92002-12-05 08:41:41 +000098 depends on CONFIG_FEATURE_SUID
99 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000100 Allow the SUID / SGID state of an applet to be determined runtime by
Eric Andersene5272072003-07-22 22:15:21 +0000101 checking /etc/busybox.conf. The format of this file is as follows:
102
103 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
Eric Andersen5043ea12005-06-23 19:15:40 +0000104
Eric Andersene5272072003-07-22 22:15:21 +0000105 An example might help:
106
107 [SUID]
108 su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
109 su = ssx # exactly the same
110
111 mount = sx- root.disk # applet mount can be run by root and members of group disk
112 # and runs with euid=0
113
114 cp = --- # disable applet cp for everyone
115
Rob Landleyfdc4c202005-04-29 19:48:29 +0000116 The file has to be owned by user root, group root and has to be
117 writeable only by root:
118 (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
119 The busybox executable has to be owned by user root, group
120 root and has to be setuid root for this to work:
121 (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
122
Eric Andersene5272072003-07-22 22:15:21 +0000123 Robert 'sandman' Griebl has more information here:
124 <url: http://www.softforge.de/bb/suid.html >.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000125
126config CONFIG_FEATURE_SUID_CONFIG_QUIET
127 bool "Suppress warning message if /etc/busybox.conf is not readable"
128 default n
129 depends on CONFIG_FEATURE_SUID_CONFIG
130 help
Eric Andersene5272072003-07-22 22:15:21 +0000131 /etc/busybox.conf should be readable by the user needing the SUID, check
132 this option to avoid users to be notified about missing permissions.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000133
Eric Andersen9e480452003-07-03 10:07:04 +0000134config CONFIG_SELINUX
135 bool "Support NSA Security Enhanced Linux"
136 default n
137 help
138 Enable support for SE Linux in applets ls, ps, and id. Also provide
139 the option of compiling in SE Linux applets.
140
Eric Andersen31d898f2004-02-05 00:18:26 +0000141 If you do not have a complete SE Linux Full Userland installed, this
142 stuff will not compile. Go visit
143 http://www.nsa.gov/selinux/index.html
144 to download the necessary stuff to allow busybox to compile with this
145 option enabled.
146
147 Most people will leave this set to 'N'.
148
Eric Andersenc9f20d92002-12-05 08:41:41 +0000149endmenu
150
151menu 'Build Options'
152
Eric Andersene5272072003-07-22 22:15:21 +0000153config CONFIG_STATIC
Eric Andersenc9f20d92002-12-05 08:41:41 +0000154 bool "Build BusyBox as a static binary (no shared libs)"
155 default n
156 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000157 If you want to build a static BusyBox binary, which does not
158 use or require any shared libraries, then enable this option.
Eric Andersen88c916b2003-10-22 09:58:56 +0000159 This can cause BusyBox to be considerably larger, so you should
Eric Andersene5272072003-07-22 22:15:21 +0000160 leave this option false unless you have a good reason (i.e.
161 your target platform does not support shared libraries, or
162 you are building an initrd which doesn't need anything but
163 BusyBox, etc).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000164
Eric Andersene5272072003-07-22 22:15:21 +0000165 Most people will leave this set to 'N'.
166
167config CONFIG_LFS
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000168 bool "Build with Large File Support (for accessing files > 2 GB)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000169 default n
Eric Andersenf086ed82004-05-25 11:30:22 +0000170 select FDISK_SUPPORT_LARGE_DISKS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000171 help
172 If you want to build BusyBox with large file support, then enable
173 this option. This will have no effect if your kernel or your C
174 library lacks large file support for large files. Some of the
175 programs that can benefit from large file support include dd, gzip,
176 cp, mount, tar, and many others. If you want to access files larger
177 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
178
179config USING_CROSS_COMPILER
180 bool "Do you want to build BusyBox with a Cross Compiler?"
181 default n
182 help
183 Do you want to build BusyBox with a Cross Compiler? If so,
184 then enable this option. Otherwise leave it set to 'N'.
185
186config CROSS_COMPILER_PREFIX
187 string "Cross Compiler prefix"
188 default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
189 depends on USING_CROSS_COMPILER
190 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000191 If you want to build BusyBox with a cross compiler, then you
Eric Andersenc9f20d92002-12-05 08:41:41 +0000192 will need to set this to the cross-compiler prefix. For example,
193 if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
194 then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
195 which will ensure the correct compiler is used.
196
197config EXTRA_CFLAGS_OPTIONS
198 string "Any extra CFLAGS options for the compiler?"
199 default ""
200 help
201 Do you want to pass any extra CFLAGS options to the compiler as
202 you build BusyBox? If so, this is the option for you... For example,
203 if you want to add some simple compiler switches (like -march=i686),
204 or check for warnings using -Werror, just those options here.
205
Glenn L McGrath0bd02572005-12-11 03:09:05 +0000206config CONFIG_FEATURE_SUSv2
207 bool "Enable features that are in SuSv2 but not SuSv3?"
208 default y
209 help
210 This option will enable backwards compatability with SuSv2,
211 specifically, numeric options such as 'head -1 <file>' will be
212 supported.
213
214config CONFIG_FEATURE_SUSv2_OBSOLETE
215 bool "Enable features that are obsolete in SuSv2"
216 depends on CONFIG_FEATURE_SUSv2
217 default y
218 help
Rob Landley7a43bd02006-01-20 17:47:09 +0000219 Disables support for numeric arguments in fold.
Glenn L McGrath0bd02572005-12-11 03:09:05 +0000220
Eric Andersenc9f20d92002-12-05 08:41:41 +0000221endmenu
222
Glenn L McGrathf2ba45e2003-01-19 12:55:13 +0000223menu 'Installation Options'
224
225config CONFIG_INSTALL_NO_USR
226 bool "Don't use /usr"
227 default n
228 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000229 Disable use of /usr. Don't activate this option if you don't know
Glenn L McGrathf2ba45e2003-01-19 12:55:13 +0000230 that you really want this behaviour.
231
Rob Landleye0c418e2005-12-15 07:25:54 +0000232choice
233 prompt "Applets links"
234 default CONFIG_INSTALL_APPLET_SYMLINKS
235 help
236 Choose how you install applets links.
237
238config CONFIG_INSTALL_APPLET_SYMLINKS
239 bool "as soft-links"
240 help
241 Install applets as soft-links to the busybox binary. This needs some
242 free inodes on the filesystem, but might help with filesystem
243 generators that can't cope with hard-links.
244
245config CONFIG_INSTALL_APPLET_HARDLINKS
246 bool "as hard-links"
247 help
248 Install applets as hard-links to the busybox binary. This might count
249 on a filesystem with few inodes.
250
251config CONFIG_INSTALL_APPLET_DONT
252 bool
253 prompt "not installed"
254 depends on CONFIG_FEATURE_INSTALLER || CONFIG_FEATURE_SH_STANDALONE_SHELL
255 help
256 Do not install applets links. Usefull when using the -install feature
257 or a standalone shell for rescue pruposes.
258
259endchoice
260
Glenn L McGrathdef85e82003-02-09 05:00:52 +0000261config PREFIX
262 string "BusyBox installation prefix"
263 default "./_install"
264 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000265 Define your directory to install BusyBox files/subdirs in.
Glenn L McGrathdef85e82003-02-09 05:00:52 +0000266
Rob Landley7a43bd02006-01-20 17:47:09 +0000267
268
Glenn L McGrathf2ba45e2003-01-19 12:55:13 +0000269endmenu
270
Eric Andersenc9f20d92002-12-05 08:41:41 +0000271source archival/Config.in
Glenn L McGrath3238ea12003-02-15 10:53:40 +0000272source coreutils/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000273source console-tools/Config.in
274source debianutils/Config.in
Rob Landley7a43bd02006-01-20 17:47:09 +0000275source e2fsprogs/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000276source editors/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000277source findutils/Config.in
278source init/Config.in
279source loginutils/Config.in
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +0000280source miscutils/Config.in
Rob Landley7a43bd02006-01-20 17:47:09 +0000281source modutils/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000282source networking/Config.in
283source procps/Config.in
284source shell/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000285source sysklogd/Config.in
Rob Landley7a43bd02006-01-20 17:47:09 +0000286source util-linux/Config.in
Eric Andersenc9f20d92002-12-05 08:41:41 +0000287
288menu 'Debugging Options'
289
Eric Andersene5272072003-07-22 22:15:21 +0000290config CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000291 bool "Build BusyBox with Debugging symbols"
292 default n
293 help
294 Say Y here if you wish to compile BusyBox with debugging symbols.
295 This will allow you to use a debugger to examine BusyBox internals
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000296 while applets are running. This increases the size of the binary
Eric Andersenc9f20d92002-12-05 08:41:41 +0000297 considerably and should only be used when doing development.
298 If you are doing development and want to debug BusyBox, answer Y.
299
Eric Andersenf086ed82004-05-25 11:30:22 +0000300 Most people should answer N.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000301
Eric Andersenf086ed82004-05-25 11:30:22 +0000302choice
303 prompt "Additional debugging library"
304 default CONFIG_NO_DEBUG_LIB
305 depends on CONFIG_DEBUG
Eric Andersenc9f20d92002-12-05 08:41:41 +0000306 help
Eric Andersenf086ed82004-05-25 11:30:22 +0000307 Using an additional debugging library will make BusyBox become
308 considerable larger and will cause it to run more slowly. You
309 should always leave this option disabled for production use.
310
311 dmalloc support:
312 ----------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000313 This enables compiling with dmalloc ( http://dmalloc.com/ )
314 which is an excellent public domain mem leak and malloc problem
315 detector. To enable dmalloc, before running busybox you will
316 want to properly set your environment, for example:
317 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
318 The 'debug=' value is generated using the following command
319 dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
320 -p check-fence -p check-heap -p check-lists -p check-blank \
321 -p check-funcs -p realloc-copy -p allow-free-null
322
Eric Andersenf086ed82004-05-25 11:30:22 +0000323 Electric-fence support:
324 -----------------------
Eric Andersenc9f20d92002-12-05 08:41:41 +0000325 This enables compiling with Electric-fence support. Electric
Eric Andersen88c916b2003-10-22 09:58:56 +0000326 fence is another very useful malloc debugging library which uses
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000327 your computer's virtual memory hardware to detect illegal memory
328 accesses. This support will make BusyBox be considerable larger
329 and run slower, so you should leave this option disabled unless
Eric Andersenc9f20d92002-12-05 08:41:41 +0000330 you are hunting a hard to find memory problem.
331
Eric Andersenf086ed82004-05-25 11:30:22 +0000332
333config CONFIG_NO_DEBUG_LIB
334 bool "None"
335
336config CONFIG_DMALLOC
337 bool "Dmalloc"
338
339config CONFIG_EFENCE
340 bool "Electric-fence"
341
342endchoice
343
344
Eric Andersenc9f20d92002-12-05 08:41:41 +0000345endmenu