Config.in 27 KB

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