Config.in 19 KB

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