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