Config.in 28 KB

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