Config.in 15 KB

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