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 | |
Eric Andersen | 23b5146 | 2002-12-05 21:25:20 +0000 | [diff] [blame] | 12 | menu "General Configuration" |
| 13 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 14 | choice |
| 15 | prompt "Buffer allocation policy" |
Eric Andersen | 72d8e44 | 2003-08-05 02:18:25 +0000 | [diff] [blame] | 16 | default CONFIG_FEATURE_BUFFERS_USE_MALLOC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 17 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 18 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 26 | |
| 27 | config CONFIG_FEATURE_BUFFERS_USE_MALLOC |
| 28 | bool "Allocate with Malloc" |
| 29 | |
| 30 | config CONFIG_FEATURE_BUFFERS_GO_ON_STACK |
| 31 | bool "Allocate on the Stack" |
| 32 | |
| 33 | config CONFIG_FEATURE_BUFFERS_GO_IN_BSS |
| 34 | bool "Allocate in the .bss section" |
| 35 | |
| 36 | endchoice |
| 37 | |
| 38 | config CONFIG_FEATURE_VERBOSE_USAGE |
| 39 | bool "Show verbose applet usage messages" |
| 40 | default n |
| 41 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 42 | All BusyBox applets will show more verbose help messages when |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 43 | 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] | 44 | busybox binary. In the default configuration, this will add about |
| 45 | 13k, but it can add much more depending on your configuration. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 46 | |
| 47 | config CONFIG_FEATURE_INSTALLER |
| 48 | bool "Support --install [-s] to install applet links at runtime" |
| 49 | default n |
| 50 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 51 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 55 | |
| 56 | config CONFIG_LOCALE_SUPPORT |
| 57 | bool "Enable locale support (system needs locale for this to work)" |
| 58 | default n |
| 59 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 60 | Enable this if your system has locale support and you would like |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 61 | busybox to support locale settings. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 62 | |
| 63 | config CONFIG_FEATURE_DEVFS |
| 64 | bool "Support for devfs" |
| 65 | default n |
| 66 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 67 | Enable if you want BusyBox to work with devfs. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 68 | |
| 69 | config CONFIG_FEATURE_DEVPTS |
| 70 | bool "Use the devpts filesystem for Unix98 PTYs" |
| 71 | default y if CONFIG_FEATURE_DEVFS |
| 72 | help |
Eric Andersen | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 73 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 78 | |
| 79 | config CONFIG_FEATURE_CLEAN_UP |
| 80 | bool "Clean up all memory before exiting (usually not needed)" |
| 81 | default n |
| 82 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 83 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 88 | |
| 89 | config CONFIG_FEATURE_SUID |
| 90 | bool "Support for SUID/SGID handling" |
| 91 | default n |
| 92 | help |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 93 | Support SUID and SGID binaries. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 94 | |
| 95 | config CONFIG_FEATURE_SUID_CONFIG |
| 96 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" |
| 97 | default y if CONFIG_FEATURE_SUID |
| 98 | depends on CONFIG_FEATURE_SUID |
| 99 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 100 | 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] | 101 | checking /etc/busybox.conf. The format of this file is as follows: |
| 102 | |
| 103 | <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 104 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 105 | 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 | |
| 116 | Robert 'sandman' Griebl has more information here: |
| 117 | <url: http://www.softforge.de/bb/suid.html >. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 118 | |
| 119 | config CONFIG_FEATURE_SUID_CONFIG_QUIET |
| 120 | bool "Suppress warning message if /etc/busybox.conf is not readable" |
| 121 | default n |
| 122 | depends on CONFIG_FEATURE_SUID_CONFIG |
| 123 | help |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 124 | /etc/busybox.conf should be readable by the user needing the SUID, check |
| 125 | this option to avoid users to be notified about missing permissions. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 126 | |
Eric Andersen | 9e48045 | 2003-07-03 10:07:04 +0000 | [diff] [blame] | 127 | config CONFIG_SELINUX |
| 128 | bool "Support NSA Security Enhanced Linux" |
| 129 | default n |
| 130 | help |
| 131 | Enable support for SE Linux in applets ls, ps, and id. Also provide |
| 132 | the option of compiling in SE Linux applets. |
| 133 | |
Eric Andersen | 31d898f | 2004-02-05 00:18:26 +0000 | [diff] [blame] | 134 | If you do not have a complete SE Linux Full Userland installed, this |
| 135 | stuff will not compile. Go visit |
| 136 | http://www.nsa.gov/selinux/index.html |
| 137 | to download the necessary stuff to allow busybox to compile with this |
| 138 | option enabled. |
| 139 | |
| 140 | Most people will leave this set to 'N'. |
| 141 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 142 | endmenu |
| 143 | |
| 144 | menu 'Build Options' |
| 145 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 146 | config CONFIG_STATIC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 147 | bool "Build BusyBox as a static binary (no shared libs)" |
| 148 | default n |
| 149 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 150 | If you want to build a static BusyBox binary, which does not |
| 151 | use or require any shared libraries, then enable this option. |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 152 | This can cause BusyBox to be considerably larger, so you should |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 153 | leave this option false unless you have a good reason (i.e. |
| 154 | your target platform does not support shared libraries, or |
| 155 | you are building an initrd which doesn't need anything but |
| 156 | BusyBox, etc). |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 157 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 158 | Most people will leave this set to 'N'. |
| 159 | |
| 160 | config CONFIG_LFS |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 161 | bool "Build with Large File Support (for accessing files > 2 GB)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 162 | default n |
| 163 | help |
| 164 | If you want to build BusyBox with large file support, then enable |
| 165 | this option. This will have no effect if your kernel or your C |
| 166 | library lacks large file support for large files. Some of the |
| 167 | programs that can benefit from large file support include dd, gzip, |
| 168 | cp, mount, tar, and many others. If you want to access files larger |
| 169 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. |
| 170 | |
| 171 | config USING_CROSS_COMPILER |
| 172 | bool "Do you want to build BusyBox with a Cross Compiler?" |
| 173 | default n |
| 174 | help |
| 175 | Do you want to build BusyBox with a Cross Compiler? If so, |
| 176 | then enable this option. Otherwise leave it set to 'N'. |
| 177 | |
| 178 | config CROSS_COMPILER_PREFIX |
| 179 | string "Cross Compiler prefix" |
| 180 | default "/usr/i386-linux-uclibc/bin/i386-uclibc-" |
| 181 | depends on USING_CROSS_COMPILER |
| 182 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 183 | If you want to build BusyBox with a cross compiler, then you |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 184 | will need to set this to the cross-compiler prefix. For example, |
| 185 | if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc |
| 186 | then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here, |
| 187 | which will ensure the correct compiler is used. |
| 188 | |
| 189 | config EXTRA_CFLAGS_OPTIONS |
| 190 | string "Any extra CFLAGS options for the compiler?" |
| 191 | default "" |
| 192 | help |
| 193 | Do you want to pass any extra CFLAGS options to the compiler as |
| 194 | you build BusyBox? If so, this is the option for you... For example, |
| 195 | if you want to add some simple compiler switches (like -march=i686), |
| 196 | or check for warnings using -Werror, just those options here. |
| 197 | |
| 198 | endmenu |
| 199 | |
Glenn L McGrath | f2ba45e | 2003-01-19 12:55:13 +0000 | [diff] [blame] | 200 | menu 'Installation Options' |
| 201 | |
| 202 | config CONFIG_INSTALL_NO_USR |
| 203 | bool "Don't use /usr" |
| 204 | default n |
| 205 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 206 | Disable use of /usr. Don't activate this option if you don't know |
Glenn L McGrath | f2ba45e | 2003-01-19 12:55:13 +0000 | [diff] [blame] | 207 | that you really want this behaviour. |
| 208 | |
Glenn L McGrath | def85e8 | 2003-02-09 05:00:52 +0000 | [diff] [blame] | 209 | config PREFIX |
| 210 | string "BusyBox installation prefix" |
| 211 | default "./_install" |
| 212 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 213 | Define your directory to install BusyBox files/subdirs in. |
Glenn L McGrath | def85e8 | 2003-02-09 05:00:52 +0000 | [diff] [blame] | 214 | |
| 215 | |
| 216 | |
Glenn L McGrath | f2ba45e | 2003-01-19 12:55:13 +0000 | [diff] [blame] | 217 | endmenu |
| 218 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 219 | source archival/Config.in |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 220 | source coreutils/Config.in |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 221 | source console-tools/Config.in |
| 222 | source debianutils/Config.in |
| 223 | source editors/Config.in |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 224 | source findutils/Config.in |
| 225 | source init/Config.in |
| 226 | source loginutils/Config.in |
| 227 | source miscutils/Config.in |
| 228 | source modutils/Config.in |
| 229 | source networking/Config.in |
| 230 | source procps/Config.in |
| 231 | source shell/Config.in |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 232 | source sysklogd/Config.in |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 233 | source util-linux/Config.in |
| 234 | |
| 235 | menu 'Debugging Options' |
| 236 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 237 | config CONFIG_DEBUG |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 238 | bool "Build BusyBox with Debugging symbols" |
| 239 | default n |
| 240 | help |
| 241 | Say Y here if you wish to compile BusyBox with debugging symbols. |
| 242 | This will allow you to use a debugger to examine BusyBox internals |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 243 | while applets are running. This increases the size of the binary |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 244 | considerably and should only be used when doing development. |
| 245 | If you are doing development and want to debug BusyBox, answer Y. |
| 246 | |
| 247 | Otherwise, answer N. |
| 248 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 249 | config CONFIG_DMALLOC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 250 | bool "Build BusyBox with dmalloc support" |
| 251 | default n |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 252 | depends on CONFIG_DEBUG && !CONFIG_EFENCE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 253 | help |
| 254 | This enables compiling with dmalloc ( http://dmalloc.com/ ) |
| 255 | which is an excellent public domain mem leak and malloc problem |
| 256 | detector. To enable dmalloc, before running busybox you will |
| 257 | want to properly set your environment, for example: |
| 258 | export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile |
| 259 | The 'debug=' value is generated using the following command |
| 260 | dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \ |
| 261 | -p check-fence -p check-heap -p check-lists -p check-blank \ |
| 262 | -p check-funcs -p realloc-copy -p allow-free-null |
| 263 | |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 264 | This will make BusyBox be considerable larger and run slower, so |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 265 | you should leave this option disabled for production use. |
| 266 | |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 267 | config CONFIG_EFENCE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 268 | bool "Build BusyBox with Electric-fence support" |
| 269 | default n |
Eric Andersen | e527207 | 2003-07-22 22:15:21 +0000 | [diff] [blame] | 270 | depends on CONFIG_DEBUG && !CONFIG_DMALLOC |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 271 | help |
| 272 | This enables compiling with Electric-fence support. Electric |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 273 | fence is another very useful malloc debugging library which uses |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame^] | 274 | your computer's virtual memory hardware to detect illegal memory |
| 275 | accesses. This support will make BusyBox be considerable larger |
| 276 | and run slower, so you should leave this option disabled unless |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 277 | you are hunting a hard to find memory problem. |
| 278 | |
| 279 | endmenu |
| 280 | |