Config.in 28 KB

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