Config.in 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see docs/Kconfig-language.txt.
  4. #
  5. # mainmenu "Configuration"
  6. config BUSYBOX_HAVE_DOT_CONFIG
  7. bool
  8. default y
  9. menu "Settings"
  10. config BUSYBOX_DESKTOP
  11. bool "Enable compatibility for full-blown desktop systems (8kb)"
  12. default y
  13. help
  14. Enable applet options and features which are not essential.
  15. Many applet options have dedicated config options to (de)select them
  16. under that applet; this options enables those options which have no
  17. individual config item for them.
  18. Select this if you plan to use busybox on full-blown desktop machine
  19. with common Linux distro, which needs higher level of command-line
  20. compatibility.
  21. If you are preparing your build to be used on an embedded box
  22. where you have tighter control over the entire set of userspace
  23. tools, you can unselect this option for smaller code size.
  24. config BUSYBOX_EXTRA_COMPAT
  25. bool "Provide compatible behavior for rare corner cases (bigger code)"
  26. default n
  27. help
  28. This option makes grep, sed etc handle rare corner cases
  29. (embedded NUL bytes and such). This makes code bigger and uses
  30. some GNU extensions in libc. You probably only need this option
  31. if you plan to run busybox on desktop.
  32. config BUSYBOX_FEDORA_COMPAT
  33. bool "Building for Fedora distribution"
  34. default n
  35. help
  36. This option makes some tools behave like they do on Fedora.
  37. At the time of this writing (2017-08) this only affects uname:
  38. normally, uname -p (processor) and uname -i (platform)
  39. are shown as "unknown", but with this option uname -p
  40. shows the same string as uname -m (machine type),
  41. and so does uname -i unless machine type is i486/i586/i686 -
  42. then uname -i shows "i386".
  43. config BUSYBOX_INCLUDE_SUSv2
  44. bool "Enable obsolete features removed before SUSv3"
  45. default y
  46. help
  47. This option will enable backwards compatibility with SuSv2,
  48. specifically, old-style numeric options ('command -1 <file>')
  49. will be supported in head, tail, and fold. (Note: should
  50. affect renice too.)
  51. config BUSYBOX_LONG_OPTS
  52. bool "Support --long-options"
  53. default y
  54. help
  55. Enable this if you want busybox applets to use the gnu --long-option
  56. style, in addition to single character -a -b -c style options.
  57. config BUSYBOX_SHOW_USAGE
  58. bool "Show applet usage messages"
  59. default y
  60. help
  61. Enabling this option, applets will show terse help messages
  62. when invoked with wrong arguments.
  63. If you do not want to show any (helpful) usage message when
  64. issuing wrong command syntax, you can say 'N' here,
  65. saving approximately 7k.
  66. config BUSYBOX_FEATURE_VERBOSE_USAGE
  67. bool "Show verbose applet usage messages"
  68. default y
  69. depends on BUSYBOX_SHOW_USAGE
  70. help
  71. All applets will show verbose help messages when invoked with --help.
  72. This will add a lot of text to the binary.
  73. config BUSYBOX_FEATURE_COMPRESS_USAGE
  74. bool "Store applet usage messages in compressed form"
  75. default y
  76. depends on BUSYBOX_SHOW_USAGE
  77. help
  78. Store usage messages in .bz2 compressed form, uncompress them
  79. on-the-fly when "APPLET --help" is run.
  80. If you have a really tiny busybox with few applets enabled (and
  81. bunzip2 isn't one of them), the overhead of the decompressor might
  82. be noticeable. Also, if you run executables directly from ROM
  83. and have very little memory, this might not be a win. Otherwise,
  84. you probably want this.
  85. config BUSYBOX_LFS
  86. bool "Support files > 2 GB"
  87. default y
  88. help
  89. If you need to work with large files, enable this option.
  90. This will have no effect if your kernel or your C
  91. library lacks large file support for large files. Some of the
  92. programs that can benefit from large file support include dd, gzip,
  93. cp, mount, tar.
  94. config BUSYBOX_PAM
  95. bool "Support PAM (Pluggable Authentication Modules)"
  96. default n
  97. help
  98. Use PAM in some applets (currently login and httpd) instead
  99. of direct access to password database.
  100. config BUSYBOX_FEATURE_DEVPTS
  101. bool "Use the devpts filesystem for Unix98 PTYs"
  102. default y
  103. help
  104. Enable if you want to use Unix98 PTY support. If enabled,
  105. busybox will use /dev/ptmx for the master side of the pseudoterminal
  106. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  107. /dev/ttyp<number> will be used. To use this option, you should have
  108. devpts mounted.
  109. config BUSYBOX_FEATURE_UTMP
  110. bool "Support utmp file"
  111. default y
  112. help
  113. The file /var/run/utmp is used to track who is currently logged in.
  114. With this option on, certain applets (getty, login, telnetd etc)
  115. will create and delete entries there.
  116. "who" applet requires this option.
  117. config BUSYBOX_FEATURE_WTMP
  118. bool "Support wtmp file"
  119. default y
  120. depends on BUSYBOX_FEATURE_UTMP
  121. help
  122. The file /var/run/wtmp is used to track when users have logged into
  123. and logged out of the system.
  124. With this option on, certain applets (getty, login, telnetd etc)
  125. will append new entries there.
  126. "last" applet requires this option.
  127. config BUSYBOX_FEATURE_PIDFILE
  128. bool "Support writing pidfiles"
  129. default y
  130. help
  131. This option makes some applets (e.g. crond, syslogd, inetd) write
  132. a pidfile at the configured BUSYBOX_PID_FILE_PATH. It has no effect
  133. on applets which require pidfiles to run.
  134. config BUSYBOX_PID_FILE_PATH
  135. string "Directory for pidfiles"
  136. default "/var/run"
  137. depends on BUSYBOX_FEATURE_PIDFILE || BUSYBOX_FEATURE_CROND_SPECIAL_TIMES
  138. help
  139. This is the default path where pidfiles are created. Applets which
  140. allow you to set the pidfile path on the command line will override
  141. this value. The option has no effect on applets that require you to
  142. specify a pidfile path. When crond has the 'Support special times'
  143. option enabled, the 'crond.reboot' file is also stored here.
  144. config BUSYBOX_BUSYBOX
  145. bool "Include busybox applet"
  146. default y
  147. help
  148. The busybox applet provides general help message and allows
  149. the included applets to be listed. It also provides
  150. optional --install command to create applet links. If you unselect
  151. this option, running busybox without any arguments will give
  152. just a cryptic error message:
  153. $ busybox
  154. busybox: applet not found
  155. Running "busybox APPLET [ARGS...]" will still work, of course.
  156. config BUSYBOX_FEATURE_SHOW_SCRIPT
  157. bool "Support --show SCRIPT"
  158. default y
  159. depends on BUSYBOX_BUSYBOX
  160. config BUSYBOX_FEATURE_INSTALLER
  161. bool "Support --install [-s] to install applet links at runtime"
  162. default y
  163. depends on BUSYBOX_BUSYBOX
  164. help
  165. Enable 'busybox --install [-s]' support. This will allow you to use
  166. busybox at runtime to create hard links or symlinks for all the
  167. applets that are compiled into busybox.
  168. config BUSYBOX_INSTALL_NO_USR
  169. bool "Don't use /usr"
  170. default n
  171. help
  172. Disable use of /usr. "busybox --install" and "make install"
  173. will install applets only to /bin and /sbin,
  174. never to /usr/bin or /usr/sbin.
  175. config BUSYBOX_FEATURE_SUID
  176. bool "Drop SUID state for most applets"
  177. default y
  178. help
  179. With this option you can install the busybox binary belonging
  180. to root with the suid bit set, enabling some applets to perform
  181. root-level operations even when run by ordinary users
  182. (for example, mounting of user mounts in fstab needs this).
  183. With this option enabled, busybox drops privileges for applets
  184. that don't need root access, before entering their main() function.
  185. If you are really paranoid and don't want even initial busybox code
  186. to run under root for every applet, build two busybox binaries with
  187. different applets in them (and the appropriate symlinks pointing
  188. to each binary), and only set the suid bit on the one that needs it.
  189. Some applets which require root rights (need suid bit on the binary
  190. or to be run by root) and will refuse to execute otherwise:
  191. crontab, login, passwd, su, vlock, wall.
  192. The applets which will use root rights if they have them
  193. (via suid bit, or because run by root), but would try to work
  194. without root right nevertheless:
  195. findfs, ping[6], traceroute[6], mount.
  196. Note that if you DO NOT select this option, but DO make busybox
  197. suid root, ALL applets will run under root, which is a huge
  198. security hole (think "cp /some/file /etc/passwd").
  199. config BUSYBOX_FEATURE_SUID_CONFIG
  200. bool "Enable SUID configuration via /etc/busybox.conf"
  201. default y
  202. depends on BUSYBOX_FEATURE_SUID
  203. help
  204. Allow the SUID/SGID state of an applet to be determined at runtime
  205. by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
  206. The format of this file is as follows:
  207. APPLET = [Ssx-][Ssx-][x-] [USER.GROUP]
  208. s: USER or GROUP is allowed to execute APPLET.
  209. APPLET will run under USER or GROUP
  210. (regardless of who's running it).
  211. S: USER or GROUP is NOT allowed to execute APPLET.
  212. APPLET will run under USER or GROUP.
  213. This option is not very sensical.
  214. x: USER/GROUP/others are allowed to execute APPLET.
  215. No UID/GID change will be done when it is run.
  216. -: USER/GROUP/others are not allowed to execute APPLET.
  217. An example might help:
  218. |[SUID]
  219. |su = ssx root.0 # applet su can be run by anyone and runs with
  220. | # euid=0,egid=0
  221. |su = ssx # exactly the same
  222. |
  223. |mount = sx- root.disk # applet mount can be run by root and members
  224. | # of group disk (but not anyone else)
  225. | # and runs with euid=0 (egid is not changed)
  226. |
  227. |cp = --- # disable applet cp for everyone
  228. The file has to be owned by user root, group root and has to be
  229. writeable only by root:
  230. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  231. The busybox executable has to be owned by user root, group
  232. root and has to be setuid root for this to work:
  233. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  234. Robert 'sandman' Griebl has more information here:
  235. <url: http://www.softforge.de/bb/suid.html >.
  236. config BUSYBOX_FEATURE_SUID_CONFIG_QUIET
  237. bool "Suppress warning message if /etc/busybox.conf is not readable"
  238. default y
  239. depends on BUSYBOX_FEATURE_SUID_CONFIG
  240. help
  241. /etc/busybox.conf should be readable by the user needing the SUID,
  242. check this option to avoid users to be notified about missing
  243. permissions.
  244. config BUSYBOX_FEATURE_PREFER_APPLETS
  245. bool "exec prefers applets"
  246. default n
  247. help
  248. This is an experimental option which directs applets about to
  249. call 'exec' to try and find an applicable busybox applet before
  250. searching the PATH. This is typically done by exec'ing
  251. /proc/self/exe.
  252. This may affect shell, find -exec, xargs and similar applets.
  253. They will use applets even if /bin/APPLET -> busybox link
  254. is missing (or is not a link to busybox). However, this causes
  255. problems in chroot jails without mounted /proc and with ps/top
  256. (command name can be shown as 'exe' for applets started this way).
  257. config BUSYBOX_BUSYBOX_EXEC_PATH
  258. string "Path to busybox executable"
  259. default "/proc/self/exe"
  260. help
  261. When applets need to run other applets, busybox
  262. sometimes needs to exec() itself. When the /proc filesystem is
  263. mounted, /proc/self/exe always points to the currently running
  264. executable. If you haven't got /proc, set this to wherever you
  265. want to run busybox from.
  266. config BUSYBOX_SELINUX
  267. bool "Support NSA Security Enhanced Linux"
  268. default n
  269. help
  270. Enable support for SELinux in applets ls, ps, and id. Also provide
  271. the option of compiling in SELinux applets.
  272. If you do not have a complete SELinux userland installed, this stuff
  273. will not compile. Specifially, libselinux 1.28 or better is
  274. directly required by busybox. If the installation is located in a
  275. non-standard directory, provide it by invoking make as follows:
  276. CFLAGS=-I<libselinux-include-path> \
  277. LDFLAGS=-L<libselinux-lib-path> \
  278. make
  279. Most people will leave this set to 'N'.
  280. config BUSYBOX_FEATURE_CLEAN_UP
  281. bool "Clean up all memory before exiting (usually not needed)"
  282. default n
  283. help
  284. As a size optimization, busybox normally exits without explicitly
  285. freeing dynamically allocated memory or closing files. This saves
  286. space since the OS will clean up for us, but it can confuse debuggers
  287. like valgrind, which report tons of memory and resource leaks.
  288. Don't enable this unless you have a really good reason to clean
  289. things up manually.
  290. config BUSYBOX_FEATURE_SYSLOG_INFO
  291. bool "Support LOG_INFO level syslog messages"
  292. default y
  293. depends on BUSYBOX_FEATURE_SYSLOG
  294. help
  295. Applets which send their output to syslog use either LOG_INFO or
  296. LOG_ERR log levels, but by disabling this option all messages will
  297. be logged at the LOG_ERR level, saving just under 200 bytes.
  298. # These are auto-selected by other options
  299. config BUSYBOX_FEATURE_SYSLOG
  300. bool #No description makes it a hidden option
  301. default n
  302. #help
  303. #This option is auto-selected when you select any applet which may
  304. #send its output to syslog. You do not need to select it manually.
  305. comment 'Build Options'
  306. config BUSYBOX_STATIC
  307. bool "Build static binary (no shared libs)"
  308. default n
  309. help
  310. If you want to build a static binary, which does not use
  311. or require any shared libraries, enable this option.
  312. Static binaries are larger, but do not require functioning
  313. dynamic libraries to be present, which is important if used
  314. as a system rescue tool.
  315. config BUSYBOX_PIE
  316. bool "Build position independent executable"
  317. default n
  318. depends on !BUSYBOX_STATIC
  319. help
  320. Hardened code option. PIE binaries are loaded at a different
  321. address at each invocation. This has some overhead,
  322. particularly on x86-32 which is short on registers.
  323. Most people will leave this set to 'N'.
  324. config BUSYBOX_NOMMU
  325. bool "Force NOMMU build"
  326. default n
  327. help
  328. Busybox tries to detect whether architecture it is being
  329. built against supports MMU or not. If this detection fails,
  330. or if you want to build NOMMU version of busybox for testing,
  331. you may force NOMMU build here.
  332. Most people will leave this set to 'N'.
  333. # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
  334. # build system does not support that
  335. config BUSYBOX_BUILD_LIBBUSYBOX
  336. bool "Build shared libbusybox"
  337. default n
  338. depends on !BUSYBOX_FEATURE_PREFER_APPLETS && !BUSYBOX_PIE && !BUSYBOX_STATIC
  339. help
  340. Build a shared library libbusybox.so.N.N.N which contains all
  341. busybox code.
  342. This feature allows every applet to be built as a really tiny
  343. separate executable linked against the library:
  344. |$ size 0_lib/l*
  345. | text data bss dec hex filename
  346. | 939 212 28 1179 49b 0_lib/last
  347. | 939 212 28 1179 49b 0_lib/less
  348. | 919138 8328 1556 929022 e2cfe 0_lib/libbusybox.so.1.N.M
  349. This is useful on NOMMU systems which are not capable
  350. of sharing executables, but are capable of sharing code
  351. in dynamic libraries.
  352. config BUSYBOX_FEATURE_LIBBUSYBOX_STATIC
  353. bool "Pull in all external references into libbusybox"
  354. default n
  355. depends on BUSYBOX_BUILD_LIBBUSYBOX
  356. help
  357. Make libbusybox library independent, not using or requiring
  358. any other shared libraries.
  359. config BUSYBOX_FEATURE_INDIVIDUAL
  360. bool "Produce a binary for each applet, linked against libbusybox"
  361. default y
  362. depends on BUSYBOX_BUILD_LIBBUSYBOX
  363. help
  364. If your CPU architecture doesn't allow for sharing text/rodata
  365. sections of running binaries, but allows for runtime dynamic
  366. libraries, this option will allow you to reduce memory footprint
  367. when you have many different applets running at once.
  368. If your CPU architecture allows for sharing text/rodata,
  369. having single binary is more optimal.
  370. Each applet will be a tiny program, dynamically linked
  371. against libbusybox.so.N.N.N.
  372. You need to have a working dynamic linker.
  373. config BUSYBOX_FEATURE_SHARED_BUSYBOX
  374. bool "Produce additional busybox binary linked against libbusybox"
  375. default y
  376. depends on BUSYBOX_BUILD_LIBBUSYBOX
  377. help
  378. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  379. You need to have a working dynamic linker.
  380. ### config BUILD_AT_ONCE
  381. ### bool "Compile all sources at once"
  382. ### default n
  383. ### help
  384. ### Normally each source-file is compiled with one invocation of
  385. ### the compiler.
  386. ### If you set this option, all sources are compiled at once.
  387. ### This gives the compiler more opportunities to optimize which can
  388. ### result in smaller and/or faster binaries.
  389. ###
  390. ### Setting this option will consume alot of memory, e.g. if you
  391. ### enable all applets with all features, gcc uses more than 300MB
  392. ### RAM during compilation of busybox.
  393. ###
  394. ### This option is most likely only beneficial for newer compilers
  395. ### such as gcc-4.1 and above.
  396. ###
  397. ### Say 'N' unless you know what you are doing.
  398. config BUSYBOX_CROSS_COMPILER_PREFIX
  399. string "Cross compiler prefix"
  400. default ""
  401. help
  402. If you want to build busybox with a cross compiler, then you
  403. will need to set this to the cross-compiler prefix, for example,
  404. "i386-uclibc-".
  405. Note that CROSS_COMPILE environment variable or
  406. "make CROSS_COMPILE=xxx ..." will override this selection.
  407. Native builds leave this empty.
  408. config BUSYBOX_SYSROOT
  409. string "Path to sysroot"
  410. default ""
  411. help
  412. If you want to build busybox with a cross compiler, then you
  413. might also need to specify where /usr/include and /usr/lib
  414. will be found.
  415. For example, busybox can be built against an installed
  416. Android NDK, platform version 9, for ARM ABI with
  417. CONFIG_SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm
  418. Native builds leave this empty.
  419. config BUSYBOX_EXTRA_CFLAGS
  420. string "Additional CFLAGS"
  421. default ""
  422. help
  423. Additional CFLAGS to pass to the compiler verbatim.
  424. config BUSYBOX_EXTRA_LDFLAGS
  425. string "Additional LDFLAGS"
  426. default ""
  427. help
  428. Additional LDFLAGS to pass to the linker verbatim.
  429. config BUSYBOX_EXTRA_LDLIBS
  430. string "Additional LDLIBS"
  431. default ""
  432. help
  433. Additional LDLIBS to pass to the linker with -l.
  434. config BUSYBOX_USE_PORTABLE_CODE
  435. bool "Avoid using GCC-specific code constructs"
  436. default n
  437. help
  438. Use this option if you are trying to compile busybox with
  439. compiler other than gcc.
  440. If you do use gcc, this option may needlessly increase code size.
  441. config BUSYBOX_STACK_OPTIMIZATION_386
  442. bool "Use -mpreferred-stack-boundary=2 on i386 arch"
  443. default y
  444. help
  445. This option makes for smaller code, but some libc versions
  446. do not work with it (they use SSE instructions without
  447. ensuring stack alignment).
  448. config BUSYBOX_STATIC_LIBGCC
  449. bool "Use -static-libgcc"
  450. default y
  451. help
  452. This option instructs gcc to link in a static version of its
  453. support library, libgcc. This means that the binary will require
  454. one fewer dynamic library at run time.
  455. comment 'Installation Options ("make install" behavior)'
  456. choice
  457. prompt "What kind of applet links to install"
  458. default BUSYBOX_INSTALL_APPLET_SYMLINKS
  459. help
  460. Choose what kind of links to applets are created by "make install".
  461. config BUSYBOX_INSTALL_APPLET_SYMLINKS
  462. bool "as soft-links"
  463. help
  464. Install applets as soft-links to the busybox binary. This needs some
  465. free inodes on the filesystem, but might help with filesystem
  466. generators that can't cope with hard-links.
  467. config BUSYBOX_INSTALL_APPLET_HARDLINKS
  468. bool "as hard-links"
  469. help
  470. Install applets as hard-links to the busybox binary. This might
  471. count on a filesystem with few inodes.
  472. config BUSYBOX_INSTALL_APPLET_SCRIPT_WRAPPERS
  473. bool "as script wrappers"
  474. help
  475. Install applets as script wrappers that call the busybox binary.
  476. config BUSYBOX_INSTALL_APPLET_DONT
  477. bool "not installed"
  478. help
  479. Do not install applet links. Useful when you plan to use
  480. busybox --install for installing links, or plan to use
  481. a standalone shell and thus don't need applet links.
  482. endchoice
  483. choice
  484. prompt "/bin/sh applet link"
  485. default BUSYBOX_INSTALL_SH_APPLET_SYMLINK
  486. depends on BUSYBOX_INSTALL_APPLET_SCRIPT_WRAPPERS
  487. help
  488. Choose how you install /bin/sh applet link.
  489. config BUSYBOX_INSTALL_SH_APPLET_SYMLINK
  490. bool "as soft-link"
  491. help
  492. Install /bin/sh applet as soft-link to the busybox binary.
  493. config BUSYBOX_INSTALL_SH_APPLET_HARDLINK
  494. bool "as hard-link"
  495. help
  496. Install /bin/sh applet as hard-link to the busybox binary.
  497. config BUSYBOX_INSTALL_SH_APPLET_SCRIPT_WRAPPER
  498. bool "as script wrapper"
  499. help
  500. Install /bin/sh applet as script wrapper that calls
  501. the busybox binary.
  502. endchoice
  503. config BUSYBOX_PREFIX
  504. string "Destination path for 'make install'"
  505. default "@IDIR@"
  506. help
  507. Where "make install" should install busybox binary and links.
  508. comment 'Debugging Options'
  509. config BUSYBOX_DEBUG
  510. bool "Build with debug information"
  511. default n
  512. help
  513. Say Y here to compile with debug information.
  514. This increases the size of the binary considerably, and
  515. should only be used when doing development.
  516. This adds -g option to gcc command line.
  517. Most people should answer N.
  518. config BUSYBOX_DEBUG_PESSIMIZE
  519. bool "Disable compiler optimizations"
  520. default n
  521. depends on BUSYBOX_DEBUG
  522. help
  523. The compiler's optimization of source code can eliminate and reorder
  524. code, resulting in an executable that's hard to understand when
  525. stepping through it with a debugger. This switches it off, resulting
  526. in a much bigger executable that more closely matches the source
  527. code.
  528. This replaces -Os/-O2 with -O0 in gcc command line.
  529. config BUSYBOX_DEBUG_SANITIZE
  530. bool "Enable runtime sanitizers (ASAN/LSAN/USAN/etc...)"
  531. default n
  532. help
  533. Say Y here if you want to enable runtime sanitizers. These help
  534. catch bad memory accesses (e.g. buffer overflows), but will make
  535. the executable larger and slow down runtime a bit.
  536. This adds -fsanitize=foo options to gcc command line.
  537. If you aren't developing/testing busybox, say N here.
  538. config BUSYBOX_UNIT_TEST
  539. bool "Build unit tests"
  540. default n
  541. help
  542. Say Y here if you want to build unit tests (both the framework and
  543. test cases) as an applet. This results in bigger code, so you
  544. probably don't want this option in production builds.
  545. config BUSYBOX_WERROR
  546. bool "Abort compilation on any warning"
  547. default n
  548. help
  549. This adds -Werror to gcc command line.
  550. Most people should answer N.
  551. config BUSYBOX_WARN_SIMPLE_MSG
  552. bool "Warn about single parameter bb_xx_msg calls"
  553. default n
  554. help
  555. This will cause warnings to be shown for any instances of
  556. bb_error_msg(), bb_error_msg_and_die(), bb_perror_msg(),
  557. bb_perror_msg_and_die(), bb_herror_msg() or bb_herror_msg_and_die()
  558. being called with a single parameter. In these cases the equivalent
  559. bb_simple_xx_msg function should be used instead.
  560. Note that use of STRERROR_FMT may give false positives.
  561. If you aren't developing busybox, say N here.
  562. choice
  563. prompt "Additional debugging library"
  564. default BUSYBOX_NO_DEBUG_LIB
  565. help
  566. Using an additional debugging library will make busybox become
  567. considerably larger and will cause it to run more slowly. You
  568. should always leave this option disabled for production use.
  569. dmalloc support:
  570. ----------------
  571. This enables compiling with dmalloc ( http://dmalloc.com/ )
  572. which is an excellent public domain mem leak and malloc problem
  573. detector. To enable dmalloc, before running busybox you will
  574. want to properly set your environment, for example:
  575. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  576. The 'debug=' value is generated using the following command
  577. dmalloc -p log-stats -p log-non-free -p log-bad-space \
  578. -p log-elapsed-time -p check-fence -p check-heap \
  579. -p check-lists -p check-blank -p check-funcs -p realloc-copy \
  580. -p allow-free-null
  581. Electric-fence support:
  582. -----------------------
  583. This enables compiling with Electric-fence support. Electric
  584. fence is another very useful malloc debugging library which uses
  585. your computer's virtual memory hardware to detect illegal memory
  586. accesses. This support will make busybox be considerably larger
  587. and run slower, so you should leave this option disabled unless
  588. you are hunting a hard to find memory problem.
  589. config BUSYBOX_NO_DEBUG_LIB
  590. bool "None"
  591. config BUSYBOX_DMALLOC
  592. bool "Dmalloc"
  593. config BUSYBOX_EFENCE
  594. bool "Electric-fence"
  595. endchoice
  596. source package/busybox/config/libbb/Config.in
  597. endmenu
  598. comment "Applets"
  599. source package/busybox/config/archival/Config.in
  600. source package/busybox/config/coreutils/Config.in
  601. source package/busybox/config/console-tools/Config.in
  602. source package/busybox/config/debianutils/Config.in
  603. source package/busybox/config/klibc-utils/Config.in
  604. source package/busybox/config/editors/Config.in
  605. source package/busybox/config/findutils/Config.in
  606. source package/busybox/config/init/Config.in
  607. source package/busybox/config/loginutils/Config.in
  608. source package/busybox/config/e2fsprogs/Config.in
  609. source package/busybox/config/modutils/Config.in
  610. source package/busybox/config/util-linux/Config.in
  611. source package/busybox/config/miscutils/Config.in
  612. source package/busybox/config/networking/Config.in
  613. source package/busybox/config/printutils/Config.in
  614. source package/busybox/config/mailutils/Config.in
  615. source package/busybox/config/procps/Config.in
  616. source package/busybox/config/runit/Config.in
  617. source package/busybox/config/selinux/Config.in
  618. source package/busybox/config/shell/Config.in
  619. source package/busybox/config/sysklogd/Config.in