Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. mainmenu "BusyBox Configuration"
  6. config HAVE_DOT_CONFIG
  7. bool
  8. default y
  9. menu "Busybox Settings"
  10. menu "General Configuration"
  11. choice
  12. prompt "Buffer allocation policy"
  13. default CONFIG_FEATURE_BUFFERS_USE_MALLOC
  14. help
  15. There are 3 ways BusyBox can handle buffer allocations:
  16. - Use malloc. This costs code size for the call to xmalloc.
  17. - Put them on stack. For some very small machines with limited stack
  18. space, this can be deadly. For most folks, this works just fine.
  19. - Put them in BSS. This works beautifully for computers with a real
  20. MMU (and OS support), but wastes runtime RAM for uCLinux. This
  21. behavior was the only one available for BusyBox versions 0.48 and
  22. earlier.
  23. config CONFIG_FEATURE_BUFFERS_USE_MALLOC
  24. bool "Allocate with Malloc"
  25. config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
  26. bool "Allocate on the Stack"
  27. config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
  28. bool "Allocate in the .bss section"
  29. endchoice
  30. config CONFIG_FEATURE_VERBOSE_USAGE
  31. bool "Show verbose applet usage messages"
  32. default n
  33. help
  34. All BusyBox applets will show more verbose help messages when
  35. busybox is invoked with --help. This will add a lot of text to the
  36. busybox binary. In the default configuration, this will add about
  37. 13k, but it can add much more depending on your configuration.
  38. config CONFIG_FEATURE_INSTALLER
  39. bool "Support --install [-s] to install applet links at runtime"
  40. default n
  41. help
  42. Enable 'busybox --install [-s]' support. This will allow you to use
  43. busybox at runtime to create hard links or symlinks for all the
  44. applets that are compiled into busybox. This feature requires the
  45. /proc filesystem.
  46. config CONFIG_LOCALE_SUPPORT
  47. bool "Enable locale support (system needs locale for this to work)"
  48. default n
  49. help
  50. Enable this if your system has locale support and you would like
  51. busybox to support locale settings.
  52. config CONFIG_FEATURE_DEVFS
  53. bool "Support for devfs"
  54. default n
  55. help
  56. Enable if you want BusyBox to work with devfs.
  57. config CONFIG_FEATURE_DEVPTS
  58. bool "Use the devpts filesystem for Unix98 PTYs"
  59. default y if CONFIG_FEATURE_DEVFS
  60. help
  61. Enable if you want BusyBox to use Unix98 PTY support. If enabled,
  62. busybox will use /dev/ptmx for the master side of the pseudoterminal
  63. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  64. /dev/ttyp<number> will be used. To use this option, you should have
  65. devpts or devfs mounted.
  66. config CONFIG_FEATURE_CLEAN_UP
  67. bool "Clean up all memory before exiting (usually not needed)"
  68. default n
  69. help
  70. As a size optimization, busybox normally exits without explicitly
  71. freeing dynamically allocated memory or closing files. This saves
  72. space since the OS will clean up for us, but it can confuse debuggers
  73. like valgrind, which report tons of memory and resource leaks.
  74. Don't enable this unless you have a really good reason to clean
  75. things up manually.
  76. config CONFIG_FEATURE_SUID
  77. bool "Support for SUID/SGID handling"
  78. default n
  79. help
  80. Support SUID and SGID binaries.
  81. config CONFIG_FEATURE_SUID_CONFIG
  82. bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
  83. default n if CONFIG_FEATURE_SUID
  84. depends on CONFIG_FEATURE_SUID
  85. help
  86. Allow the SUID / SGID state of an applet to be determined runtime by
  87. checking /etc/busybox.conf. The format of this file is as follows:
  88. <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
  89. An example might help:
  90. [SUID]
  91. su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
  92. su = ssx # exactly the same
  93. mount = sx- root.disk # applet mount can be run by root and members of group disk
  94. # and runs with euid=0
  95. cp = --- # disable applet cp for everyone
  96. The file has to be owned by user root, group root and has to be
  97. writeable only by root:
  98. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  99. The busybox executable has to be owned by user root, group
  100. root and has to be setuid root for this to work:
  101. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  102. Robert 'sandman' Griebl has more information here:
  103. <url: http://www.softforge.de/bb/suid.html >.
  104. config CONFIG_FEATURE_SUID_CONFIG_QUIET
  105. bool "Suppress warning message if /etc/busybox.conf is not readable"
  106. default n
  107. depends on CONFIG_FEATURE_SUID_CONFIG
  108. help
  109. /etc/busybox.conf should be readable by the user needing the SUID, check
  110. this option to avoid users to be notified about missing permissions.
  111. config CONFIG_SELINUX
  112. bool "Support NSA Security Enhanced Linux"
  113. default n
  114. help
  115. Enable support for SELinux in applets ls, ps, and id. Also provide
  116. the option of compiling in SELinux applets.
  117. If you do not have a complete SELinux userland installed, this stuff
  118. will not compile. Go visit
  119. http://www.nsa.gov/selinux/index.html
  120. to download the necessary stuff to allow busybox to compile with
  121. this option enabled. Specifially, libselinux 1.28 or better is
  122. directly required by busybox. If the installation is located in a
  123. non-standard directory, provide it by invoking make as follows:
  124. CFLAGS=-I<libselinux-include-path> \
  125. LDFLAGS=-L<libselinux-lib-path> \
  126. make
  127. Most people will leave this set to 'N'.
  128. endmenu
  129. menu 'Build Options'
  130. config CONFIG_STATIC
  131. bool "Build BusyBox as a static binary (no shared libs)"
  132. default n
  133. help
  134. If you want to build a static BusyBox binary, which does not
  135. use or require any shared libraries, then enable this option.
  136. This can cause BusyBox to be considerably larger, so you should
  137. leave this option false unless you have a good reason (i.e.
  138. your target platform does not support shared libraries, or
  139. you are building an initrd which doesn't need anything but
  140. BusyBox, etc).
  141. Most people will leave this set to 'N'.
  142. # The busybox shared library feature is there so make standalone can produce
  143. # smaller applets. Since make standalone isn't in yet, there's nothing using
  144. # this yet, and so it's disabled.
  145. config CONFIG_DISABLE_SHARED
  146. bool
  147. default n
  148. config CONFIG_BUILD_LIBBUSYBOX
  149. bool "Build shared libbusybox"
  150. default n
  151. depends on CONFIG_DISABLE_SHARED
  152. help
  153. Build a shared library libbusybox.so which contains all
  154. libraries used inside busybox.
  155. config CONFIG_FEATURE_FULL_LIBBUSYBOX
  156. bool "Feature-complete libbusybox"
  157. default n if !CONFIG_FEATURE_SHARED_BUSYBOX
  158. depends on CONFIG_BUILD_LIBBUSYBOX
  159. help
  160. Build a libbusybox with the complete feature-set, disregarding
  161. the actually selected config.
  162. Normally, libbusybox will only contain the features which are
  163. used by busybox itself. If you plan to write a separate
  164. standalone application which uses libbusybox say 'Y'.
  165. Note: libbusybox is GPL, not LGPL, and exports no stable API that
  166. might act as a copyright barrier. We can and will modify the
  167. exported function set between releases (even minor version number
  168. changes), and happily break out-of-tree features.
  169. Say 'N' if in doubt.
  170. config CONFIG_FEATURE_SHARED_BUSYBOX
  171. bool "Use shared libbusybox for busybox"
  172. default y if CONFIG_BUILD_LIBBUSYBOX
  173. depends on !CONFIG_STATIC && CONFIG_BUILD_LIBBUSYBOX
  174. help
  175. Use libbusybox.so also for busybox itself.
  176. You need to have a working dynamic linker to use this variant.
  177. config CONFIG_LFS
  178. bool "Build with Large File Support (for accessing files > 2 GB)"
  179. default n
  180. select FDISK_SUPPORT_LARGE_DISKS
  181. help
  182. If you want to build BusyBox with large file support, then enable
  183. this option. This will have no effect if your kernel or your C
  184. library lacks large file support for large files. Some of the
  185. programs that can benefit from large file support include dd, gzip,
  186. cp, mount, tar, and many others. If you want to access files larger
  187. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  188. config USING_CROSS_COMPILER
  189. bool "Do you want to build BusyBox with a Cross Compiler?"
  190. default n
  191. help
  192. Do you want to build BusyBox with a Cross Compiler? If so,
  193. then enable this option. Otherwise leave it set to 'N'.
  194. config CROSS_COMPILER_PREFIX
  195. string "Cross Compiler prefix"
  196. default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
  197. depends on USING_CROSS_COMPILER
  198. help
  199. If you want to build BusyBox with a cross compiler, then you
  200. will need to set this to the cross-compiler prefix. For example,
  201. if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
  202. then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
  203. which will ensure the correct compiler is used.
  204. config EXTRA_CFLAGS_OPTIONS
  205. string "Any extra CFLAGS options for the compiler?"
  206. default ""
  207. help
  208. Do you want to pass any extra CFLAGS options to the compiler as
  209. you build BusyBox? If so, this is the option for you... For example,
  210. if you want to add some simple compiler switches (like -march=i686),
  211. or check for warnings using -Werror, just those options here.
  212. config CONFIG_BUILD_AT_ONCE
  213. bool "Compile all sources at once"
  214. default n
  215. help
  216. Normally each source-file is compiled with one invocation of
  217. the compiler.
  218. If you set this option, all sources are compiled at once.
  219. This gives the compiler more opportunities to optimize which can
  220. result in smaller and/or faster binaries.
  221. Setting this option will consume alot of memory, e.g. if you
  222. enable all applets with all features, gcc uses more than 300MB
  223. RAM during compilation of busybox.
  224. This option is most likely only beneficial for newer compilers
  225. such as gcc-4.1 and above.
  226. Say 'N' unless you know what you are doing.
  227. endmenu
  228. menu 'Debugging Options'
  229. config CONFIG_DEBUG
  230. bool "Build BusyBox with Debugging symbols"
  231. default n
  232. help
  233. Say Y here if you wish to compile BusyBox with debugging symbols.
  234. This will allow you to use a debugger to examine BusyBox internals
  235. while applets are running. This increases the size of the binary
  236. considerably and should only be used when doing development.
  237. If you are doing development and want to debug BusyBox, answer Y.
  238. Most people should answer N.
  239. choice
  240. prompt "Additional debugging library"
  241. default CONFIG_NO_DEBUG_LIB
  242. depends on CONFIG_DEBUG
  243. help
  244. Using an additional debugging library will make BusyBox become
  245. considerable larger and will cause it to run more slowly. You
  246. should always leave this option disabled for production use.
  247. dmalloc support:
  248. ----------------
  249. This enables compiling with dmalloc ( http://dmalloc.com/ )
  250. which is an excellent public domain mem leak and malloc problem
  251. detector. To enable dmalloc, before running busybox you will
  252. want to properly set your environment, for example:
  253. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  254. The 'debug=' value is generated using the following command
  255. dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
  256. -p check-fence -p check-heap -p check-lists -p check-blank \
  257. -p check-funcs -p realloc-copy -p allow-free-null
  258. Electric-fence support:
  259. -----------------------
  260. This enables compiling with Electric-fence support. Electric
  261. fence is another very useful malloc debugging library which uses
  262. your computer's virtual memory hardware to detect illegal memory
  263. accesses. This support will make BusyBox be considerable larger
  264. and run slower, so you should leave this option disabled unless
  265. you are hunting a hard to find memory problem.
  266. config CONFIG_NO_DEBUG_LIB
  267. bool "None"
  268. config CONFIG_DMALLOC
  269. bool "Dmalloc"
  270. config CONFIG_EFENCE
  271. bool "Electric-fence"
  272. endchoice
  273. config CONFIG_DEBUG_YANK_SUSv2
  274. bool "Disable obsolete features removed before SUSv3?"
  275. default y
  276. help
  277. This option will disable backwards compatability with SuSv2,
  278. specifically, old-style numeric options ('command -1 <file>')
  279. will not be supported in head, tail, and fold. (Note: should
  280. yank from renice too.)
  281. endmenu
  282. menu 'Installation Options'
  283. config CONFIG_INSTALL_NO_USR
  284. bool "Don't use /usr"
  285. default n
  286. help
  287. Disable use of /usr. Don't activate this option if you don't know
  288. that you really want this behaviour.
  289. choice
  290. prompt "Applets links"
  291. default CONFIG_INSTALL_APPLET_SYMLINKS
  292. help
  293. Choose how you install applets links.
  294. config CONFIG_INSTALL_APPLET_SYMLINKS
  295. bool "as soft-links"
  296. help
  297. Install applets as soft-links to the busybox binary. This needs some
  298. free inodes on the filesystem, but might help with filesystem
  299. generators that can't cope with hard-links.
  300. config CONFIG_INSTALL_APPLET_HARDLINKS
  301. bool "as hard-links"
  302. help
  303. Install applets as hard-links to the busybox binary. This might count
  304. on a filesystem with few inodes.
  305. config CONFIG_INSTALL_APPLET_DONT
  306. bool
  307. prompt "not installed"
  308. depends on CONFIG_FEATURE_INSTALLER || CONFIG_FEATURE_SH_STANDALONE_SHELL
  309. help
  310. Do not install applets links. Usefull when using the -install feature
  311. or a standalone shell for rescue pruposes.
  312. endchoice
  313. config PREFIX
  314. string "BusyBox installation prefix"
  315. default "./_install"
  316. help
  317. Define your directory to install BusyBox files/subdirs in.
  318. endmenu
  319. source libbb/Config.in
  320. endmenu
  321. comment "Applets"
  322. source archival/Config.in
  323. source coreutils/Config.in
  324. source console-tools/Config.in
  325. source debianutils/Config.in
  326. source editors/Config.in
  327. source findutils/Config.in
  328. source init/Config.in
  329. source loginutils/Config.in
  330. source e2fsprogs/Config.in
  331. source modutils/Config.in
  332. source util-linux/Config.in
  333. source miscutils/Config.in
  334. source networking/Config.in
  335. source procps/Config.in
  336. source shell/Config.in
  337. source sysklogd/Config.in