Config.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  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 "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 NOMMU
  235. bool "Force NOMMU build"
  236. default n
  237. help
  238. Busybox tries to detect whether architecture it is being
  239. built against supports MMU or not. If this detection fails,
  240. or if you want to build NOMMU version of busybox for testing,
  241. you may force NOMMU build here.
  242. Most people will leave this set to 'N'.
  243. config BUILD_LIBBUSYBOX
  244. bool "Build shared libbusybox"
  245. default n
  246. depends on !FEATURE_PREFER_APPLETS
  247. help
  248. Build a shared library libbusybox.so.N.N.N which contains all
  249. busybox code.
  250. This feature allows every applet to be built as a tiny
  251. separate executable. Enabling it for "one big busybox binary"
  252. approach serves no purpose and increases code size.
  253. You should almost certainly say "no" to this.
  254. ### config FEATURE_FULL_LIBBUSYBOX
  255. ### bool "Feature-complete libbusybox"
  256. ### default n if !FEATURE_SHARED_BUSYBOX
  257. ### depends on BUILD_LIBBUSYBOX
  258. ### help
  259. ### Build a libbusybox with the complete feature-set, disregarding
  260. ### the actually selected config.
  261. ###
  262. ### Normally, libbusybox will only contain the features which are
  263. ### used by busybox itself. If you plan to write a separate
  264. ### standalone application which uses libbusybox say 'Y'.
  265. ###
  266. ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
  267. ### might act as a copyright barrier. We can and will modify the
  268. ### exported function set between releases (even minor version number
  269. ### changes), and happily break out-of-tree features.
  270. ###
  271. ### Say 'N' if in doubt.
  272. config FEATURE_INDIVIDUAL
  273. bool "Produce a binary for each applet, linked against libbusybox"
  274. default y
  275. depends on !STATIC && BUILD_LIBBUSYBOX
  276. help
  277. If your CPU architecture doesn't allow for sharing text/rodata
  278. sections of running binaries, but allows for runtime dynamic
  279. libraries, this option will allow you to reduce memory footprint
  280. when you have many different applets running at once.
  281. If your CPU architecture allows for sharing text/rodata,
  282. having single binary is more optimal.
  283. Each applet will be a tiny program, dynamically linked
  284. against libbusybox.so.N.N.N.
  285. You need to have a working dynamic linker.
  286. config FEATURE_SHARED_BUSYBOX
  287. bool "Produce additional busybox binary linked against libbusybox"
  288. default y
  289. depends on !STATIC && BUILD_LIBBUSYBOX
  290. help
  291. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  292. You need to have a working dynamic linker.
  293. ### config BUILD_AT_ONCE
  294. ### bool "Compile all sources at once"
  295. ### default n
  296. ### help
  297. ### Normally each source-file is compiled with one invocation of
  298. ### the compiler.
  299. ### If you set this option, all sources are compiled at once.
  300. ### This gives the compiler more opportunities to optimize which can
  301. ### result in smaller and/or faster binaries.
  302. ###
  303. ### Setting this option will consume alot of memory, e.g. if you
  304. ### enable all applets with all features, gcc uses more than 300MB
  305. ### RAM during compilation of busybox.
  306. ###
  307. ### This option is most likely only beneficial for newer compilers
  308. ### such as gcc-4.1 and above.
  309. ###
  310. ### Say 'N' unless you know what you are doing.
  311. config LFS
  312. bool "Build with Large File Support (for accessing files > 2 GB)"
  313. default n
  314. select FDISK_SUPPORT_LARGE_DISKS
  315. help
  316. If you want to build BusyBox with large file support, then enable
  317. this option. This will have no effect if your kernel or your C
  318. library lacks large file support for large files. Some of the
  319. programs that can benefit from large file support include dd, gzip,
  320. cp, mount, tar, and many others. If you want to access files larger
  321. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  322. endmenu
  323. menu 'Debugging Options'
  324. config DEBUG
  325. bool "Build BusyBox with extra Debugging symbols"
  326. default n
  327. help
  328. Say Y here if you wish to examine BusyBox internals while applets are
  329. running. This increases the size of the binary considerably, and
  330. should only be used when doing development. If you are doing
  331. development and want to debug BusyBox, answer Y.
  332. Most people should answer N.
  333. config WERROR
  334. bool "Abort compilation on any warning"
  335. default n
  336. help
  337. Selecting this will add -Werror to gcc command line.
  338. Most people should answer N.
  339. # Seems to be unused
  340. #config DEBUG_PESSIMIZE
  341. # bool "Disable compiler optimizations."
  342. # default n
  343. # depends on DEBUG
  344. # help
  345. # The compiler's optimization of source code can eliminate and reorder
  346. # code, resulting in an executable that's hard to understand when
  347. # stepping through it with a debugger. This switches it off, resulting
  348. # in a much bigger executable that more closely matches the source
  349. # code.
  350. choice
  351. prompt "Additional debugging library"
  352. default NO_DEBUG_LIB
  353. help
  354. Using an additional debugging library will make BusyBox become
  355. considerable larger and will cause it to run more slowly. You
  356. should always leave this option disabled for production use.
  357. dmalloc support:
  358. ----------------
  359. This enables compiling with dmalloc ( http://dmalloc.com/ )
  360. which is an excellent public domain mem leak and malloc problem
  361. detector. To enable dmalloc, before running busybox you will
  362. want to properly set your environment, for example:
  363. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  364. The 'debug=' value is generated using the following command
  365. dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
  366. -p check-fence -p check-heap -p check-lists -p check-blank \
  367. -p check-funcs -p realloc-copy -p allow-free-null
  368. Electric-fence support:
  369. -----------------------
  370. This enables compiling with Electric-fence support. Electric
  371. fence is another very useful malloc debugging library which uses
  372. your computer's virtual memory hardware to detect illegal memory
  373. accesses. This support will make BusyBox be considerable larger
  374. and run slower, so you should leave this option disabled unless
  375. you are hunting a hard to find memory problem.
  376. config NO_DEBUG_LIB
  377. bool "None"
  378. config DMALLOC
  379. bool "Dmalloc"
  380. config EFENCE
  381. bool "Electric-fence"
  382. endchoice
  383. config INCLUDE_SUSv2
  384. bool "Enable obsolete features removed before SUSv3?"
  385. default y
  386. help
  387. This option will enable backwards compatibility with SuSv2,
  388. specifically, old-style numeric options ('command -1 <file>')
  389. will be supported in head, tail, and fold. (Note: should
  390. affect renice too.)
  391. endmenu
  392. menu 'Installation Options'
  393. config INSTALL_NO_USR
  394. bool "Don't use /usr"
  395. default n
  396. help
  397. Disable use of /usr. Don't activate this option if you don't know
  398. that you really want this behaviour.
  399. choice
  400. prompt "Applets links"
  401. default INSTALL_APPLET_SYMLINKS
  402. help
  403. Choose how you install applets links.
  404. config INSTALL_APPLET_SYMLINKS
  405. bool "as soft-links"
  406. help
  407. Install applets as soft-links to the busybox binary. This needs some
  408. free inodes on the filesystem, but might help with filesystem
  409. generators that can't cope with hard-links.
  410. config INSTALL_APPLET_HARDLINKS
  411. bool "as hard-links"
  412. help
  413. Install applets as hard-links to the busybox binary. This might count
  414. on a filesystem with few inodes.
  415. config INSTALL_APPLET_SCRIPT_WRAPPERS
  416. bool "as script wrappers"
  417. help
  418. Install applets as script wrappers that call the busybox binary.
  419. config INSTALL_APPLET_DONT
  420. bool "not installed"
  421. depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE || FEATURE_PREFER_APPLETS
  422. help
  423. Do not install applet links. Useful when using the -install feature
  424. or a standalone shell for rescue purposes.
  425. endchoice
  426. choice
  427. prompt "/bin/sh applet link"
  428. default INSTALL_SH_APPLET_SYMLINK
  429. depends on INSTALL_APPLET_SCRIPT_WRAPPERS
  430. help
  431. Choose how you install /bin/sh applet link.
  432. config INSTALL_SH_APPLET_SYMLINK
  433. bool "as soft-link"
  434. help
  435. Install /bin/sh applet as soft-link to the busybox binary.
  436. config INSTALL_SH_APPLET_HARDLINK
  437. bool "as hard-link"
  438. help
  439. Install /bin/sh applet as hard-link to the busybox binary.
  440. config INSTALL_SH_APPLET_SCRIPT_WRAPPER
  441. bool "as script wrapper"
  442. help
  443. Install /bin/sh applet as script wrapper that call the busybox binary.
  444. endchoice
  445. config PREFIX
  446. string "BusyBox installation prefix"
  447. default "./_install"
  448. help
  449. Define your directory to install BusyBox files/subdirs in.
  450. endmenu
  451. source libbb/Config.in
  452. endmenu
  453. comment "Applets"
  454. source archival/Config.in
  455. source coreutils/Config.in
  456. source console-tools/Config.in
  457. source debianutils/Config.in
  458. source editors/Config.in
  459. source findutils/Config.in
  460. source init/Config.in
  461. source loginutils/Config.in
  462. source e2fsprogs/Config.in
  463. source modutils/Config.in
  464. source util-linux/Config.in
  465. source miscutils/Config.in
  466. source networking/Config.in
  467. source procps/Config.in
  468. source shell/Config.in
  469. source sysklogd/Config.in
  470. source runit/Config.in
  471. source selinux/Config.in
  472. source printutils/Config.in