Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 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 | |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 8 | config HAVE_DOT_CONFIG |
| 9 | bool |
| 10 | default y |
| 11 | |
Rob Landley | 9dc6913 | 2006-03-13 02:52:23 +0000 | [diff] [blame] | 12 | menu "Busybox Settings" |
Mike Frysinger | 72d59db | 2006-03-10 23:17:17 +0000 | [diff] [blame] | 13 | |
Eric Andersen | 23b5146 | 2002-12-05 21:25:20 +0000 | [diff] [blame] | 14 | menu "General Configuration" |
| 15 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 16 | choice |
| 17 | prompt "Buffer allocation policy" |
Eric Andersen | 72d8e44 | 2003-08-05 02:18:25 +0000 | [diff] [blame] | 18 | default CONFIG_FEATURE_BUFFERS_USE_MALLOC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 19 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 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. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 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 | |
Bernhard Reutner-Fischer | 81901a0 | 2006-03-31 18:43:55 +0000 | [diff] [blame] | 40 | config 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 49 | config CONFIG_FEATURE_VERBOSE_USAGE |
| 50 | bool "Show verbose applet usage messages" |
| 51 | default n |
Bernhard Reutner-Fischer | 81901a0 | 2006-03-31 18:43:55 +0000 | [diff] [blame] | 52 | select CONFIG_SHOW_USAGE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 53 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 54 | All BusyBox applets will show more verbose help messages when |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 55 | busybox is invoked with --help. This will add a lot of text to the |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 56 | busybox binary. In the default configuration, this will add about |
| 57 | 13k, but it can add much more depending on your configuration. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 58 | |
Rob Landley | 7e21d5f | 2006-04-27 23:34:46 +0000 | [diff] [blame] | 59 | config CONFIG_FEATURE_COMPRESS_USAGE |
| 60 | bool "Store applet usage messages in compressed form" |
| 61 | default y |
| 62 | depends on CONFIG_SHOW_USAGE |
| 63 | help |
| 64 | Store usage messages in compressed form, uncompress them on-the-fly |
| 65 | when <applet> --help is called. |
| 66 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 67 | config CONFIG_FEATURE_INSTALLER |
| 68 | bool "Support --install [-s] to install applet links at runtime" |
| 69 | default n |
| 70 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 71 | Enable 'busybox --install [-s]' support. This will allow you to use |
| 72 | busybox at runtime to create hard links or symlinks for all the |
| 73 | applets that are compiled into busybox. This feature requires the |
| 74 | /proc filesystem. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 75 | |
| 76 | config CONFIG_LOCALE_SUPPORT |
| 77 | bool "Enable locale support (system needs locale for this to work)" |
| 78 | default n |
| 79 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 80 | Enable this if your system has locale support and you would like |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 81 | busybox to support locale settings. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 82 | |
Bernhard Reutner-Fischer | 01d23ad | 2006-05-26 20:19:22 +0000 | [diff] [blame] | 83 | config CONFIG_GETOPT_LONG |
| 84 | bool "Enable getopt long (system needs struct option for this to work)" |
| 85 | default n |
| 86 | depends on !CONFIG_NO_GETOPT_LONG |
| 87 | help |
| 88 | EXPERIMENTAL! |
| 89 | Enable this if your system support long options for getopt and |
| 90 | you want to use them in busybox. |
| 91 | |
| 92 | # remove this comment to disable getopt_long per default. |
| 93 | #config CONFIG_NO_GETOPT_LONG |
| 94 | # bool |
| 95 | # default y |
| 96 | # depends on !CONFIG_GETOPT_LONG |
| 97 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 98 | config CONFIG_FEATURE_DEVFS |
Rob Landley | 9b70093 | 2006-05-11 16:39:52 +0000 | [diff] [blame] | 99 | bool "Use devfs names for devices" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 100 | default n |
| 101 | help |
Rob Landley | 9b70093 | 2006-05-11 16:39:52 +0000 | [diff] [blame] | 102 | This tells busybox to look for names like /dev/loop/0 instead of |
| 103 | /dev/loop0. If your /dev directory has normal names instead of |
| 104 | devfs names, you don't want this. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 105 | |
| 106 | config CONFIG_FEATURE_DEVPTS |
| 107 | bool "Use the devpts filesystem for Unix98 PTYs" |
| 108 | default y if CONFIG_FEATURE_DEVFS |
| 109 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 110 | Enable if you want BusyBox to use Unix98 PTY support. If enabled, |
| 111 | busybox will use /dev/ptmx for the master side of the pseudoterminal |
| 112 | and /dev/pts/<number> for the slave side. Otherwise, BSD style |
| 113 | /dev/ttyp<number> will be used. To use this option, you should have |
| 114 | devpts or devfs mounted. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 115 | |
| 116 | config CONFIG_FEATURE_CLEAN_UP |
| 117 | bool "Clean up all memory before exiting (usually not needed)" |
| 118 | default n |
| 119 | help |
Rob Landley | 1ab4c3d | 2006-02-08 18:50:17 +0000 | [diff] [blame] | 120 | As a size optimization, busybox normally exits without explicitly |
| 121 | freeing dynamically allocated memory or closing files. This saves |
| 122 | space since the OS will clean up for us, but it can confuse debuggers |
| 123 | like valgrind, which report tons of memory and resource leaks. |
| 124 | |
| 125 | Don't enable this unless you have a really good reason to clean |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 126 | things up manually. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 127 | |
| 128 | config CONFIG_FEATURE_SUID |
| 129 | bool "Support for SUID/SGID handling" |
| 130 | default n |
| 131 | help |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 132 | Support SUID and SGID binaries. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 133 | |
| 134 | config CONFIG_FEATURE_SUID_CONFIG |
| 135 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" |
Eric Andersen | 5043ea1 | 2005-06-23 19:15:40 +0000 | [diff] [blame] | 136 | default n if CONFIG_FEATURE_SUID |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 137 | depends on CONFIG_FEATURE_SUID |
| 138 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 139 | Allow the SUID / SGID state of an applet to be determined runtime by |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 140 | checking /etc/busybox.conf. The format of this file is as follows: |
| 141 | |
| 142 | <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) |
Eric Andersen | 5043ea1 | 2005-06-23 19:15:40 +0000 | [diff] [blame] | 143 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 144 | An example might help: |
| 145 | |
| 146 | [SUID] |
| 147 | su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0 |
| 148 | su = ssx # exactly the same |
| 149 | |
| 150 | mount = sx- root.disk # applet mount can be run by root and members of group disk |
| 151 | # and runs with euid=0 |
| 152 | |
| 153 | cp = --- # disable applet cp for everyone |
| 154 | |
Rob Landley | fdc4c20 | 2005-04-29 19:48:29 +0000 | [diff] [blame] | 155 | The file has to be owned by user root, group root and has to be |
| 156 | writeable only by root: |
| 157 | (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf) |
| 158 | The busybox executable has to be owned by user root, group |
| 159 | root and has to be setuid root for this to work: |
| 160 | (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox) |
| 161 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 162 | Robert 'sandman' Griebl has more information here: |
| 163 | <url: http://www.softforge.de/bb/suid.html >. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 164 | |
| 165 | config CONFIG_FEATURE_SUID_CONFIG_QUIET |
| 166 | bool "Suppress warning message if /etc/busybox.conf is not readable" |
| 167 | default n |
| 168 | depends on CONFIG_FEATURE_SUID_CONFIG |
| 169 | help |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 170 | /etc/busybox.conf should be readable by the user needing the SUID, check |
| 171 | this option to avoid users to be notified about missing permissions. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 172 | |
Eric Andersen | 9e48045 | 2003-07-03 10:07:04 +0000 | [diff] [blame] | 173 | config CONFIG_SELINUX |
| 174 | bool "Support NSA Security Enhanced Linux" |
| 175 | default n |
| 176 | help |
Rob Landley | 24b0a95 | 2006-03-29 15:35:23 +0000 | [diff] [blame] | 177 | Enable support for SELinux in applets ls, ps, and id. Also provide |
| 178 | the option of compiling in SELinux applets. |
Eric Andersen | 9e48045 | 2003-07-03 10:07:04 +0000 | [diff] [blame] | 179 | |
Rob Landley | 24b0a95 | 2006-03-29 15:35:23 +0000 | [diff] [blame] | 180 | If you do not have a complete SELinux userland installed, this stuff |
| 181 | will not compile. Go visit |
Eric Andersen | 31d898f | 2004-02-05 00:18:26 +0000 | [diff] [blame] | 182 | http://www.nsa.gov/selinux/index.html |
Rob Landley | 24b0a95 | 2006-03-29 15:35:23 +0000 | [diff] [blame] | 183 | to download the necessary stuff to allow busybox to compile with |
| 184 | this option enabled. Specifially, libselinux 1.28 or better is |
| 185 | directly required by busybox. If the installation is located in a |
| 186 | non-standard directory, provide it by invoking make as follows: |
| 187 | CFLAGS=-I<libselinux-include-path> \ |
| 188 | LDFLAGS=-L<libselinux-lib-path> \ |
| 189 | make |
Eric Andersen | 31d898f | 2004-02-05 00:18:26 +0000 | [diff] [blame] | 190 | |
| 191 | Most people will leave this set to 'N'. |
| 192 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 193 | endmenu |
| 194 | |
| 195 | menu 'Build Options' |
| 196 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 197 | config CONFIG_STATIC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 198 | bool "Build BusyBox as a static binary (no shared libs)" |
| 199 | default n |
| 200 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 201 | If you want to build a static BusyBox binary, which does not |
| 202 | use or require any shared libraries, then enable this option. |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 203 | This can cause BusyBox to be considerably larger, so you should |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 204 | leave this option false unless you have a good reason (i.e. |
| 205 | your target platform does not support shared libraries, or |
| 206 | you are building an initrd which doesn't need anything but |
| 207 | BusyBox, etc). |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 208 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 209 | Most people will leave this set to 'N'. |
| 210 | |
Bernhard Reutner-Fischer | 2aba395 | 2006-01-24 16:14:14 +0000 | [diff] [blame] | 211 | config CONFIG_BUILD_LIBBUSYBOX |
| 212 | bool "Build shared libbusybox" |
Rob Landley | 8ad7087 | 2006-04-10 17:28:27 +0000 | [diff] [blame] | 213 | default y |
Bernhard Reutner-Fischer | 2aba395 | 2006-01-24 16:14:14 +0000 | [diff] [blame] | 214 | help |
| 215 | Build a shared library libbusybox.so which contains all |
| 216 | libraries used inside busybox. |
| 217 | |
| 218 | config CONFIG_FEATURE_FULL_LIBBUSYBOX |
| 219 | bool "Feature-complete libbusybox" |
| 220 | default n if !CONFIG_FEATURE_SHARED_BUSYBOX |
| 221 | depends on CONFIG_BUILD_LIBBUSYBOX |
| 222 | help |
| 223 | Build a libbusybox with the complete feature-set, disregarding |
| 224 | the actually selected config. |
| 225 | |
| 226 | Normally, libbusybox will only contain the features which are |
| 227 | used by busybox itself. If you plan to write a separate |
| 228 | standalone application which uses libbusybox say 'Y'. |
| 229 | |
Rob Landley | 9e275e3 | 2006-01-31 03:45:26 +0000 | [diff] [blame] | 230 | Note: libbusybox is GPL, not LGPL, and exports no stable API that |
| 231 | might act as a copyright barrier. We can and will modify the |
| 232 | exported function set between releases (even minor version number |
| 233 | changes), and happily break out-of-tree features. |
| 234 | |
Bernhard Reutner-Fischer | 2aba395 | 2006-01-24 16:14:14 +0000 | [diff] [blame] | 235 | Say 'N' if in doubt. |
| 236 | |
| 237 | config CONFIG_FEATURE_SHARED_BUSYBOX |
| 238 | bool "Use shared libbusybox for busybox" |
| 239 | default y if CONFIG_BUILD_LIBBUSYBOX |
| 240 | depends on !CONFIG_STATIC && CONFIG_BUILD_LIBBUSYBOX |
| 241 | help |
| 242 | Use libbusybox.so also for busybox itself. |
| 243 | You need to have a working dynamic linker to use this variant. |
| 244 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 245 | config CONFIG_LFS |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 246 | bool "Build with Large File Support (for accessing files > 2 GB)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 247 | default n |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 248 | select FDISK_SUPPORT_LARGE_DISKS |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 249 | help |
| 250 | If you want to build BusyBox with large file support, then enable |
| 251 | this option. This will have no effect if your kernel or your C |
| 252 | library lacks large file support for large files. Some of the |
| 253 | programs that can benefit from large file support include dd, gzip, |
| 254 | cp, mount, tar, and many others. If you want to access files larger |
| 255 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. |
| 256 | |
| 257 | config USING_CROSS_COMPILER |
| 258 | bool "Do you want to build BusyBox with a Cross Compiler?" |
| 259 | default n |
| 260 | help |
| 261 | Do you want to build BusyBox with a Cross Compiler? If so, |
| 262 | then enable this option. Otherwise leave it set to 'N'. |
| 263 | |
| 264 | config CROSS_COMPILER_PREFIX |
| 265 | string "Cross Compiler prefix" |
| 266 | default "/usr/i386-linux-uclibc/bin/i386-uclibc-" |
| 267 | depends on USING_CROSS_COMPILER |
| 268 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 269 | If you want to build BusyBox with a cross compiler, then you |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 270 | will need to set this to the cross-compiler prefix. For example, |
| 271 | if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc |
| 272 | then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here, |
| 273 | which will ensure the correct compiler is used. |
| 274 | |
| 275 | config EXTRA_CFLAGS_OPTIONS |
| 276 | string "Any extra CFLAGS options for the compiler?" |
| 277 | default "" |
| 278 | help |
| 279 | Do you want to pass any extra CFLAGS options to the compiler as |
| 280 | you build BusyBox? If so, this is the option for you... For example, |
| 281 | if you want to add some simple compiler switches (like -march=i686), |
| 282 | or check for warnings using -Werror, just those options here. |
| 283 | |
Bernhard Reutner-Fischer | 2aba395 | 2006-01-24 16:14:14 +0000 | [diff] [blame] | 284 | config CONFIG_BUILD_AT_ONCE |
| 285 | bool "Compile all sources at once" |
| 286 | default n |
| 287 | help |
| 288 | Normally each source-file is compiled with one invocation of |
| 289 | the compiler. |
| 290 | If you set this option, all sources are compiled at once. |
| 291 | This gives the compiler more opportunities to optimize which can |
| 292 | result in smaller and/or faster binaries. |
| 293 | |
| 294 | Setting this option will consume alot of memory, e.g. if you |
| 295 | enable all applets with all features, gcc uses more than 300MB |
| 296 | RAM during compilation of busybox. |
| 297 | |
| 298 | This option is most likely only beneficial for newer compilers |
| 299 | such as gcc-4.1 and above. |
| 300 | |
| 301 | Say 'N' unless you know what you are doing. |
| 302 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 303 | endmenu |
| 304 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 305 | menu 'Debugging Options' |
| 306 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 307 | config CONFIG_DEBUG |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 308 | bool "Build BusyBox with extra Debugging symbols" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 309 | default n |
| 310 | help |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 311 | Say Y here if you wish to examine BusyBox internals while applets are |
| 312 | running. This increases the size of the binary considerably, and |
| 313 | should only be used when doing development. If you are doing |
| 314 | development and want to debug BusyBox, answer Y. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 315 | |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 316 | Most people should answer N. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 317 | |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 318 | config CONFIG_DEBUG_PESSIMIZE |
| 319 | bool "Disable compiler optimizations." |
| 320 | default n |
| 321 | depends on CONFIG_DEBUG |
| 322 | help |
| 323 | The compiler's optimization of source code can eliminate and reorder |
| 324 | code, resulting in an executable that's hard to understand when |
| 325 | stepping through it with a debugger. This switches it off, resulting |
| 326 | in a much bigger executable that more closely matches the source |
| 327 | code. |
| 328 | |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 329 | choice |
| 330 | prompt "Additional debugging library" |
| 331 | default CONFIG_NO_DEBUG_LIB |
| 332 | depends on CONFIG_DEBUG |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 333 | help |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 334 | Using an additional debugging library will make BusyBox become |
| 335 | considerable larger and will cause it to run more slowly. You |
| 336 | should always leave this option disabled for production use. |
| 337 | |
| 338 | dmalloc support: |
| 339 | ---------------- |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 340 | This enables compiling with dmalloc ( http://dmalloc.com/ ) |
| 341 | which is an excellent public domain mem leak and malloc problem |
| 342 | detector. To enable dmalloc, before running busybox you will |
| 343 | want to properly set your environment, for example: |
| 344 | export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile |
| 345 | The 'debug=' value is generated using the following command |
| 346 | dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \ |
| 347 | -p check-fence -p check-heap -p check-lists -p check-blank \ |
| 348 | -p check-funcs -p realloc-copy -p allow-free-null |
| 349 | |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 350 | Electric-fence support: |
| 351 | ----------------------- |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 352 | This enables compiling with Electric-fence support. Electric |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 353 | fence is another very useful malloc debugging library which uses |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 354 | your computer's virtual memory hardware to detect illegal memory |
| 355 | accesses. This support will make BusyBox be considerable larger |
| 356 | and run slower, so you should leave this option disabled unless |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 357 | you are hunting a hard to find memory problem. |
| 358 | |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 359 | |
| 360 | config CONFIG_NO_DEBUG_LIB |
| 361 | bool "None" |
| 362 | |
| 363 | config CONFIG_DMALLOC |
| 364 | bool "Dmalloc" |
| 365 | |
| 366 | config CONFIG_EFENCE |
| 367 | bool "Electric-fence" |
| 368 | |
| 369 | endchoice |
| 370 | |
Rob Landley | f8fd4db | 2006-01-30 01:30:39 +0000 | [diff] [blame] | 371 | config CONFIG_DEBUG_YANK_SUSv2 |
| 372 | bool "Disable obsolete features removed before SUSv3?" |
| 373 | default y |
| 374 | help |
Bernhard Reutner-Fischer | a1bccc0 | 2006-04-02 20:17:55 +0000 | [diff] [blame] | 375 | This option will disable backwards compatibility with SuSv2, |
Rob Landley | f8fd4db | 2006-01-30 01:30:39 +0000 | [diff] [blame] | 376 | specifically, old-style numeric options ('command -1 <file>') |
| 377 | will not be supported in head, tail, and fold. (Note: should |
| 378 | yank from renice too.) |
Eric Andersen | f086ed8 | 2004-05-25 11:30:22 +0000 | [diff] [blame] | 379 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 380 | endmenu |
Mike Frysinger | 72d59db | 2006-03-10 23:17:17 +0000 | [diff] [blame] | 381 | |
| 382 | menu 'Installation Options' |
| 383 | |
| 384 | config CONFIG_INSTALL_NO_USR |
| 385 | bool "Don't use /usr" |
| 386 | default n |
| 387 | help |
| 388 | Disable use of /usr. Don't activate this option if you don't know |
| 389 | that you really want this behaviour. |
| 390 | |
| 391 | choice |
| 392 | prompt "Applets links" |
| 393 | default CONFIG_INSTALL_APPLET_SYMLINKS |
| 394 | help |
| 395 | Choose how you install applets links. |
| 396 | |
| 397 | config CONFIG_INSTALL_APPLET_SYMLINKS |
| 398 | bool "as soft-links" |
| 399 | help |
| 400 | Install applets as soft-links to the busybox binary. This needs some |
| 401 | free inodes on the filesystem, but might help with filesystem |
| 402 | generators that can't cope with hard-links. |
| 403 | |
| 404 | config CONFIG_INSTALL_APPLET_HARDLINKS |
| 405 | bool "as hard-links" |
| 406 | help |
| 407 | Install applets as hard-links to the busybox binary. This might count |
| 408 | on a filesystem with few inodes. |
| 409 | |
| 410 | config CONFIG_INSTALL_APPLET_DONT |
| 411 | bool |
| 412 | prompt "not installed" |
| 413 | depends on CONFIG_FEATURE_INSTALLER || CONFIG_FEATURE_SH_STANDALONE_SHELL |
| 414 | help |
| 415 | Do not install applets links. Usefull when using the -install feature |
| 416 | or a standalone shell for rescue pruposes. |
| 417 | |
| 418 | endchoice |
| 419 | |
| 420 | config PREFIX |
| 421 | string "BusyBox installation prefix" |
| 422 | default "./_install" |
| 423 | help |
| 424 | Define your directory to install BusyBox files/subdirs in. |
| 425 | |
| 426 | endmenu |
| 427 | |
| 428 | source libbb/Config.in |
| 429 | |
Rob Landley | 9dc6913 | 2006-03-13 02:52:23 +0000 | [diff] [blame] | 430 | endmenu |
| 431 | |
Mike Frysinger | 72d59db | 2006-03-10 23:17:17 +0000 | [diff] [blame] | 432 | comment "Applets" |
| 433 | |
| 434 | source archival/Config.in |
| 435 | source coreutils/Config.in |
| 436 | source console-tools/Config.in |
| 437 | source debianutils/Config.in |
| 438 | source editors/Config.in |
| 439 | source findutils/Config.in |
| 440 | source init/Config.in |
| 441 | source loginutils/Config.in |
| 442 | source e2fsprogs/Config.in |
| 443 | source modutils/Config.in |
| 444 | source util-linux/Config.in |
| 445 | source miscutils/Config.in |
| 446 | source networking/Config.in |
| 447 | source procps/Config.in |
| 448 | source shell/Config.in |
| 449 | source sysklogd/Config.in |