Config.in 31 KB

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