Config.in 25 KB

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