2
0

Config.in 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. config BUSYBOX_CONFIG_HAVE_DOT_CONFIG
  6. bool
  7. default BUSYBOX_DEFAULT_HAVE_DOT_CONFIG
  8. menu "Busybox Settings"
  9. menu "General Configuration"
  10. config BUSYBOX_CONFIG_DESKTOP
  11. bool "Enable options for full-blown desktop systems"
  12. default BUSYBOX_DEFAULT_DESKTOP
  13. help
  14. Enable options and features which are not essential.
  15. Select this only if you plan to use busybox on full-blown
  16. desktop machine with common Linux distro, not on an embedded box.
  17. config BUSYBOX_CONFIG_EXTRA_COMPAT
  18. bool "Provide compatible behavior for rare corner cases (bigger code)"
  19. default BUSYBOX_DEFAULT_EXTRA_COMPAT
  20. help
  21. This option makes grep, sed etc handle rare corner cases
  22. (embedded NUL bytes and such). This makes code bigger and uses
  23. some GNU extensions in libc. You probably only need this option
  24. if you plan to run busybox on desktop.
  25. config BUSYBOX_CONFIG_INCLUDE_SUSv2
  26. bool "Enable obsolete features removed before SUSv3"
  27. default BUSYBOX_DEFAULT_INCLUDE_SUSv2
  28. help
  29. This option will enable backwards compatibility with SuSv2,
  30. specifically, old-style numeric options ('command -1 <file>')
  31. will be supported in head, tail, and fold. (Note: should
  32. affect renice too.)
  33. config BUSYBOX_CONFIG_USE_PORTABLE_CODE
  34. bool "Avoid using GCC-specific code constructs"
  35. default BUSYBOX_DEFAULT_USE_PORTABLE_CODE
  36. help
  37. Use this option if you are trying to compile busybox with
  38. compiler other than gcc.
  39. If you do use gcc, this option may needlessly increase code size.
  40. config BUSYBOX_CONFIG_PLATFORM_LINUX
  41. bool "Enable Linux-specific applets and features"
  42. default BUSYBOX_DEFAULT_PLATFORM_LINUX
  43. help
  44. For the most part, busybox requires only POSIX compatibility
  45. from the target system, but some applets and features use
  46. Linux-specific interfaces.
  47. Answering 'N' here will disable such applets and hide the
  48. corresponding configuration options.
  49. choice
  50. prompt "Buffer allocation policy"
  51. default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
  52. help
  53. There are 3 ways BusyBox can handle buffer allocations:
  54. - Use malloc. This costs code size for the call to xmalloc.
  55. - Put them on stack. For some very small machines with limited stack
  56. space, this can be deadly. For most folks, this works just fine.
  57. - Put them in BSS. This works beautifully for computers with a real
  58. MMU (and OS support), but wastes runtime RAM for uCLinux. This
  59. behavior was the only one available for BusyBox versions 0.48 and
  60. earlier.
  61. config BUSYBOX_CONFIG_FEATURE_BUFFERS_USE_MALLOC
  62. bool "Allocate with Malloc"
  63. config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
  64. bool "Allocate on the Stack"
  65. config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_IN_BSS
  66. bool "Allocate in the .bss section"
  67. endchoice
  68. config BUSYBOX_CONFIG_SHOW_USAGE
  69. bool "Show applet usage messages"
  70. default BUSYBOX_DEFAULT_SHOW_USAGE
  71. help
  72. Enabling this option, BusyBox applets will show terse help messages
  73. when invoked with wrong arguments.
  74. If you do not want to show any (helpful) usage message when
  75. issuing wrong command syntax, you can say 'N' here,
  76. saving approximately 7k.
  77. config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
  78. bool "Show verbose applet usage messages"
  79. default BUSYBOX_DEFAULT_FEATURE_VERBOSE_USAGE
  80. depends on BUSYBOX_CONFIG_SHOW_USAGE
  81. help
  82. All BusyBox applets will show verbose help messages when
  83. busybox is invoked with --help. This will add a lot of text to the
  84. busybox binary. In the default configuration, this will add about
  85. 13k, but it can add much more depending on your configuration.
  86. config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
  87. bool "Store applet usage messages in compressed form"
  88. default BUSYBOX_DEFAULT_FEATURE_COMPRESS_USAGE
  89. depends on BUSYBOX_CONFIG_SHOW_USAGE
  90. help
  91. Store usage messages in .bz compressed form, uncompress them
  92. on-the-fly when <applet> --help is called.
  93. If you have a really tiny busybox with few applets enabled (and
  94. bunzip2 isn't one of them), the overhead of the decompressor might
  95. be noticeable. Also, if you run executables directly from ROM
  96. and have very little memory, this might not be a win. Otherwise,
  97. you probably want this.
  98. config BUSYBOX_CONFIG_BUSYBOX
  99. bool "Include busybox applet"
  100. default BUSYBOX_DEFAULT_BUSYBOX
  101. help
  102. The busybox applet provides general help regarding busybox and
  103. allows the included applets to be listed. It's also required
  104. if applet links are to be installed at runtime.
  105. If you can live without these features disabling this will save
  106. some space.
  107. config BUSYBOX_CONFIG_FEATURE_INSTALLER
  108. bool "Support --install [-s] to install applet links at runtime"
  109. default BUSYBOX_DEFAULT_FEATURE_INSTALLER
  110. depends on BUSYBOX_CONFIG_BUSYBOX
  111. help
  112. Enable 'busybox --install [-s]' support. This will allow you to use
  113. busybox at runtime to create hard links or symlinks for all the
  114. applets that are compiled into busybox.
  115. config BUSYBOX_CONFIG_INSTALL_NO_USR
  116. bool "Don't use /usr"
  117. default BUSYBOX_DEFAULT_INSTALL_NO_USR
  118. help
  119. Disable use of /usr. busybox --install and "make install"
  120. will install applets only to /bin and /sbin,
  121. never to /usr/bin or /usr/sbin.
  122. config BUSYBOX_CONFIG_LOCALE_SUPPORT
  123. bool "Enable locale support (system needs locale for this to work)"
  124. default BUSYBOX_DEFAULT_LOCALE_SUPPORT
  125. help
  126. Enable this if your system has locale support and you would like
  127. busybox to support locale settings.
  128. config BUSYBOX_CONFIG_UNICODE_SUPPORT
  129. bool "Support Unicode"
  130. default BUSYBOX_DEFAULT_UNICODE_SUPPORT
  131. help
  132. This makes various applets aware that one byte is not
  133. one character on screen.
  134. Busybox aims to eventually work correctly with Unicode displays.
  135. Any older encodings are not guaranteed to work.
  136. Probably by the time when busybox will be fully Unicode-clean,
  137. other encodings will be mainly of historic interest.
  138. config BUSYBOX_CONFIG_UNICODE_USING_LOCALE
  139. bool "Use libc routines for Unicode (else uses internal ones)"
  140. default BUSYBOX_DEFAULT_UNICODE_USING_LOCALE
  141. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT && BUSYBOX_CONFIG_LOCALE_SUPPORT
  142. help
  143. With this option on, Unicode support is implemented using libc
  144. routines. Otherwise, internal implementation is used.
  145. Internal implementation is smaller.
  146. config BUSYBOX_CONFIG_FEATURE_CHECK_UNICODE_IN_ENV
  147. bool "Check $LC_ALL, $LC_CTYPE and $LANG environment variables"
  148. default BUSYBOX_DEFAULT_FEATURE_CHECK_UNICODE_IN_ENV
  149. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT && !BUSYBOX_CONFIG_UNICODE_USING_LOCALE
  150. help
  151. With this option on, Unicode support is activated
  152. only if locale-related variables have the value of the form
  153. "xxxx.utf8"
  154. Otherwise, Unicode support will be always enabled and active.
  155. config BUSYBOX_CONFIG_SUBST_WCHAR
  156. int "Character code to substitute unprintable characters with"
  157. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT
  158. default BUSYBOX_DEFAULT_SUBST_WCHAR
  159. help
  160. Typical values are 63 for '?' (works with any output device),
  161. 30 for ASCII substitute control code,
  162. 65533 (0xfffd) for Unicode replacement character.
  163. config BUSYBOX_CONFIG_LAST_SUPPORTED_WCHAR
  164. int "Range of supported Unicode characters"
  165. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT
  166. default BUSYBOX_DEFAULT_LAST_SUPPORTED_WCHAR
  167. help
  168. Any character with Unicode value bigger than this is assumed
  169. to be non-printable on output device. Many applets replace
  170. such chars with substitution character.
  171. The idea is that many valid printable Unicode chars are
  172. nevertheless are not displayed correctly. Think about
  173. combining charachers, double-wide hieroglyphs, obscure
  174. characters in dozens of ancient scripts...
  175. Many terminals, terminal emulators, xterms etc will fail
  176. to handle them correctly. Choose the smallest value
  177. which suits your needs.
  178. Typical values are:
  179. 126 - ASCII only
  180. 767 (0x2ff) - there are no combining chars in [0..767] range
  181. (the range includes Latin 1, Latin Ext. A and B),
  182. code is ~700 bytes smaller for this case.
  183. 4351 (0x10ff) - there are no double-wide chars in [0..4351] range,
  184. code is ~300 bytes smaller for this case.
  185. 12799 (0x31ff) - nearly all non-ideographic characters are
  186. available in [0..12799] range, including
  187. East Asian scripts like katakana, hiragana, hangul,
  188. bopomofo...
  189. 0 - off, any valid printable Unicode character will be printed.
  190. config BUSYBOX_CONFIG_UNICODE_COMBINING_WCHARS
  191. bool "Allow zero-width Unicode characters on output"
  192. default BUSYBOX_DEFAULT_UNICODE_COMBINING_WCHARS
  193. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT
  194. help
  195. With this option off, any Unicode char with width of 0
  196. is substituted on output.
  197. config BUSYBOX_CONFIG_UNICODE_WIDE_WCHARS
  198. bool "Allow wide Unicode characters on output"
  199. default BUSYBOX_DEFAULT_UNICODE_WIDE_WCHARS
  200. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT
  201. help
  202. With this option off, any Unicode char with width > 1
  203. is substituted on output.
  204. config BUSYBOX_CONFIG_UNICODE_BIDI_SUPPORT
  205. bool "Bidirectional character-aware line input"
  206. default BUSYBOX_DEFAULT_UNICODE_BIDI_SUPPORT
  207. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT && !BUSYBOX_CONFIG_UNICODE_USING_LOCALE
  208. help
  209. With this option on, right-to-left Unicode characters
  210. are treated differently on input (e.g. cursor movement).
  211. config BUSYBOX_CONFIG_UNICODE_NEUTRAL_TABLE
  212. bool "In bidi input, support non-ASCII neutral chars too"
  213. default BUSYBOX_DEFAULT_UNICODE_NEUTRAL_TABLE
  214. depends on BUSYBOX_CONFIG_UNICODE_BIDI_SUPPORT
  215. help
  216. In most cases it's enough to treat only ASCII non-letters
  217. (i.e. punctuation, numbers and space) as characters
  218. with neutral directionality.
  219. With this option on, more extensive (and bigger) table
  220. of neutral chars will be used.
  221. config BUSYBOX_CONFIG_UNICODE_PRESERVE_BROKEN
  222. bool "Make it possible to enter sequences of chars which are not Unicode"
  223. default BUSYBOX_DEFAULT_UNICODE_PRESERVE_BROKEN
  224. depends on BUSYBOX_CONFIG_UNICODE_SUPPORT
  225. help
  226. With this option on, on line-editing input (such as used by shells)
  227. invalid UTF-8 bytes are not substituted with the selected
  228. substitution character.
  229. For example, this means that entering 'l', 's', ' ', 0xff, [Enter]
  230. at shell prompt will list file named 0xff (single char name
  231. with char value 255), not file named '?'.
  232. config BUSYBOX_CONFIG_PAM
  233. bool "Support for PAM (Pluggable Authentication Modules)"
  234. default BUSYBOX_DEFAULT_PAM
  235. help
  236. Use PAM in some busybox applets (currently login and httpd) instead
  237. of direct access to password database.
  238. config BUSYBOX_CONFIG_FEATURE_USE_SENDFILE
  239. bool "Use sendfile system call"
  240. default BUSYBOX_DEFAULT_FEATURE_USE_SENDFILE
  241. select BUSYBOX_CONFIG_PLATFORM_LINUX
  242. help
  243. When enabled, busybox will use the kernel sendfile() function
  244. instead of read/write loops to copy data between file descriptors
  245. (for example, cp command does this a lot).
  246. If sendfile() doesn't work, copying code falls back to read/write
  247. loop. sendfile() was originally implemented for faster I/O
  248. from files to sockets, but since Linux 2.6.33 it was extended
  249. to work for many more file types.
  250. config BUSYBOX_CONFIG_LONG_OPTS
  251. bool "Support for --long-options"
  252. default BUSYBOX_DEFAULT_LONG_OPTS
  253. help
  254. Enable this if you want busybox applets to use the gnu --long-option
  255. style, in addition to single character -a -b -c style options.
  256. config BUSYBOX_CONFIG_FEATURE_DEVPTS
  257. bool "Use the devpts filesystem for Unix98 PTYs"
  258. default BUSYBOX_DEFAULT_FEATURE_DEVPTS
  259. help
  260. Enable if you want BusyBox to use Unix98 PTY support. If enabled,
  261. busybox will use /dev/ptmx for the master side of the pseudoterminal
  262. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  263. /dev/ttyp<number> will be used. To use this option, you should have
  264. devpts mounted.
  265. config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
  266. bool "Clean up all memory before exiting (usually not needed)"
  267. default BUSYBOX_DEFAULT_FEATURE_CLEAN_UP
  268. help
  269. As a size optimization, busybox normally exits without explicitly
  270. freeing dynamically allocated memory or closing files. This saves
  271. space since the OS will clean up for us, but it can confuse debuggers
  272. like valgrind, which report tons of memory and resource leaks.
  273. Don't enable this unless you have a really good reason to clean
  274. things up manually.
  275. config BUSYBOX_CONFIG_FEATURE_UTMP
  276. bool "Support utmp file"
  277. default BUSYBOX_DEFAULT_FEATURE_UTMP
  278. help
  279. The file /var/run/utmp is used to track who is currently logged in.
  280. With this option on, certain applets (getty, login, telnetd etc)
  281. will create and delete entries there.
  282. "who" applet requires this option.
  283. config BUSYBOX_CONFIG_FEATURE_WTMP
  284. bool "Support wtmp file"
  285. default BUSYBOX_DEFAULT_FEATURE_WTMP
  286. depends on BUSYBOX_CONFIG_FEATURE_UTMP
  287. help
  288. The file /var/run/wtmp is used to track when users have logged into
  289. and logged out of the system.
  290. With this option on, certain applets (getty, login, telnetd etc)
  291. will append new entries there.
  292. "last" applet requires this option.
  293. config BUSYBOX_CONFIG_FEATURE_PIDFILE
  294. bool "Support writing pidfiles"
  295. default BUSYBOX_DEFAULT_FEATURE_PIDFILE
  296. help
  297. This option makes some applets (e.g. crond, syslogd, inetd) write
  298. a pidfile at the configured PID_FILE_PATH. It has no effect
  299. on applets which require pidfiles to run.
  300. config BUSYBOX_CONFIG_PID_FILE_PATH
  301. string "Path to directory for pidfile"
  302. default BUSYBOX_DEFAULT_PID_FILE_PATH
  303. depends on BUSYBOX_CONFIG_FEATURE_PIDFILE
  304. help
  305. This is the default path where pidfiles are created. Applets which
  306. allow you to set the pidfile path on the command line will override
  307. this value. The option has no effect on applets that require you to
  308. specify a pidfile path.
  309. config BUSYBOX_CONFIG_FEATURE_SUID
  310. bool "Support for SUID/SGID handling"
  311. default BUSYBOX_DEFAULT_FEATURE_SUID
  312. help
  313. With this option you can install the busybox binary belonging
  314. to root with the suid bit set, enabling some applets to perform
  315. root-level operations even when run by ordinary users
  316. (for example, mounting of user mounts in fstab needs this).
  317. Busybox will automatically drop privileges for applets
  318. that don't need root access.
  319. If you are really paranoid and don't want to do this, build two
  320. busybox binaries with different applets in them (and the appropriate
  321. symlinks pointing to each binary), and only set the suid bit on the
  322. one that needs it.
  323. The applets which require root rights (need suid bit or
  324. to be run by root) and will refuse to execute otherwise:
  325. crontab, login, passwd, su, vlock, wall.
  326. The applets which will use root rights if they have them
  327. (via suid bit, or because run by root), but would try to work
  328. without root right nevertheless:
  329. findfs, ping[6], traceroute[6], mount.
  330. Note that if you DONT select this option, but DO make busybox
  331. suid root, ALL applets will run under root, which is a huge
  332. security hole (think "cp /some/file /etc/passwd").
  333. config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
  334. bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
  335. default BUSYBOX_DEFAULT_FEATURE_SUID_CONFIG
  336. depends on BUSYBOX_CONFIG_FEATURE_SUID
  337. help
  338. Allow the SUID / SGID state of an applet to be determined at runtime
  339. by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
  340. The format of this file is as follows:
  341. APPLET = [Ssx-][Ssx-][x-] [USER.GROUP]
  342. s: USER or GROUP is allowed to execute APPLET.
  343. APPLET will run under USER or GROUP
  344. (reagardless of who's running it).
  345. S: USER or GROUP is NOT allowed to execute APPLET.
  346. APPLET will run under USER or GROUP.
  347. This option is not very sensical.
  348. x: USER/GROUP/others are allowed to execute APPLET.
  349. No UID/GID change will be done when it is run.
  350. -: USER/GROUP/others are not allowed to execute APPLET.
  351. An example might help:
  352. [SUID]
  353. su = ssx root.0 # applet su can be run by anyone and runs with
  354. # euid=0/egid=0
  355. su = ssx # exactly the same
  356. mount = sx- root.disk # applet mount can be run by root and members
  357. # of group disk (but not anyone else)
  358. # and runs with euid=0 (egid is not changed)
  359. cp = --- # disable applet cp for everyone
  360. The file has to be owned by user root, group root and has to be
  361. writeable only by root:
  362. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  363. The busybox executable has to be owned by user root, group
  364. root and has to be setuid root for this to work:
  365. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  366. Robert 'sandman' Griebl has more information here:
  367. <url: http://www.softforge.de/bb/suid.html >.
  368. config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET
  369. bool "Suppress warning message if /etc/busybox.conf is not readable"
  370. default BUSYBOX_DEFAULT_FEATURE_SUID_CONFIG_QUIET
  371. depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
  372. help
  373. /etc/busybox.conf should be readable by the user needing the SUID,
  374. check this option to avoid users to be notified about missing
  375. permissions.
  376. config BUSYBOX_CONFIG_SELINUX
  377. bool "Support NSA Security Enhanced Linux"
  378. default BUSYBOX_DEFAULT_SELINUX
  379. select BUSYBOX_CONFIG_PLATFORM_LINUX
  380. help
  381. Enable support for SELinux in applets ls, ps, and id. Also provide
  382. the option of compiling in SELinux applets.
  383. If you do not have a complete SELinux userland installed, this stuff
  384. will not compile. Specifially, libselinux 1.28 or better is
  385. directly required by busybox. If the installation is located in a
  386. non-standard directory, provide it by invoking make as follows:
  387. CFLAGS=-I<libselinux-include-path> \
  388. LDFLAGS=-L<libselinux-lib-path> \
  389. make
  390. Most people will leave this set to 'N'.
  391. config BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
  392. bool "exec prefers applets"
  393. default BUSYBOX_DEFAULT_FEATURE_PREFER_APPLETS
  394. help
  395. This is an experimental option which directs applets about to
  396. call 'exec' to try and find an applicable busybox applet before
  397. searching the PATH. This is typically done by exec'ing
  398. /proc/self/exe.
  399. This may affect shell, find -exec, xargs and similar applets.
  400. They will use applets even if /bin/<applet> -> busybox link
  401. is missing (or is not a link to busybox). However, this causes
  402. problems in chroot jails without mounted /proc and with ps/top
  403. (command name can be shown as 'exe' for applets started this way).
  404. config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
  405. string "Path to BusyBox executable"
  406. default BUSYBOX_DEFAULT_BUSYBOX_EXEC_PATH
  407. help
  408. When Busybox applets need to run other busybox applets, BusyBox
  409. sometimes needs to exec() itself. When the /proc filesystem is
  410. mounted, /proc/self/exe always points to the currently running
  411. executable. If you haven't got /proc, set this to wherever you
  412. want to run BusyBox from.
  413. # These are auto-selected by other options
  414. config BUSYBOX_CONFIG_FEATURE_SYSLOG
  415. bool #No description makes it a hidden option
  416. default BUSYBOX_DEFAULT_FEATURE_SYSLOG
  417. #help
  418. # This option is auto-selected when you select any applet which may
  419. # send its output to syslog. You do not need to select it manually.
  420. config BUSYBOX_CONFIG_FEATURE_HAVE_RPC
  421. bool #No description makes it a hidden option
  422. default BUSYBOX_DEFAULT_FEATURE_HAVE_RPC
  423. #help
  424. # This is automatically selected if any of enabled applets need it.
  425. # You do not need to select it manually.
  426. endmenu
  427. menu 'Build Options'
  428. config BUSYBOX_CONFIG_STATIC
  429. bool "Build BusyBox as a static binary (no shared libs)"
  430. default BUSYBOX_DEFAULT_STATIC
  431. help
  432. If you want to build a static BusyBox binary, which does not
  433. use or require any shared libraries, then enable this option.
  434. This can cause BusyBox to be considerably larger, so you should
  435. leave this option false unless you have a good reason (i.e.
  436. your target platform does not support shared libraries, or
  437. you are building an initrd which doesn't need anything but
  438. BusyBox, etc).
  439. Most people will leave this set to 'N'.
  440. config BUSYBOX_CONFIG_PIE
  441. bool "Build BusyBox as a position independent executable"
  442. default BUSYBOX_DEFAULT_PIE
  443. depends on !BUSYBOX_CONFIG_STATIC
  444. help
  445. Hardened code option. PIE binaries are loaded at a different
  446. address at each invocation. This has some overhead,
  447. particularly on x86-32 which is short on registers.
  448. Most people will leave this set to 'N'.
  449. config BUSYBOX_CONFIG_NOMMU
  450. bool "Force NOMMU build"
  451. default BUSYBOX_DEFAULT_NOMMU
  452. help
  453. Busybox tries to detect whether architecture it is being
  454. built against supports MMU or not. If this detection fails,
  455. or if you want to build NOMMU version of busybox for testing,
  456. you may force NOMMU build here.
  457. Most people will leave this set to 'N'.
  458. # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
  459. # build system does not support that
  460. config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  461. bool "Build shared libbusybox"
  462. default BUSYBOX_DEFAULT_BUILD_LIBBUSYBOX
  463. depends on !BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS && !BUSYBOX_CONFIG_PIE && !BUSYBOX_CONFIG_STATIC
  464. help
  465. Build a shared library libbusybox.so.N.N.N which contains all
  466. busybox code.
  467. This feature allows every applet to be built as a tiny
  468. separate executable. Enabling it for "one big busybox binary"
  469. approach serves no purpose and increases code size.
  470. You should almost certainly say "no" to this.
  471. ### config FEATURE_FULL_LIBBUSYBOX
  472. ### bool "Feature-complete libbusybox"
  473. ### default n if !FEATURE_SHARED_BUSYBOX
  474. ### depends on BUILD_LIBBUSYBOX
  475. ### help
  476. ### Build a libbusybox with the complete feature-set, disregarding
  477. ### the actually selected config.
  478. ###
  479. ### Normally, libbusybox will only contain the features which are
  480. ### used by busybox itself. If you plan to write a separate
  481. ### standalone application which uses libbusybox say 'Y'.
  482. ###
  483. ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
  484. ### might act as a copyright barrier. We can and will modify the
  485. ### exported function set between releases (even minor version number
  486. ### changes), and happily break out-of-tree features.
  487. ###
  488. ### Say 'N' if in doubt.
  489. config BUSYBOX_CONFIG_FEATURE_INDIVIDUAL
  490. bool "Produce a binary for each applet, linked against libbusybox"
  491. default BUSYBOX_DEFAULT_FEATURE_INDIVIDUAL
  492. depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  493. help
  494. If your CPU architecture doesn't allow for sharing text/rodata
  495. sections of running binaries, but allows for runtime dynamic
  496. libraries, this option will allow you to reduce memory footprint
  497. when you have many different applets running at once.
  498. If your CPU architecture allows for sharing text/rodata,
  499. having single binary is more optimal.
  500. Each applet will be a tiny program, dynamically linked
  501. against libbusybox.so.N.N.N.
  502. You need to have a working dynamic linker.
  503. config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX
  504. bool "Produce additional busybox binary linked against libbusybox"
  505. default BUSYBOX_DEFAULT_FEATURE_SHARED_BUSYBOX
  506. depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  507. help
  508. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  509. You need to have a working dynamic linker.
  510. ### config BUILD_AT_ONCE
  511. ### bool "Compile all sources at once"
  512. ### default n
  513. ### help
  514. ### Normally each source-file is compiled with one invocation of
  515. ### the compiler.
  516. ### If you set this option, all sources are compiled at once.
  517. ### This gives the compiler more opportunities to optimize which can
  518. ### result in smaller and/or faster binaries.
  519. ###
  520. ### Setting this option will consume alot of memory, e.g. if you
  521. ### enable all applets with all features, gcc uses more than 300MB
  522. ### RAM during compilation of busybox.
  523. ###
  524. ### This option is most likely only beneficial for newer compilers
  525. ### such as gcc-4.1 and above.
  526. ###
  527. ### Say 'N' unless you know what you are doing.
  528. config BUSYBOX_CONFIG_LFS
  529. bool
  530. default BUSYBOX_DEFAULT_LFS
  531. help
  532. If you want to build BusyBox with large file support, then enable
  533. this option. This will have no effect if your kernel or your C
  534. library lacks large file support for large files. Some of the
  535. programs that can benefit from large file support include dd, gzip,
  536. cp, mount, tar, and many others. If you want to access files larger
  537. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  538. config BUSYBOX_CONFIG_CROSS_COMPILER_PREFIX
  539. string "Cross Compiler prefix"
  540. default BUSYBOX_DEFAULT_CROSS_COMPILER_PREFIX
  541. help
  542. If you want to build BusyBox with a cross compiler, then you
  543. will need to set this to the cross-compiler prefix, for example,
  544. "i386-uclibc-".
  545. Note that CROSS_COMPILE environment variable or
  546. "make CROSS_COMPILE=xxx ..." will override this selection.
  547. Native builds leave this empty.
  548. config BUSYBOX_CONFIG_SYSROOT
  549. string "Path to sysroot"
  550. default BUSYBOX_DEFAULT_SYSROOT
  551. help
  552. If you want to build BusyBox with a cross compiler, then you
  553. might also need to specify where /usr/include and /usr/lib
  554. will be found.
  555. For example, BusyBox can be built against an installed
  556. Android NDK, platform version 9, for ARM ABI with
  557. CONFIG_SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm
  558. Native builds leave this empty.
  559. config BUSYBOX_CONFIG_EXTRA_CFLAGS
  560. string "Additional CFLAGS"
  561. default BUSYBOX_DEFAULT_EXTRA_CFLAGS
  562. help
  563. Additional CFLAGS to pass to the compiler verbatim.
  564. config BUSYBOX_CONFIG_EXTRA_LDFLAGS
  565. string "Additional LDFLAGS"
  566. default BUSYBOX_DEFAULT_EXTRA_LDFLAGS
  567. help
  568. Additional LDFLAGS to pass to the linker verbatim.
  569. config BUSYBOX_CONFIG_EXTRA_LDLIBS
  570. string "Additional LDLIBS"
  571. default BUSYBOX_DEFAULT_EXTRA_LDLIBS
  572. help
  573. Additional LDLIBS to pass to the linker with -l.
  574. endmenu
  575. menu 'Debugging Options'
  576. config BUSYBOX_CONFIG_DEBUG
  577. bool "Build BusyBox with extra Debugging symbols"
  578. default BUSYBOX_DEFAULT_DEBUG
  579. help
  580. Say Y here if you wish to examine BusyBox internals while applets are
  581. running. This increases the size of the binary considerably, and
  582. should only be used when doing development. If you are doing
  583. development and want to debug BusyBox, answer Y.
  584. Most people should answer N.
  585. config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
  586. bool "Disable compiler optimizations"
  587. default BUSYBOX_DEFAULT_DEBUG_PESSIMIZE
  588. depends on BUSYBOX_CONFIG_DEBUG
  589. help
  590. The compiler's optimization of source code can eliminate and reorder
  591. code, resulting in an executable that's hard to understand when
  592. stepping through it with a debugger. This switches it off, resulting
  593. in a much bigger executable that more closely matches the source
  594. code.
  595. config BUSYBOX_CONFIG_DEBUG_SANITIZE
  596. bool "Enable runtime sanitizers (ASAN/LSAN/USAN/etc...)"
  597. default BUSYBOX_DEFAULT_DEBUG_SANITIZE
  598. help
  599. Say Y here if you want to enable runtime sanitizers. These help
  600. catch bad memory accesses (e.g. buffer overflows), but will make
  601. the executable larger and slow down runtime a bit.
  602. If you aren't developing/testing busybox, say N here.
  603. config BUSYBOX_CONFIG_UNIT_TEST
  604. bool "Build unit tests"
  605. default BUSYBOX_DEFAULT_UNIT_TEST
  606. help
  607. Say Y here if you want to build unit tests (both the framework and
  608. test cases) as a Busybox applet. This results in bigger code, so you
  609. probably don't want this option in production builds.
  610. config BUSYBOX_CONFIG_WERROR
  611. bool "Abort compilation on any warning"
  612. default BUSYBOX_DEFAULT_WERROR
  613. help
  614. Selecting this will add -Werror to gcc command line.
  615. Most people should answer N.
  616. choice
  617. prompt "Additional debugging library"
  618. default BUSYBOX_CONFIG_NO_DEBUG_LIB
  619. help
  620. Using an additional debugging library will make BusyBox become
  621. considerable larger and will cause it to run more slowly. You
  622. should always leave this option disabled for production use.
  623. dmalloc support:
  624. ----------------
  625. This enables compiling with dmalloc ( http://dmalloc.com/ )
  626. which is an excellent public domain mem leak and malloc problem
  627. detector. To enable dmalloc, before running busybox you will
  628. want to properly set your environment, for example:
  629. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  630. The 'debug=' value is generated using the following command
  631. dmalloc -p log-stats -p log-non-free -p log-bad-space \
  632. -p log-elapsed-time -p check-fence -p check-heap \
  633. -p check-lists -p check-blank -p check-funcs -p realloc-copy \
  634. -p allow-free-null
  635. Electric-fence support:
  636. -----------------------
  637. This enables compiling with Electric-fence support. Electric
  638. fence is another very useful malloc debugging library which uses
  639. your computer's virtual memory hardware to detect illegal memory
  640. accesses. This support will make BusyBox be considerable larger
  641. and run slower, so you should leave this option disabled unless
  642. you are hunting a hard to find memory problem.
  643. config BUSYBOX_CONFIG_NO_DEBUG_LIB
  644. bool "None"
  645. config BUSYBOX_CONFIG_DMALLOC
  646. bool "Dmalloc"
  647. config BUSYBOX_CONFIG_EFENCE
  648. bool "Electric-fence"
  649. endchoice
  650. endmenu
  651. menu 'Installation Options ("make install" behavior)'
  652. choice
  653. prompt "What kind of applet links to install"
  654. default BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
  655. help
  656. Choose what kind of links to applets are created by "make install".
  657. config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
  658. bool "as soft-links"
  659. help
  660. Install applets as soft-links to the busybox binary. This needs some
  661. free inodes on the filesystem, but might help with filesystem
  662. generators that can't cope with hard-links.
  663. config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS
  664. bool "as hard-links"
  665. help
  666. Install applets as hard-links to the busybox binary. This might
  667. count on a filesystem with few inodes.
  668. config BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
  669. bool "as script wrappers"
  670. help
  671. Install applets as script wrappers that call the busybox binary.
  672. config BUSYBOX_CONFIG_INSTALL_APPLET_DONT
  673. bool "not installed"
  674. help
  675. Do not install applet links. Useful when you plan to use
  676. busybox --install for installing links, or plan to use
  677. a standalone shell and thus don't need applet links.
  678. endchoice
  679. choice
  680. prompt "/bin/sh applet link"
  681. default BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
  682. depends on BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
  683. help
  684. Choose how you install /bin/sh applet link.
  685. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
  686. bool "as soft-link"
  687. help
  688. Install /bin/sh applet as soft-link to the busybox binary.
  689. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_HARDLINK
  690. bool "as hard-link"
  691. help
  692. Install /bin/sh applet as hard-link to the busybox binary.
  693. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER
  694. bool "as script wrapper"
  695. help
  696. Install /bin/sh applet as script wrapper that calls
  697. the busybox binary.
  698. endchoice
  699. config BUSYBOX_CONFIG_PREFIX
  700. string "BusyBox installation prefix"
  701. default BUSYBOX_DEFAULT_PREFIX
  702. help
  703. Define your directory to install BusyBox files/subdirs in.
  704. endmenu
  705. source libbb/Config.in
  706. endmenu
  707. comment "Applets"
  708. source archival/Config.in
  709. source coreutils/Config.in
  710. source console-tools/Config.in
  711. source debianutils/Config.in
  712. source editors/Config.in
  713. source findutils/Config.in
  714. source init/Config.in
  715. source loginutils/Config.in
  716. source e2fsprogs/Config.in
  717. source modutils/Config.in
  718. source util-linux/Config.in
  719. source miscutils/Config.in
  720. source networking/Config.in
  721. source printutils/Config.in
  722. source mailutils/Config.in
  723. source procps/Config.in
  724. source runit/Config.in
  725. source selinux/Config.in
  726. source shell/Config.in
  727. source sysklogd/Config.in