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" |
| 16 | default "Allocate with Malloc" |
| 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 |
| 43 | busybox is invoked with --help. This will add lots of text to the |
| 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 | 5360182 | 2002-12-05 21:12:42 +0000 | [diff] [blame] | 60 | Enable this if your system has locale support, and you would like |
| 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 | 5360182 | 2002-12-05 21:12:42 +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 |
| 93 | Please submit a patch to add help text for this item. |
| 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 |
| 100 | Please submit a patch to add help text for this item. |
| 101 | |
| 102 | config CONFIG_FEATURE_SUID_CONFIG_QUIET |
| 103 | bool "Suppress warning message if /etc/busybox.conf is not readable" |
| 104 | default n |
| 105 | depends on CONFIG_FEATURE_SUID_CONFIG |
| 106 | help |
| 107 | Please submit a patch to add help text for this item. |
| 108 | |
| 109 | endmenu |
| 110 | |
| 111 | menu 'Build Options' |
| 112 | |
| 113 | config DOSTATIC |
| 114 | bool "Build BusyBox as a static binary (no shared libs)" |
| 115 | default n |
| 116 | help |
| 117 | If you want to build a static BusyBox binary, which does not |
| 118 | use or require any shared libraries, then enable this option. |
| 119 | |
| 120 | config DOLFS |
| 121 | bool "Build with Large File Support (for accessing files > 2 GB)" |
| 122 | default n |
| 123 | help |
| 124 | If you want to build BusyBox with large file support, then enable |
| 125 | this option. This will have no effect if your kernel or your C |
| 126 | library lacks large file support for large files. Some of the |
| 127 | programs that can benefit from large file support include dd, gzip, |
| 128 | cp, mount, tar, and many others. If you want to access files larger |
| 129 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. |
| 130 | |
| 131 | config USING_CROSS_COMPILER |
| 132 | bool "Do you want to build BusyBox with a Cross Compiler?" |
| 133 | default n |
| 134 | help |
| 135 | Do you want to build BusyBox with a Cross Compiler? If so, |
| 136 | then enable this option. Otherwise leave it set to 'N'. |
| 137 | |
| 138 | config CROSS_COMPILER_PREFIX |
| 139 | string "Cross Compiler prefix" |
| 140 | default "/usr/i386-linux-uclibc/bin/i386-uclibc-" |
| 141 | depends on USING_CROSS_COMPILER |
| 142 | help |
| 143 | If you want to build BusyBox with a cross compiler, then you |
| 144 | will need to set this to the cross-compiler prefix. For example, |
| 145 | if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc |
| 146 | then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here, |
| 147 | which will ensure the correct compiler is used. |
| 148 | |
| 149 | config EXTRA_CFLAGS_OPTIONS |
| 150 | string "Any extra CFLAGS options for the compiler?" |
| 151 | default "" |
| 152 | help |
| 153 | Do you want to pass any extra CFLAGS options to the compiler as |
| 154 | you build BusyBox? If so, this is the option for you... For example, |
| 155 | if you want to add some simple compiler switches (like -march=i686), |
| 156 | or check for warnings using -Werror, just those options here. |
| 157 | |
| 158 | endmenu |
| 159 | |
Glenn L McGrath | f2ba45e | 2003-01-19 12:55:13 +0000 | [diff] [blame] | 160 | menu 'Installation Options' |
| 161 | |
| 162 | config CONFIG_INSTALL_NO_USR |
| 163 | bool "Don't use /usr" |
| 164 | default n |
| 165 | help |
| 166 | Disable use of /usr. Don't activate this option if you don't know, |
| 167 | that you really want this behaviour. |
| 168 | |
| 169 | endmenu |
| 170 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 171 | source archival/Config.in |
| 172 | source console-tools/Config.in |
| 173 | source debianutils/Config.in |
| 174 | source editors/Config.in |
| 175 | source fileutils/Config.in |
| 176 | source findutils/Config.in |
| 177 | source init/Config.in |
| 178 | source loginutils/Config.in |
| 179 | source miscutils/Config.in |
| 180 | source modutils/Config.in |
| 181 | source networking/Config.in |
| 182 | source procps/Config.in |
| 183 | source shell/Config.in |
| 184 | source shellutils/Config.in |
| 185 | source sysklogd/Config.in |
| 186 | source textutils/Config.in |
| 187 | source util-linux/Config.in |
| 188 | |
| 189 | menu 'Debugging Options' |
| 190 | |
| 191 | config DOSTATIC |
| 192 | bool "Build BusyBox as a static binary (no shared libs)" |
| 193 | default n |
| 194 | help |
| 195 | If you want to build a static BusyBox binary, which does not |
| 196 | use or require any shared libraries, then enable this option. |
| 197 | This will make BusyBox be considerable larger, so you should |
| 198 | leave this option false unless you have a good reason (i.e. |
| 199 | your target platform does not support shared libraries, or |
| 200 | you are building an initrd which doesn't need anything but |
| 201 | BusyBox, etc). |
| 202 | |
| 203 | Most people will leave this set to 'N'. |
| 204 | |
| 205 | config DODEBUG |
| 206 | bool "Build BusyBox with Debugging symbols" |
| 207 | default n |
| 208 | help |
| 209 | Say Y here if you wish to compile BusyBox with debugging symbols. |
| 210 | This will allow you to use a debugger to examine BusyBox internals |
| 211 | while applets are running. This increases the size of the binary |
| 212 | considerably and should only be used when doing development. |
| 213 | If you are doing development and want to debug BusyBox, answer Y. |
| 214 | |
| 215 | Otherwise, answer N. |
| 216 | |
| 217 | config DODMALLOC |
| 218 | bool "Build BusyBox with dmalloc support" |
| 219 | default n |
| 220 | depends on DODEBUG && !DOEFENCE |
| 221 | help |
| 222 | This enables compiling with dmalloc ( http://dmalloc.com/ ) |
| 223 | which is an excellent public domain mem leak and malloc problem |
| 224 | detector. To enable dmalloc, before running busybox you will |
| 225 | want to properly set your environment, for example: |
| 226 | export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile |
| 227 | The 'debug=' value is generated using the following command |
| 228 | dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \ |
| 229 | -p check-fence -p check-heap -p check-lists -p check-blank \ |
| 230 | -p check-funcs -p realloc-copy -p allow-free-null |
| 231 | |
| 232 | This will make BusyBox be considerable larger and run slower, so |
| 233 | you should leave this option disabled for production use. |
| 234 | |
| 235 | config DOEFENCE |
| 236 | bool "Build BusyBox with Electric-fence support" |
| 237 | default n |
| 238 | depends on DODEBUG && !DODMALLOC |
| 239 | help |
| 240 | This enables compiling with Electric-fence support. Electric |
| 241 | fence is another very useful malloc debugging library which used |
| 242 | your computers virtual memory hardware to detect illegal memory |
| 243 | accesses. This support will make BusyBox be considerable larger |
| 244 | and run slower, so you should leave this option disabled unless |
| 245 | you are hunting a hard to find memory problem. |
| 246 | |
| 247 | endmenu |
| 248 | |