Config.in 20 KB

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