Config.in 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. # mainmenu "BusyBox Configuration"
  6. config BUSYBOX_HAVE_DOT_CONFIG
  7. bool
  8. default y
  9. menu "Busybox Settings"
  10. menu "General Configuration"
  11. config BUSYBOX_DESKTOP
  12. bool "Enable options for full-blown desktop systems"
  13. default n
  14. help
  15. Enable options and features which are not essential.
  16. Select this only if you plan to use busybox on full-blown
  17. desktop machine with common Linux distro, not on an embedded box.
  18. config BUSYBOX_EXTRA_COMPAT
  19. bool "Provide compatible behavior for rare corner cases (bigger code)"
  20. default n
  21. help
  22. This option makes grep, sed etc handle rare corner cases
  23. (embedded NUL bytes and such). This makes code bigger and uses
  24. some GNU extensions in libc. You probably only need this option
  25. if you plan to run busybox on desktop.
  26. config BUSYBOX_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 BUSYBOX_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 BUSYBOX_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 BUSYBOX_FEATURE_BUFFERS_USE_MALLOC
  63. bool "Allocate with Malloc"
  64. config BUSYBOX_FEATURE_BUFFERS_GO_ON_STACK
  65. bool "Allocate on the Stack"
  66. config BUSYBOX_FEATURE_BUFFERS_GO_IN_BSS
  67. bool "Allocate in the .bss section"
  68. endchoice
  69. config BUSYBOX_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 BUSYBOX_FEATURE_VERBOSE_USAGE
  78. bool "Show verbose applet usage messages"
  79. default y
  80. select BUSYBOX_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 BUSYBOX_FEATURE_COMPRESS_USAGE
  87. bool "Store applet usage messages in compressed form"
  88. default y
  89. depends on BUSYBOX_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 BUSYBOX_FEATURE_INSTALLER
  99. bool "Support --install [-s] to install applet links at runtime"
  100. default n
  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 BUSYBOX_LOCALE_SUPPORT
  106. bool "Enable locale support (system needs locale for this to work)"
  107. default n
  108. help
  109. Enable this if your system has locale support and you would like
  110. busybox to support locale settings.
  111. config BUSYBOX_UNICODE_SUPPORT
  112. bool "Support Unicode"
  113. default n
  114. help
  115. This makes various applets aware that one byte is not
  116. one character on screen.
  117. Busybox aims to eventually work correctly with Unicode displays.
  118. Any older encodings are not guaranteed to work.
  119. Probably by the time when busybox will be fully Unicode-clean,
  120. other encodings will be mainly of historic interest.
  121. config BUSYBOX_UNICODE_USING_LOCALE
  122. bool "Use libc routines for Unicode (else uses internal ones)"
  123. default n
  124. depends on BUSYBOX_UNICODE_SUPPORT && BUSYBOX_LOCALE_SUPPORT
  125. help
  126. With this option on, Unicode support is implemented using libc
  127. routines. Otherwise, internal implementation is used.
  128. Internal implementation is smaller.
  129. config BUSYBOX_FEATURE_CHECK_UNICODE_IN_ENV
  130. bool "Check $LANG environment variable"
  131. default y
  132. depends on BUSYBOX_FEATURE_ASSUME_UNICODE && !BUSYBOX_LOCALE_SUPPORT
  133. help
  134. With this option on, Unicode support is activated
  135. only if LANG variable has the value of the form "xxxx.utf8"
  136. Otherwise, Unicode support will be always enabled and active.
  137. config BUSYBOX_SUBST_WCHAR
  138. int "Character code to substitute unprintable characters with"
  139. depends on BUSYBOX_UNICODE_SUPPORT
  140. default 63
  141. help
  142. Typical values are 63 for '?' (works with any output device),
  143. 30 for ASCII substitute control code,
  144. 65533 (0xfffd) for Unicode replacement character.
  145. config BUSYBOX_LAST_SUPPORTED_WCHAR
  146. int "Range of supported Unicode characters"
  147. depends on BUSYBOX_UNICODE_SUPPORT
  148. default 767
  149. help
  150. Any character with Unicode value bigger than this is assumed
  151. to be non-printable on output device. Many applets replace
  152. such chars with substitution character.
  153. The idea is that many valid printable Unicode chars are
  154. nevertheless are not displayed correctly. Think about
  155. combining charachers, double-wide hieroglyphs, obscure
  156. characters in dozens of ancient scripts...
  157. Many terminals, terminal emulators, xterms etc will fail
  158. to handle them correctly. Choose the smallest value
  159. which suits your needs.
  160. Typical values are:
  161. 126 - ASCII only
  162. 767 (0x2ff) - there are no combining chars in [0..767] range
  163. (the range includes Latin 1, Latin Ext. A and B),
  164. code is ~700 bytes smaller for this case.
  165. 4351 (0x10ff) - there are no double-wide chars in [0..4351] range,
  166. code is ~300 bytes smaller for this case.
  167. 12799 (0x31ff) - nearly all non-ideographic characters are
  168. available in [0..12799] range, including
  169. East Asian scripts like katakana, hiragana, hangul,
  170. bopomofo...
  171. 0 - off, any valid printable Unicode character will be printed.
  172. config BUSYBOX_UNICODE_COMBINING_WCHARS
  173. bool "Allow zero-width Unicode characters on output"
  174. default n
  175. depends on BUSYBOX_UNICODE_SUPPORT
  176. help
  177. With this option off, any Unicode char with width of 0
  178. is substituted on output.
  179. config BUSYBOX_UNICODE_WIDE_WCHARS
  180. bool "Allow wide Unicode characters on output"
  181. default n
  182. depends on BUSYBOX_UNICODE_SUPPORT
  183. help
  184. With this option off, any Unicode char with width > 1
  185. is substituted on output.
  186. config BUSYBOX_UNICODE_BIDI_SUPPORT
  187. bool "Bidirectional character-aware line input"
  188. default n
  189. depends on BUSYBOX_UNICODE_SUPPORT && !BUSYBOX_UNICODE_USING_LOCALE
  190. help
  191. With this option on, right-to-left Unicode characters
  192. are treated differently on input (e.g. cursor movement).
  193. config BUSYBOX_UNICODE_NEUTRAL_TABLE
  194. bool "In bidi input, support non-ASCII neutral chars too"
  195. default n
  196. depends on BUSYBOX_UNICODE_BIDI_SUPPORT
  197. help
  198. In most cases it's enough to treat only ASCII non-letters
  199. (i.e. punctuation, numbers and space) as characters
  200. with neutral directionality.
  201. With this option on, more extensive (and bigger) table
  202. of neutral chars will be used.
  203. config BUSYBOX_UNICODE_PRESERVE_BROKEN
  204. bool "Make it possible to enter sequences of chars which are not Unicode"
  205. default n
  206. depends on BUSYBOX_UNICODE_SUPPORT
  207. help
  208. With this option on, invalid UTF-8 bytes are not substituted
  209. with the selected substitution character.
  210. For example, this means that entering 'l', 's', ' ', 0xff, [Enter]
  211. at shell prompt will list file named 0xff (single char name
  212. with char value 255), not file named '?'.
  213. config BUSYBOX_LONG_OPTS
  214. bool "Support for --long-options"
  215. default y
  216. help
  217. Enable this if you want busybox applets to use the gnu --long-option
  218. style, in addition to single character -a -b -c style options.
  219. config BUSYBOX_FEATURE_DEVPTS
  220. bool "Use the devpts filesystem for Unix98 PTYs"
  221. default y
  222. help
  223. Enable if you want BusyBox to use Unix98 PTY support. If enabled,
  224. busybox will use /dev/ptmx for the master side of the pseudoterminal
  225. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  226. /dev/ttyp<number> will be used. To use this option, you should have
  227. devpts mounted.
  228. config BUSYBOX_FEATURE_CLEAN_UP
  229. bool "Clean up all memory before exiting (usually not needed)"
  230. default n
  231. help
  232. As a size optimization, busybox normally exits without explicitly
  233. freeing dynamically allocated memory or closing files. This saves
  234. space since the OS will clean up for us, but it can confuse debuggers
  235. like valgrind, which report tons of memory and resource leaks.
  236. Don't enable this unless you have a really good reason to clean
  237. things up manually.
  238. config BUSYBOX_FEATURE_PIDFILE
  239. bool "Support writing pidfiles"
  240. default y
  241. help
  242. This option makes some applets (e.g. crond, syslogd, inetd) write
  243. a pidfile in /var/run. Some applications rely on them.
  244. config BUSYBOX_FEATURE_SUID
  245. bool "Support for SUID/SGID handling"
  246. default n
  247. help
  248. With this option you can install the busybox binary belonging
  249. to root with the suid bit set, enabling some applets to perform
  250. root-level operations even when run by ordinary users
  251. (for example, mounting of user mounts in fstab needs this).
  252. Busybox will automatically drop priviledges for applets
  253. that don't need root access.
  254. If you are really paranoid and don't want to do this, build two
  255. busybox binaries with different applets in them (and the appropriate
  256. symlinks pointing to each binary), and only set the suid bit on the
  257. one that needs it.
  258. The applets currently marked to need the suid bit are:
  259. crontab, dnsd, findfs, ipcrm, ipcs, login, passwd, ping, su,
  260. traceroute, vlock.
  261. config BUSYBOX_FEATURE_SUID_CONFIG
  262. bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
  263. default n if BUSYBOX_FEATURE_SUID
  264. depends on BUSYBOX_FEATURE_SUID
  265. help
  266. Allow the SUID / SGID state of an applet to be determined at runtime
  267. by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
  268. The format of this file is as follows:
  269. <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
  270. An example might help:
  271. [SUID]
  272. su = ssx root.0 # applet su can be run by anyone and runs with
  273. # euid=0/egid=0
  274. su = ssx # exactly the same
  275. mount = sx- root.disk # applet mount can be run by root and members
  276. # of group disk and runs with euid=0
  277. cp = --- # disable applet cp for everyone
  278. The file has to be owned by user root, group root and has to be
  279. writeable only by root:
  280. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  281. The busybox executable has to be owned by user root, group
  282. root and has to be setuid root for this to work:
  283. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  284. Robert 'sandman' Griebl has more information here:
  285. <url: http://www.softforge.de/bb/suid.html >.
  286. config BUSYBOX_FEATURE_SUID_CONFIG_QUIET
  287. bool "Suppress warning message if /etc/busybox.conf is not readable"
  288. default y
  289. depends on BUSYBOX_FEATURE_SUID_CONFIG
  290. help
  291. /etc/busybox.conf should be readable by the user needing the SUID,
  292. check this option to avoid users to be notified about missing
  293. permissions.
  294. config BUSYBOX_SELINUX
  295. bool "Support NSA Security Enhanced Linux"
  296. default n
  297. depends on BUSYBOX_PLATFORM_LINUX
  298. help
  299. Enable support for SELinux in applets ls, ps, and id. Also provide
  300. the option of compiling in SELinux applets.
  301. If you do not have a complete SELinux userland installed, this stuff
  302. will not compile. Go visit
  303. http://www.nsa.gov/selinux/index.html
  304. to download the necessary stuff to allow busybox to compile with
  305. this option enabled. Specifially, libselinux 1.28 or better is
  306. directly required by busybox. If the installation is located in a
  307. non-standard directory, provide it by invoking make as follows:
  308. CFLAGS=-I<libselinux-include-path> \
  309. LDFLAGS=-L<libselinux-lib-path> \
  310. make
  311. Most people will leave this set to 'N'.
  312. config BUSYBOX_FEATURE_PREFER_APPLETS
  313. bool "exec prefers applets"
  314. default n
  315. help
  316. This is an experimental option which directs applets about to
  317. call 'exec' to try and find an applicable busybox applet before
  318. searching the PATH. This is typically done by exec'ing
  319. /proc/self/exe.
  320. This may affect shell, find -exec, xargs and similar applets.
  321. They will use applets even if /bin/<applet> -> busybox link
  322. is missing (or is not a link to busybox). However, this causes
  323. problems in chroot jails without mounted /proc and with ps/top
  324. (command name can be shown as 'exe' for applets started this way).
  325. config BUSYBOX_BUSYBOX_EXEC_PATH
  326. string "Path to BusyBox executable"
  327. default "/proc/self/exe"
  328. help
  329. When Busybox applets need to run other busybox applets, BusyBox
  330. sometimes needs to exec() itself. When the /proc filesystem is
  331. mounted, /proc/self/exe always points to the currently running
  332. executable. If you haven't got /proc, set this to wherever you
  333. want to run BusyBox from.
  334. # These are auto-selected by other options
  335. config BUSYBOX_FEATURE_SYSLOG
  336. bool #No description makes it a hidden option
  337. default n
  338. #help
  339. # This option is auto-selected when you select any applet which may
  340. # send its output to syslog. You do not need to select it manually.
  341. config BUSYBOX_FEATURE_HAVE_RPC
  342. bool #No description makes it a hidden option
  343. default n
  344. #help
  345. # This is automatically selected if any of enabled applets need it.
  346. # You do not need to select it manually.
  347. endmenu
  348. menu 'Build Options'
  349. config BUSYBOX_STATIC
  350. bool "Build BusyBox as a static binary (no shared libs)"
  351. default n
  352. help
  353. If you want to build a static BusyBox binary, which does not
  354. use or require any shared libraries, then enable this option.
  355. This can cause BusyBox to be considerably larger, so you should
  356. leave this option false unless you have a good reason (i.e.
  357. your target platform does not support shared libraries, or
  358. you are building an initrd which doesn't need anything but
  359. BusyBox, etc).
  360. Most people will leave this set to 'N'.
  361. config BUSYBOX_PIE
  362. bool "Build BusyBox as a position independent executable"
  363. default n
  364. depends on !BUSYBOX_STATIC
  365. help
  366. (TODO: what is it and why/when is it useful?)
  367. Most people will leave this set to 'N'.
  368. config BUSYBOX_NOMMU
  369. bool "Force NOMMU build"
  370. default n
  371. help
  372. Busybox tries to detect whether architecture it is being
  373. built against supports MMU or not. If this detection fails,
  374. or if you want to build NOMMU version of busybox for testing,
  375. you may force NOMMU build here.
  376. Most people will leave this set to 'N'.
  377. # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
  378. # build system does not support that
  379. config BUSYBOX_BUILD_LIBBUSYBOX
  380. bool "Build shared libbusybox"
  381. default n
  382. depends on !BUSYBOX_FEATURE_PREFER_APPLETS && !BUSYBOX_PIE && !BUSYBOX_STATIC
  383. help
  384. Build a shared library libbusybox.so.N.N.N which contains all
  385. busybox code.
  386. This feature allows every applet to be built as a tiny
  387. separate executable. Enabling it for "one big busybox binary"
  388. approach serves no purpose and increases code size.
  389. You should almost certainly say "no" to this.
  390. ### config FEATURE_FULL_LIBBUSYBOX
  391. ### bool "Feature-complete libbusybox"
  392. ### default n if !FEATURE_SHARED_BUSYBOX
  393. ### depends on BUSYBOX_BUILD_LIBBUSYBOX
  394. ### help
  395. ### Build a libbusybox with the complete feature-set, disregarding
  396. ### the actually selected config.
  397. ###
  398. ### Normally, libbusybox will only contain the features which are
  399. ### used by busybox itself. If you plan to write a separate
  400. ### standalone application which uses libbusybox say 'Y'.
  401. ###
  402. ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
  403. ### might act as a copyright barrier. We can and will modify the
  404. ### exported function set between releases (even minor version number
  405. ### changes), and happily break out-of-tree features.
  406. ###
  407. ### Say 'N' if in doubt.
  408. config BUSYBOX_FEATURE_INDIVIDUAL
  409. bool "Produce a binary for each applet, linked against libbusybox"
  410. default n
  411. depends on BUSYBOX_BUILD_LIBBUSYBOX
  412. help
  413. If your CPU architecture doesn't allow for sharing text/rodata
  414. sections of running binaries, but allows for runtime dynamic
  415. libraries, this option will allow you to reduce memory footprint
  416. when you have many different applets running at once.
  417. If your CPU architecture allows for sharing text/rodata,
  418. having single binary is more optimal.
  419. Each applet will be a tiny program, dynamically linked
  420. against libbusybox.so.N.N.N.
  421. You need to have a working dynamic linker.
  422. config BUSYBOX_FEATURE_SHARED_BUSYBOX
  423. bool "Produce additional busybox binary linked against libbusybox"
  424. default n
  425. depends on BUSYBOX_BUILD_LIBBUSYBOX
  426. help
  427. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  428. You need to have a working dynamic linker.
  429. ### config BUILD_AT_ONCE
  430. ### bool "Compile all sources at once"
  431. ### default n
  432. ### help
  433. ### Normally each source-file is compiled with one invocation of
  434. ### the compiler.
  435. ### If you set this option, all sources are compiled at once.
  436. ### This gives the compiler more opportunities to optimize which can
  437. ### result in smaller and/or faster binaries.
  438. ###
  439. ### Setting this option will consume alot of memory, e.g. if you
  440. ### enable all applets with all features, gcc uses more than 300MB
  441. ### RAM during compilation of busybox.
  442. ###
  443. ### This option is most likely only beneficial for newer compilers
  444. ### such as gcc-4.1 and above.
  445. ###
  446. ### Say 'N' unless you know what you are doing.
  447. config BUSYBOX_LFS
  448. bool "Build with Large File Support (for accessing files > 2 GB)"
  449. default y
  450. select BUSYBOX_FDISK_SUPPORT_LARGE_DISKS
  451. help
  452. If you want to build BusyBox with large file support, then enable
  453. this option. This will have no effect if your kernel or your C
  454. library lacks large file support for large files. Some of the
  455. programs that can benefit from large file support include dd, gzip,
  456. cp, mount, tar, and many others. If you want to access files larger
  457. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  458. config BUSYBOX_CROSS_COMPILER_PREFIX
  459. string "Cross Compiler prefix"
  460. default ""
  461. help
  462. If you want to build BusyBox with a cross compiler, then you
  463. will need to set this to the cross-compiler prefix, for example,
  464. "i386-uclibc-".
  465. Note that CROSS_COMPILE environment variable or
  466. "make CROSS_COMPILE=xxx ..." will override this selection.
  467. Native builds leave this empty.
  468. config BUSYBOX_EXTRA_CFLAGS
  469. string "Additional CFLAGS"
  470. default ""
  471. help
  472. Additional CFLAGS to pass to the compiler verbatim.
  473. endmenu
  474. menu 'Debugging Options'
  475. config BUSYBOX_DEBUG
  476. bool "Build BusyBox with extra Debugging symbols"
  477. default n
  478. help
  479. Say Y here if you wish to examine BusyBox internals while applets are
  480. running. This increases the size of the binary considerably, and
  481. should only be used when doing development. If you are doing
  482. development and want to debug BusyBox, answer Y.
  483. Most people should answer N.
  484. config BUSYBOX_DEBUG_PESSIMIZE
  485. bool "Disable compiler optimizations"
  486. default n
  487. depends on BUSYBOX_DEBUG
  488. help
  489. The compiler's optimization of source code can eliminate and reorder
  490. code, resulting in an executable that's hard to understand when
  491. stepping through it with a debugger. This switches it off, resulting
  492. in a much bigger executable that more closely matches the source
  493. code.
  494. config BUSYBOX_WERROR
  495. bool "Abort compilation on any warning"
  496. default n
  497. help
  498. Selecting this will add -Werror to gcc command line.
  499. Most people should answer N.
  500. choice
  501. prompt "Additional debugging library"
  502. default NO_DEBUG_LIB
  503. help
  504. Using an additional debugging library will make BusyBox become
  505. considerable larger and will cause it to run more slowly. You
  506. should always leave this option disabled for production use.
  507. dmalloc support:
  508. ----------------
  509. This enables compiling with dmalloc ( http://dmalloc.com/ )
  510. which is an excellent public domain mem leak and malloc problem
  511. detector. To enable dmalloc, before running busybox you will
  512. want to properly set your environment, for example:
  513. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  514. The 'debug=' value is generated using the following command
  515. dmalloc -p log-stats -p log-non-free -p log-bad-space \
  516. -p log-elapsed-time -p check-fence -p check-heap \
  517. -p check-lists -p check-blank -p check-funcs -p realloc-copy \
  518. -p allow-free-null
  519. Electric-fence support:
  520. -----------------------
  521. This enables compiling with Electric-fence support. Electric
  522. fence is another very useful malloc debugging library which uses
  523. your computer's virtual memory hardware to detect illegal memory
  524. accesses. This support will make BusyBox be considerable larger
  525. and run slower, so you should leave this option disabled unless
  526. you are hunting a hard to find memory problem.
  527. config BUSYBOX_NO_DEBUG_LIB
  528. bool "None"
  529. config BUSYBOX_DMALLOC
  530. bool "Dmalloc"
  531. config BUSYBOX_EFENCE
  532. bool "Electric-fence"
  533. endchoice
  534. ### config PARSE
  535. ### bool "Uniform config file parser debugging applet: parse"
  536. endmenu
  537. menu 'Installation Options ("make install" behavior)'
  538. config BUSYBOX_INSTALL_NO_USR
  539. bool "Don't use /usr"
  540. default n
  541. depends on BUSYBOX_FEATURE_INSTALLER
  542. help
  543. Disable use of /usr. busybox --install and "make install"
  544. will install applets only to /bin and /sbin,
  545. never to /usr/bin or /usr/sbin.
  546. choice
  547. prompt "What kind of applet links to install"
  548. default BUSYBOX_INSTALL_APPLET_SYMLINKS
  549. help
  550. Choose what kind of links to applets are created by "make install".
  551. config BUSYBOX_INSTALL_APPLET_SYMLINKS
  552. bool "as soft-links"
  553. help
  554. Install applets as soft-links to the busybox binary. This needs some
  555. free inodes on the filesystem, but might help with filesystem
  556. generators that can't cope with hard-links.
  557. config BUSYBOX_INSTALL_APPLET_HARDLINKS
  558. bool "as hard-links"
  559. help
  560. Install applets as hard-links to the busybox binary. This might
  561. count on a filesystem with few inodes.
  562. config BUSYBOX_INSTALL_APPLET_SCRIPT_WRAPPERS
  563. bool "as script wrappers"
  564. help
  565. Install applets as script wrappers that call the busybox binary.
  566. config BUSYBOX_INSTALL_APPLET_DONT
  567. bool "not installed"
  568. depends on BUSYBOX_FEATURE_INSTALLER || BUSYBOX_FEATURE_SH_STANDALONE || BUSYBOX_FEATURE_PREFER_APPLETS
  569. help
  570. Do not install applet links. Useful when you plan to use
  571. busybox --install for installing links, or plan to use
  572. a standalone shell and thus don't need applet links.
  573. endchoice
  574. choice
  575. prompt "/bin/sh applet link"
  576. default INSTALL_SH_APPLET_SYMLINK
  577. depends on BUSYBOX_INSTALL_APPLET_SCRIPT_WRAPPERS
  578. help
  579. Choose how you install /bin/sh applet link.
  580. config BUSYBOX_INSTALL_SH_APPLET_SYMLINK
  581. bool "as soft-link"
  582. help
  583. Install /bin/sh applet as soft-link to the busybox binary.
  584. config BUSYBOX_INSTALL_SH_APPLET_HARDLINK
  585. bool "as hard-link"
  586. help
  587. Install /bin/sh applet as hard-link to the busybox binary.
  588. config BUSYBOX_INSTALL_SH_APPLET_SCRIPT_WRAPPER
  589. bool "as script wrapper"
  590. help
  591. Install /bin/sh applet as script wrapper that call the busybox
  592. binary.
  593. endchoice
  594. config BUSYBOX_PREFIX
  595. string "BusyBox installation prefix"
  596. default "@IDIR@"
  597. help
  598. Define your directory to install BusyBox files/subdirs in.
  599. endmenu
  600. source package/busybox/config/libbb/Config.in
  601. endmenu
  602. comment "Applets"
  603. source package/busybox/config/archival/Config.in
  604. source package/busybox/config/coreutils/Config.in
  605. source package/busybox/config/console-tools/Config.in
  606. source package/busybox/config/debianutils/Config.in
  607. source package/busybox/config/editors/Config.in
  608. source package/busybox/config/findutils/Config.in
  609. source package/busybox/config/init/Config.in
  610. source package/busybox/config/loginutils/Config.in
  611. source package/busybox/config/e2fsprogs/Config.in
  612. source package/busybox/config/modutils/Config.in
  613. source package/busybox/config/util-linux/Config.in
  614. source package/busybox/config/miscutils/Config.in
  615. source package/busybox/config/networking/Config.in
  616. source package/busybox/config/printutils/Config.in
  617. source package/busybox/config/mailutils/Config.in
  618. source package/busybox/config/procps/Config.in
  619. source package/busybox/config/runit/Config.in
  620. source package/busybox/config/selinux/Config.in
  621. source package/busybox/config/shell/Config.in
  622. source package/busybox/config/sysklogd/Config.in