Config.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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.
  86. config LOCALE_SUPPORT
  87. bool "Enable locale support (system needs locale for this to work)"
  88. default n
  89. help
  90. Enable this if your system has locale support and you would like
  91. busybox to support locale settings.
  92. config GETOPT_LONG
  93. bool "Enable support for --long-options"
  94. default y
  95. help
  96. Enable this if you want busybox applets to use the gnu --long-option
  97. style, in addition to single character -a -b -c style options.
  98. config FEATURE_DEVPTS
  99. bool "Use the devpts filesystem for Unix98 PTYs"
  100. default y
  101. help
  102. Enable if you want BusyBox to use Unix98 PTY support. If enabled,
  103. busybox will use /dev/ptmx for the master side of the pseudoterminal
  104. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  105. /dev/ttyp<number> will be used. To use this option, you should have
  106. devpts mounted.
  107. config FEATURE_CLEAN_UP
  108. bool "Clean up all memory before exiting (usually not needed)"
  109. default n
  110. depends on NITPICK
  111. help
  112. As a size optimization, busybox normally exits without explicitly
  113. freeing dynamically allocated memory or closing files. This saves
  114. space since the OS will clean up for us, but it can confuse debuggers
  115. like valgrind, which report tons of memory and resource leaks.
  116. Don't enable this unless you have a really good reason to clean
  117. things up manually.
  118. config FEATURE_PIDFILE
  119. bool "Support writing pidfiles"
  120. default n
  121. help
  122. This option makes some applets (e.g. crond, syslogd, inetd) write
  123. a pidfile in /var/run. Some applications rely on them.
  124. config FEATURE_SUID
  125. bool "Support for SUID/SGID handling"
  126. default n
  127. help
  128. With this option you can install the busybox binary belonging
  129. to root with the suid bit set, and it'll and it'll automatically drop
  130. priviledges for applets that don't need root access.
  131. If you're really paranoid and don't want to do this, build two
  132. busybox binaries with different applets in them (and the appropriate
  133. symlinks pointing to each binary), and only set the suid bit on the
  134. one that needs it. The applets currently marked to need the suid bit
  135. are login, passwd, su, ping, traceroute, crontab, dnsd, ipcrm, ipcs,
  136. and vlock.
  137. config FEATURE_SUID_CONFIG
  138. bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
  139. default n if FEATURE_SUID
  140. depends on FEATURE_SUID
  141. help
  142. Allow the SUID / SGID state of an applet to be determined at runtime
  143. by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
  144. The format of this file is as follows:
  145. <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
  146. An example might help:
  147. [SUID]
  148. su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
  149. su = ssx # exactly the same
  150. mount = sx- root.disk # applet mount can be run by root and members of group disk
  151. # and runs with euid=0
  152. cp = --- # disable applet cp for everyone
  153. The file has to be owned by user root, group root and has to be
  154. writeable only by root:
  155. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  156. The busybox executable has to be owned by user root, group
  157. root and has to be setuid root for this to work:
  158. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  159. Robert 'sandman' Griebl has more information here:
  160. <url: http://www.softforge.de/bb/suid.html >.
  161. config FEATURE_SUID_CONFIG_QUIET
  162. bool "Suppress warning message if /etc/busybox.conf is not readable"
  163. default y
  164. depends on FEATURE_SUID_CONFIG
  165. help
  166. /etc/busybox.conf should be readable by the user needing the SUID, check
  167. this option to avoid users to be notified about missing permissions.
  168. config SELINUX
  169. bool "Support NSA Security Enhanced Linux"
  170. default n
  171. help
  172. Enable support for SELinux in applets ls, ps, and id. Also provide
  173. the option of compiling in SELinux applets.
  174. If you do not have a complete SELinux userland installed, this stuff
  175. will not compile. Go visit
  176. http://www.nsa.gov/selinux/index.html
  177. to download the necessary stuff to allow busybox to compile with
  178. this option enabled. Specifially, libselinux 1.28 or better is
  179. directly required by busybox. If the installation is located in a
  180. non-standard directory, provide it by invoking make as follows:
  181. CFLAGS=-I<libselinux-include-path> \
  182. LDFLAGS=-L<libselinux-lib-path> \
  183. make
  184. Most people will leave this set to 'N'.
  185. config FEATURE_PREFER_APPLETS
  186. bool "exec prefers applets"
  187. default n
  188. help
  189. This is an experimental option which directs applets about to
  190. call 'exec' to try and find an applicable busybox applet before
  191. searching the PATH. This is typically done by exec'ing
  192. /proc/self/exe.
  193. This may affect shell, find -exec, xargs and similar applets.
  194. They will use applets even if /bin/<applet> -> busybox link
  195. is missing (or is not a link to busybox). However, this causes
  196. problems in chroot jails without mounted /proc and with ps/top
  197. (command name can be shown as 'exe' for applets started this way).
  198. config BUSYBOX_EXEC_PATH
  199. string "Path to BusyBox executable"
  200. default "/proc/self/exe"
  201. help
  202. When Busybox applets need to run other busybox applets, BusyBox
  203. sometimes needs to exec() itself. When the /proc filesystem is
  204. mounted, /proc/self/exe always points to the currently running
  205. executable. If you haven't got /proc, set this to wherever you
  206. want to run BusyBox from.
  207. # These are auto-selected by other options
  208. config FEATURE_SYSLOG
  209. bool "Support for logging to syslog"
  210. default n
  211. help
  212. This option is auto-selected when you select any applet which may
  213. send its output to syslog. You do not need to select it manually.
  214. config FEATURE_HAVE_RPC
  215. bool "RPC support"
  216. default n
  217. help
  218. This is automatically selected if any of enabled applets need it.
  219. You do not need to select it manually.
  220. endmenu
  221. menu 'Build Options'
  222. config STATIC
  223. bool "Build BusyBox as a static binary (no shared libs)"
  224. default n
  225. help
  226. If you want to build a static BusyBox binary, which does not
  227. use or require any shared libraries, then enable this option.
  228. This can cause BusyBox to be considerably larger, so you should
  229. leave this option false unless you have a good reason (i.e.
  230. your target platform does not support shared libraries, or
  231. you are building an initrd which doesn't need anything but
  232. BusyBox, etc).
  233. Most people will leave this set to 'N'.
  234. config BUILD_LIBBUSYBOX
  235. bool "Build shared libbusybox"
  236. default n
  237. depends on !FEATURE_PREFER_APPLETS
  238. help
  239. Build a shared library libbusybox.so.N.N.N which contains all
  240. busybox code.
  241. This feature allows every applet to be built as a tiny
  242. separate executable. Enabling it for "one big busybox binary"
  243. approach serves no purpose and increases code size.
  244. You should almost certainly say "no" to this.
  245. ### config FEATURE_FULL_LIBBUSYBOX
  246. ### bool "Feature-complete libbusybox"
  247. ### default n if !FEATURE_SHARED_BUSYBOX
  248. ### depends on BUILD_LIBBUSYBOX
  249. ### help
  250. ### Build a libbusybox with the complete feature-set, disregarding
  251. ### the actually selected config.
  252. ###
  253. ### Normally, libbusybox will only contain the features which are
  254. ### used by busybox itself. If you plan to write a separate
  255. ### standalone application which uses libbusybox say 'Y'.
  256. ###
  257. ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
  258. ### might act as a copyright barrier. We can and will modify the
  259. ### exported function set between releases (even minor version number
  260. ### changes), and happily break out-of-tree features.
  261. ###
  262. ### Say 'N' if in doubt.
  263. config FEATURE_INDIVIDUAL
  264. bool "Produce a binary for each applet, linked against libbusybox"
  265. default y
  266. depends on !STATIC && BUILD_LIBBUSYBOX
  267. help
  268. If your CPU architecture doesn't allow for sharing text/rodata
  269. sections of running binaries, but allows for runtime dynamic
  270. libraries, this option will allow you to reduce memory footprint
  271. when you have many different applets running at once.
  272. If your CPU architecture allows for sharing text/rodata,
  273. having single binary is more optimal.
  274. Each applet will be a tiny program, dynamically linked
  275. against libbusybox.so.N.N.N.
  276. You need to have a working dynamic linker.
  277. config FEATURE_SHARED_BUSYBOX
  278. bool "Produce additional busybox binary linked against libbusybox"
  279. default y
  280. depends on !STATIC && BUILD_LIBBUSYBOX
  281. help
  282. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  283. You need to have a working dynamic linker.
  284. ### config BUILD_AT_ONCE
  285. ### bool "Compile all sources at once"
  286. ### default n
  287. ### help
  288. ### Normally each source-file is compiled with one invocation of
  289. ### the compiler.
  290. ### If you set this option, all sources are compiled at once.
  291. ### This gives the compiler more opportunities to optimize which can
  292. ### result in smaller and/or faster binaries.
  293. ###
  294. ### Setting this option will consume alot of memory, e.g. if you
  295. ### enable all applets with all features, gcc uses more than 300MB
  296. ### RAM during compilation of busybox.
  297. ###
  298. ### This option is most likely only beneficial for newer compilers
  299. ### such as gcc-4.1 and above.
  300. ###
  301. ### Say 'N' unless you know what you are doing.
  302. config LFS
  303. bool "Build with Large File Support (for accessing files > 2 GB)"
  304. default n
  305. select FDISK_SUPPORT_LARGE_DISKS
  306. help
  307. If you want to build BusyBox with large file support, then enable
  308. this option. This will have no effect if your kernel or your C
  309. library lacks large file support for large files. Some of the
  310. programs that can benefit from large file support include dd, gzip,
  311. cp, mount, tar, and many others. If you want to access files larger
  312. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  313. endmenu
  314. menu 'Debugging Options'
  315. config DEBUG
  316. bool "Build BusyBox with extra Debugging symbols"
  317. default n
  318. help
  319. Say Y here if you wish to examine BusyBox internals while applets are
  320. running. This increases the size of the binary considerably, and
  321. should only be used when doing development. If you are doing
  322. development and want to debug BusyBox, answer Y.
  323. Most people should answer N.
  324. config WERROR
  325. bool "Abort compilation on any warning"
  326. default n
  327. help
  328. Selecting this will add -Werror to gcc command line.
  329. Most people should answer N.
  330. # Seems to be unused
  331. #config DEBUG_PESSIMIZE
  332. # bool "Disable compiler optimizations."
  333. # default n
  334. # depends on DEBUG
  335. # help
  336. # The compiler's optimization of source code can eliminate and reorder
  337. # code, resulting in an executable that's hard to understand when
  338. # stepping through it with a debugger. This switches it off, resulting
  339. # in a much bigger executable that more closely matches the source
  340. # code.
  341. choice
  342. prompt "Additional debugging library"
  343. default NO_DEBUG_LIB
  344. help
  345. Using an additional debugging library will make BusyBox become
  346. considerable larger and will cause it to run more slowly. You
  347. should always leave this option disabled for production use.
  348. dmalloc support:
  349. ----------------
  350. This enables compiling with dmalloc ( http://dmalloc.com/ )
  351. which is an excellent public domain mem leak and malloc problem
  352. detector. To enable dmalloc, before running busybox you will
  353. want to properly set your environment, for example:
  354. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  355. The 'debug=' value is generated using the following command
  356. dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
  357. -p check-fence -p check-heap -p check-lists -p check-blank \
  358. -p check-funcs -p realloc-copy -p allow-free-null
  359. Electric-fence support:
  360. -----------------------
  361. This enables compiling with Electric-fence support. Electric
  362. fence is another very useful malloc debugging library which uses
  363. your computer's virtual memory hardware to detect illegal memory
  364. accesses. This support will make BusyBox be considerable larger
  365. and run slower, so you should leave this option disabled unless
  366. you are hunting a hard to find memory problem.
  367. config NO_DEBUG_LIB
  368. bool "None"
  369. config DMALLOC
  370. bool "Dmalloc"
  371. config EFENCE
  372. bool "Electric-fence"
  373. endchoice
  374. config INCLUDE_SUSv2
  375. bool "Enable obsolete features removed before SUSv3?"
  376. default y
  377. help
  378. This option will enable backwards compatibility with SuSv2,
  379. specifically, old-style numeric options ('command -1 <file>')
  380. will be supported in head, tail, and fold. (Note: should
  381. affect renice too.)
  382. endmenu
  383. menu 'Installation Options'
  384. config INSTALL_NO_USR
  385. bool "Don't use /usr"
  386. default n
  387. help
  388. Disable use of /usr. Don't activate this option if you don't know
  389. that you really want this behaviour.
  390. choice
  391. prompt "Applets links"
  392. default INSTALL_APPLET_SYMLINKS
  393. help
  394. Choose how you install applets links.
  395. config INSTALL_APPLET_SYMLINKS
  396. bool "as soft-links"
  397. help
  398. Install applets as soft-links to the busybox binary. This needs some
  399. free inodes on the filesystem, but might help with filesystem
  400. generators that can't cope with hard-links.
  401. config INSTALL_APPLET_HARDLINKS
  402. bool "as hard-links"
  403. help
  404. Install applets as hard-links to the busybox binary. This might count
  405. on a filesystem with few inodes.
  406. config INSTALL_APPLET_SCRIPT_WRAPPERS
  407. bool "as script wrappers"
  408. help
  409. Install applets as script wrappers that call the busybox binary.
  410. config INSTALL_APPLET_DONT
  411. bool "not installed"
  412. depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE || FEATURE_PREFER_APPLETS
  413. help
  414. Do not install applet links. Useful when using the -install feature
  415. or a standalone shell for rescue purposes.
  416. endchoice
  417. choice
  418. prompt "/bin/sh applet link"
  419. default INSTALL_SH_APPLET_SYMLINK
  420. depends on INSTALL_APPLET_SCRIPT_WRAPPERS
  421. help
  422. Choose how you install /bin/sh applet link.
  423. config INSTALL_SH_APPLET_SYMLINK
  424. bool "as soft-link"
  425. help
  426. Install /bin/sh applet as soft-link to the busybox binary.
  427. config INSTALL_SH_APPLET_HARDLINK
  428. bool "as hard-link"
  429. help
  430. Install /bin/sh applet as hard-link to the busybox binary.
  431. config INSTALL_SH_APPLET_SCRIPT_WRAPPER
  432. bool "as script wrapper"
  433. help
  434. Install /bin/sh applet as script wrapper that call the busybox binary.
  435. endchoice
  436. config PREFIX
  437. string "BusyBox installation prefix"
  438. default "./_install"
  439. help
  440. Define your directory to install BusyBox files/subdirs in.
  441. endmenu
  442. source libbb/Config.in
  443. endmenu
  444. comment "Applets"
  445. source archival/Config.in
  446. source coreutils/Config.in
  447. source console-tools/Config.in
  448. source debianutils/Config.in
  449. source editors/Config.in
  450. source findutils/Config.in
  451. source init/Config.in
  452. source loginutils/Config.in
  453. source e2fsprogs/Config.in
  454. source modutils/Config.in
  455. source util-linux/Config.in
  456. source miscutils/Config.in
  457. source networking/Config.in
  458. source procps/Config.in
  459. source shell/Config.in
  460. source sysklogd/Config.in
  461. source runit/Config.in
  462. source selinux/Config.in
  463. source ipsvd/Config.in