Temporarily disable shared library for the 1.1.1 release.
[oweals/busybox.git] / Config.in
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 mainmenu "BusyBox Configuration"
7
8 config HAVE_DOT_CONFIG
9         bool
10         default y
11
12 menu "Busybox Settings"
13
14 menu "General Configuration"
15
16 choice
17         prompt "Buffer allocation policy"
18         default CONFIG_FEATURE_BUFFERS_USE_MALLOC
19         help
20           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.
28
29 config CONFIG_FEATURE_BUFFERS_USE_MALLOC
30         bool "Allocate with Malloc"
31
32 config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
33         bool "Allocate on the Stack"
34
35 config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
36         bool "Allocate in the .bss section"
37
38 endchoice
39
40 config CONFIG_FEATURE_VERBOSE_USAGE
41         bool "Show verbose applet usage messages"
42         default n
43         help
44           All BusyBox applets will show more verbose help messages when
45           busybox is invoked with --help.  This will add a lot of text to the
46           busybox binary.  In the default configuration, this will add about
47           13k, but it can add much more depending on your configuration.
48
49 config CONFIG_FEATURE_INSTALLER
50         bool "Support --install [-s] to install applet links at runtime"
51         default n
52         help
53           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.
57
58 config CONFIG_LOCALE_SUPPORT
59         bool "Enable locale support (system needs locale for this to work)"
60         default n
61         help
62           Enable this if your system has locale support and you would like
63           busybox to support locale settings.
64
65 config CONFIG_FEATURE_DEVFS
66         bool "Support for devfs"
67         default n
68         help
69           Enable if you want BusyBox to work with devfs.
70
71 config CONFIG_FEATURE_DEVPTS
72         bool "Use the devpts filesystem for Unix98 PTYs"
73         default y if CONFIG_FEATURE_DEVFS
74         help
75           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.
80
81 config CONFIG_FEATURE_CLEAN_UP
82         bool "Clean up all memory before exiting (usually not needed)"
83         default n
84         help
85           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
91           things up manually.
92
93 config CONFIG_FEATURE_SUID
94         bool "Support for SUID/SGID handling"
95         default n
96         help
97           Support SUID and SGID binaries.
98
99 config CONFIG_FEATURE_SUID_CONFIG
100         bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
101         default n if CONFIG_FEATURE_SUID
102         depends on CONFIG_FEATURE_SUID
103         help
104           Allow the SUID / SGID state of an applet to be determined runtime by
105           checking /etc/busybox.conf.  The format of this file is as follows:
106
107           <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
108
109           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
120           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
127           Robert 'sandman' Griebl has more information here:
128           <url: http://www.softforge.de/bb/suid.html >.
129
130 config 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
135           /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.
137
138 config 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
145           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
153 endmenu
154
155 menu 'Build Options'
156
157 config CONFIG_STATIC
158         bool "Build BusyBox as a static binary (no shared libs)"
159         default n
160         help
161           If you want to build a static BusyBox binary, which does not
162           use or require any shared libraries, then enable this option.
163           This can cause BusyBox to be considerably larger, so you should
164           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).
168
169           Most people will leave this set to 'N'.
170
171 # The busybox shared library feature is there so make standalone can produce
172 # smaller applets.  Since make standalone isn't in yet, there's nothing using
173 # this yet, and so it's disabled.
174 config CONFIG_DISABLE_SHARED
175         bool
176         default n
177
178 config CONFIG_BUILD_LIBBUSYBOX
179         bool "Build shared libbusybox"
180         default n
181         depends on CONFIG_DISABLE_SHARED
182         help
183           Build a shared library libbusybox.so which contains all
184           libraries used inside busybox.
185
186 config CONFIG_FEATURE_FULL_LIBBUSYBOX
187         bool "Feature-complete libbusybox"
188         default n if !CONFIG_FEATURE_SHARED_BUSYBOX
189         depends on CONFIG_BUILD_LIBBUSYBOX
190         help
191           Build a libbusybox with the complete feature-set, disregarding
192           the actually selected config.
193
194           Normally, libbusybox will only contain the features which are
195           used by busybox itself. If you plan to write a separate
196           standalone application which uses libbusybox say 'Y'.
197
198           Note: libbusybox is GPL, not LGPL, and exports no stable API that
199           might act as a copyright barrier.  We can and will modify the
200           exported function set between releases (even minor version number
201           changes), and happily break out-of-tree features.
202
203           Say 'N' if in doubt.
204
205 config CONFIG_FEATURE_SHARED_BUSYBOX
206         bool "Use shared libbusybox for busybox"
207         default y if CONFIG_BUILD_LIBBUSYBOX
208         depends on !CONFIG_STATIC && CONFIG_BUILD_LIBBUSYBOX
209         help
210           Use libbusybox.so also for busybox itself.
211           You need to have a working dynamic linker to use this variant.
212
213 config CONFIG_LFS
214         bool "Build with Large File Support (for accessing files > 2 GB)"
215         default n
216         select FDISK_SUPPORT_LARGE_DISKS
217         help
218           If you want to build BusyBox with large file support, then enable
219           this option.  This will have no effect if your kernel or your C
220           library lacks large file support for large files.  Some of the
221           programs that can benefit from large file support include dd, gzip,
222           cp, mount, tar, and many others.  If you want to access files larger
223           than 2 Gigabytes, enable this option.  Otherwise, leave it set to 'N'.
224
225 config USING_CROSS_COMPILER
226         bool "Do you want to build BusyBox with a Cross Compiler?"
227         default n
228         help
229           Do you want to build BusyBox with a Cross Compiler?  If so,
230           then enable this option.  Otherwise leave it set to 'N'.
231
232 config CROSS_COMPILER_PREFIX
233         string "Cross Compiler prefix"
234         default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
235         depends on USING_CROSS_COMPILER
236         help
237           If you want to build BusyBox with a cross compiler, then you
238           will need to set this to the cross-compiler prefix.  For example,
239           if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
240           then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
241           which will ensure the correct compiler is used.
242
243 config EXTRA_CFLAGS_OPTIONS
244         string "Any extra CFLAGS options for the compiler?"
245         default ""
246         help
247           Do you want to pass any extra CFLAGS options to the compiler as
248           you build BusyBox? If so, this is the option for you...  For example,
249           if you want to add some simple compiler switches (like -march=i686),
250           or check for warnings using -Werror, just those options here.
251
252 config CONFIG_BUILD_AT_ONCE
253         bool "Compile all sources at once"
254         default n
255         help
256           Normally each source-file is compiled with one invocation of
257           the compiler.
258           If you set this option, all sources are compiled at once.
259           This gives the compiler more opportunities to optimize which can
260           result in smaller and/or faster binaries.
261
262           Setting this option will consume alot of memory, e.g. if you
263           enable all applets with all features, gcc uses more than 300MB
264           RAM during compilation of busybox.
265
266           This option is most likely only beneficial for newer compilers
267           such as gcc-4.1 and above.
268
269           Say 'N' unless you know what you are doing.
270
271 endmenu
272
273 menu 'Debugging Options'
274
275 config CONFIG_DEBUG
276         bool "Build BusyBox with Debugging symbols"
277         default n
278         help
279           Say Y here if you wish to compile BusyBox with debugging symbols.
280           This will allow you to use a debugger to examine BusyBox internals
281           while applets are running.  This increases the size of the binary
282           considerably and should only be used when doing development.
283           If you are doing development and want to debug BusyBox, answer Y.
284
285           Most people should answer N.
286
287 choice
288         prompt "Additional debugging library"
289         default CONFIG_NO_DEBUG_LIB
290         depends on CONFIG_DEBUG
291         help
292           Using an additional debugging library will make BusyBox become
293           considerable larger and will cause it to run more slowly.  You
294           should always leave this option disabled for production use.
295
296           dmalloc support:
297           ----------------
298           This enables compiling with dmalloc ( http://dmalloc.com/ )
299           which is an excellent public domain mem leak and malloc problem
300           detector.  To enable dmalloc, before running busybox you will
301           want to properly set your environment, for example:
302             export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
303           The 'debug=' value is generated using the following command
304             dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
305                -p check-fence -p check-heap -p check-lists -p check-blank \
306                -p check-funcs -p realloc-copy -p allow-free-null
307
308           Electric-fence support:
309           -----------------------
310           This enables compiling with Electric-fence support.  Electric
311           fence is another very useful malloc debugging library which uses
312           your computer's virtual memory hardware to detect illegal memory
313           accesses.  This support will make BusyBox be considerable larger
314           and run slower, so you should leave this option disabled unless
315           you are hunting a hard to find memory problem.
316
317
318 config CONFIG_NO_DEBUG_LIB
319         bool "None"
320
321 config CONFIG_DMALLOC
322         bool "Dmalloc"
323
324 config CONFIG_EFENCE
325         bool "Electric-fence"
326
327 endchoice
328
329 config CONFIG_STRIP_BINARIES
330         bool "Strip busybox objects"
331         default y if !CONFIG_DEBUG
332         default n if CONFIG_DEBUG
333         help
334           Whether or not we strip the busybox binary and such.
335
336 config CONFIG_DEBUG_YANK_SUSv2
337         bool "Disable obsolete features removed before SUSv3?"
338         default y
339         help
340           This option will disable backwards compatability with SuSv2,
341           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.)
344
345 endmenu
346
347 menu 'Installation Options'
348
349 config 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
356 choice
357        prompt "Applets links"
358        default CONFIG_INSTALL_APPLET_SYMLINKS
359        help
360          Choose how you install applets links.
361
362 config 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
369 config 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
375 config 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
383 endchoice
384
385 config PREFIX
386         string "BusyBox installation prefix"
387         default "./_install"
388         help
389           Define your directory to install BusyBox files/subdirs in.
390
391 endmenu
392
393 source libbb/Config.in
394
395 endmenu
396
397 comment "Applets"
398
399 source archival/Config.in
400 source coreutils/Config.in
401 source console-tools/Config.in
402 source debianutils/Config.in
403 source editors/Config.in
404 source findutils/Config.in
405 source init/Config.in
406 source loginutils/Config.in
407 source e2fsprogs/Config.in
408 source modutils/Config.in
409 source util-linux/Config.in
410 source miscutils/Config.in
411 source networking/Config.in
412 source procps/Config.in
413 source shell/Config.in
414 source sysklogd/Config.in