Config.in 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. config BUSYBOX_CONFIG_HAVE_DOT_CONFIG
  6. bool
  7. default BUSYBOX_DEFAULT_HAVE_DOT_CONFIG
  8. menu "Busybox Settings"
  9. config BUSYBOX_CONFIG_DESKTOP
  10. bool "Enable options for full-blown desktop systems"
  11. default BUSYBOX_DEFAULT_DESKTOP
  12. help
  13. Enable options and features which are not essential.
  14. Select this if you plan to use busybox on full-blown desktop machine
  15. with common Linux distro, which needs higher level of command-line
  16. compatibility.
  17. If you are preparing your build to be used on an embedded box
  18. where you have tighter control over the entire set of userspace
  19. tools, you can unselect this option for smaller code size.
  20. config BUSYBOX_CONFIG_EXTRA_COMPAT
  21. bool "Provide compatible behavior for rare corner cases (bigger code)"
  22. default BUSYBOX_DEFAULT_EXTRA_COMPAT
  23. help
  24. This option makes grep, sed etc handle rare corner cases
  25. (embedded NUL bytes and such). This makes code bigger and uses
  26. some GNU extensions in libc. You probably only need this option
  27. if you plan to run busybox on desktop.
  28. config BUSYBOX_CONFIG_INCLUDE_SUSv2
  29. bool "Enable obsolete features removed before SUSv3"
  30. default BUSYBOX_DEFAULT_INCLUDE_SUSv2
  31. help
  32. This option will enable backwards compatibility with SuSv2,
  33. specifically, old-style numeric options ('command -1 <file>')
  34. will be supported in head, tail, and fold. (Note: should
  35. affect renice too.)
  36. config BUSYBOX_CONFIG_USE_PORTABLE_CODE
  37. bool "Avoid using GCC-specific code constructs"
  38. default BUSYBOX_DEFAULT_USE_PORTABLE_CODE
  39. help
  40. Use this option if you are trying to compile busybox with
  41. compiler other than gcc.
  42. If you do use gcc, this option may needlessly increase code size.
  43. config BUSYBOX_CONFIG_PLATFORM_LINUX
  44. bool "Enable Linux-specific applets and features"
  45. default BUSYBOX_DEFAULT_PLATFORM_LINUX
  46. help
  47. For the most part, busybox requires only POSIX compatibility
  48. from the target system, but some applets and features use
  49. Linux-specific interfaces.
  50. Answering 'N' here will disable such applets and hide the
  51. corresponding configuration options.
  52. config BUSYBOX_CONFIG_SHOW_USAGE
  53. bool "Show applet usage messages"
  54. default BUSYBOX_DEFAULT_SHOW_USAGE
  55. help
  56. Enabling this option, BusyBox applets will show terse help messages
  57. when invoked with wrong arguments.
  58. If you do not want to show any (helpful) usage message when
  59. issuing wrong command syntax, you can say 'N' here,
  60. saving approximately 7k.
  61. config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
  62. bool "Show verbose applet usage messages"
  63. default BUSYBOX_DEFAULT_FEATURE_VERBOSE_USAGE
  64. depends on BUSYBOX_CONFIG_SHOW_USAGE
  65. help
  66. All BusyBox applets will show verbose help messages when
  67. busybox is invoked with --help. This will add a lot of text to the
  68. busybox binary. In the default configuration, this will add about
  69. 13k, but it can add much more depending on your configuration.
  70. config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
  71. bool "Store applet usage messages in compressed form"
  72. default BUSYBOX_DEFAULT_FEATURE_COMPRESS_USAGE
  73. depends on BUSYBOX_CONFIG_SHOW_USAGE
  74. help
  75. Store usage messages in .bz compressed form, uncompress them
  76. on-the-fly when <applet> --help is called.
  77. If you have a really tiny busybox with few applets enabled (and
  78. bunzip2 isn't one of them), the overhead of the decompressor might
  79. be noticeable. Also, if you run executables directly from ROM
  80. and have very little memory, this might not be a win. Otherwise,
  81. you probably want this.
  82. config BUSYBOX_CONFIG_BUSYBOX
  83. bool "Include busybox applet"
  84. default BUSYBOX_DEFAULT_BUSYBOX
  85. help
  86. The busybox applet provides general help regarding busybox and
  87. allows the included applets to be listed. It's also required
  88. if applet links are to be installed at runtime.
  89. If you can live without these features disabling this will save
  90. some space.
  91. config BUSYBOX_CONFIG_FEATURE_INSTALLER
  92. bool "Support --install [-s] to install applet links at runtime"
  93. default BUSYBOX_DEFAULT_FEATURE_INSTALLER
  94. depends on BUSYBOX_CONFIG_BUSYBOX
  95. help
  96. Enable 'busybox --install [-s]' support. This will allow you to use
  97. busybox at runtime to create hard links or symlinks for all the
  98. applets that are compiled into busybox.
  99. config BUSYBOX_CONFIG_INSTALL_NO_USR
  100. bool "Don't use /usr"
  101. default BUSYBOX_DEFAULT_INSTALL_NO_USR
  102. help
  103. Disable use of /usr. busybox --install and "make install"
  104. will install applets only to /bin and /sbin,
  105. never to /usr/bin or /usr/sbin.
  106. config BUSYBOX_CONFIG_PAM
  107. bool "Support for PAM (Pluggable Authentication Modules)"
  108. default BUSYBOX_DEFAULT_PAM
  109. help
  110. Use PAM in some busybox applets (currently login and httpd) instead
  111. of direct access to password database.
  112. config BUSYBOX_CONFIG_LONG_OPTS
  113. bool "Support for --long-options"
  114. default BUSYBOX_DEFAULT_LONG_OPTS
  115. help
  116. Enable this if you want busybox applets to use the gnu --long-option
  117. style, in addition to single character -a -b -c style options.
  118. config BUSYBOX_CONFIG_FEATURE_DEVPTS
  119. bool "Use the devpts filesystem for Unix98 PTYs"
  120. default BUSYBOX_DEFAULT_FEATURE_DEVPTS
  121. help
  122. Enable if you want BusyBox to use Unix98 PTY support. If enabled,
  123. busybox will use /dev/ptmx for the master side of the pseudoterminal
  124. and /dev/pts/<number> for the slave side. Otherwise, BSD style
  125. /dev/ttyp<number> will be used. To use this option, you should have
  126. devpts mounted.
  127. config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
  128. bool "Clean up all memory before exiting (usually not needed)"
  129. default BUSYBOX_DEFAULT_FEATURE_CLEAN_UP
  130. help
  131. As a size optimization, busybox normally exits without explicitly
  132. freeing dynamically allocated memory or closing files. This saves
  133. space since the OS will clean up for us, but it can confuse debuggers
  134. like valgrind, which report tons of memory and resource leaks.
  135. Don't enable this unless you have a really good reason to clean
  136. things up manually.
  137. config BUSYBOX_CONFIG_FEATURE_UTMP
  138. bool "Support utmp file"
  139. default BUSYBOX_DEFAULT_FEATURE_UTMP
  140. help
  141. The file /var/run/utmp is used to track who is currently logged in.
  142. With this option on, certain applets (getty, login, telnetd etc)
  143. will create and delete entries there.
  144. "who" applet requires this option.
  145. config BUSYBOX_CONFIG_FEATURE_WTMP
  146. bool "Support wtmp file"
  147. default BUSYBOX_DEFAULT_FEATURE_WTMP
  148. depends on BUSYBOX_CONFIG_FEATURE_UTMP
  149. help
  150. The file /var/run/wtmp is used to track when users have logged into
  151. and logged out of the system.
  152. With this option on, certain applets (getty, login, telnetd etc)
  153. will append new entries there.
  154. "last" applet requires this option.
  155. config BUSYBOX_CONFIG_FEATURE_PIDFILE
  156. bool "Support writing pidfiles"
  157. default BUSYBOX_DEFAULT_FEATURE_PIDFILE
  158. help
  159. This option makes some applets (e.g. crond, syslogd, inetd) write
  160. a pidfile at the configured PID_FILE_PATH. It has no effect
  161. on applets which require pidfiles to run.
  162. config BUSYBOX_CONFIG_PID_FILE_PATH
  163. string "Path to directory for pidfile"
  164. default BUSYBOX_DEFAULT_PID_FILE_PATH
  165. depends on BUSYBOX_CONFIG_FEATURE_PIDFILE
  166. help
  167. This is the default path where pidfiles are created. Applets which
  168. allow you to set the pidfile path on the command line will override
  169. this value. The option has no effect on applets that require you to
  170. specify a pidfile path.
  171. config BUSYBOX_CONFIG_FEATURE_SUID
  172. bool "Support for SUID/SGID handling"
  173. default BUSYBOX_DEFAULT_FEATURE_SUID
  174. help
  175. With this option you can install the busybox binary belonging
  176. to root with the suid bit set, enabling some applets to perform
  177. root-level operations even when run by ordinary users
  178. (for example, mounting of user mounts in fstab needs this).
  179. Busybox will automatically drop privileges for applets
  180. that don't need root access.
  181. If you are really paranoid and don't want to do this, build two
  182. busybox binaries with different applets in them (and the appropriate
  183. symlinks pointing to each binary), and only set the suid bit on the
  184. one that needs it.
  185. The applets which require root rights (need suid bit or
  186. to be run by root) and will refuse to execute otherwise:
  187. crontab, login, passwd, su, vlock, wall.
  188. The applets which will use root rights if they have them
  189. (via suid bit, or because run by root), but would try to work
  190. without root right nevertheless:
  191. findfs, ping[6], traceroute[6], mount.
  192. Note that if you DONT select this option, but DO make busybox
  193. suid root, ALL applets will run under root, which is a huge
  194. security hole (think "cp /some/file /etc/passwd").
  195. config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
  196. bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
  197. default BUSYBOX_DEFAULT_FEATURE_SUID_CONFIG
  198. depends on BUSYBOX_CONFIG_FEATURE_SUID
  199. help
  200. Allow the SUID / SGID state of an applet to be determined at runtime
  201. by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
  202. The format of this file is as follows:
  203. APPLET = [Ssx-][Ssx-][x-] [USER.GROUP]
  204. s: USER or GROUP is allowed to execute APPLET.
  205. APPLET will run under USER or GROUP
  206. (reagardless of who's running it).
  207. S: USER or GROUP is NOT allowed to execute APPLET.
  208. APPLET will run under USER or GROUP.
  209. This option is not very sensical.
  210. x: USER/GROUP/others are allowed to execute APPLET.
  211. No UID/GID change will be done when it is run.
  212. -: USER/GROUP/others are not allowed to execute APPLET.
  213. An example might help:
  214. [SUID]
  215. su = ssx root.0 # applet su can be run by anyone and runs with
  216. # euid=0/egid=0
  217. su = ssx # exactly the same
  218. mount = sx- root.disk # applet mount can be run by root and members
  219. # of group disk (but not anyone else)
  220. # and runs with euid=0 (egid is not changed)
  221. cp = --- # disable applet cp for everyone
  222. The file has to be owned by user root, group root and has to be
  223. writeable only by root:
  224. (chown 0.0 /etc/busybox.conf; chmod 600 /etc/busybox.conf)
  225. The busybox executable has to be owned by user root, group
  226. root and has to be setuid root for this to work:
  227. (chown 0.0 /bin/busybox; chmod 4755 /bin/busybox)
  228. Robert 'sandman' Griebl has more information here:
  229. <url: http://www.softforge.de/bb/suid.html >.
  230. config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG_QUIET
  231. bool "Suppress warning message if /etc/busybox.conf is not readable"
  232. default BUSYBOX_DEFAULT_FEATURE_SUID_CONFIG_QUIET
  233. depends on BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
  234. help
  235. /etc/busybox.conf should be readable by the user needing the SUID,
  236. check this option to avoid users to be notified about missing
  237. permissions.
  238. config BUSYBOX_CONFIG_SELINUX
  239. bool "Support NSA Security Enhanced Linux"
  240. default BUSYBOX_DEFAULT_SELINUX
  241. select BUSYBOX_CONFIG_PLATFORM_LINUX
  242. help
  243. Enable support for SELinux in applets ls, ps, and id. Also provide
  244. the option of compiling in SELinux applets.
  245. If you do not have a complete SELinux userland installed, this stuff
  246. will not compile. Specifially, libselinux 1.28 or better is
  247. directly required by busybox. If the installation is located in a
  248. non-standard directory, provide it by invoking make as follows:
  249. CFLAGS=-I<libselinux-include-path> \
  250. LDFLAGS=-L<libselinux-lib-path> \
  251. make
  252. Most people will leave this set to 'N'.
  253. config BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
  254. bool "exec prefers applets"
  255. default BUSYBOX_DEFAULT_FEATURE_PREFER_APPLETS
  256. help
  257. This is an experimental option which directs applets about to
  258. call 'exec' to try and find an applicable busybox applet before
  259. searching the PATH. This is typically done by exec'ing
  260. /proc/self/exe.
  261. This may affect shell, find -exec, xargs and similar applets.
  262. They will use applets even if /bin/<applet> -> busybox link
  263. is missing (or is not a link to busybox). However, this causes
  264. problems in chroot jails without mounted /proc and with ps/top
  265. (command name can be shown as 'exe' for applets started this way).
  266. config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
  267. string "Path to BusyBox executable"
  268. default BUSYBOX_DEFAULT_BUSYBOX_EXEC_PATH
  269. help
  270. When Busybox applets need to run other busybox applets, BusyBox
  271. sometimes needs to exec() itself. When the /proc filesystem is
  272. mounted, /proc/self/exe always points to the currently running
  273. executable. If you haven't got /proc, set this to wherever you
  274. want to run BusyBox from.
  275. # These are auto-selected by other options
  276. config BUSYBOX_CONFIG_FEATURE_SYSLOG
  277. bool #No description makes it a hidden option
  278. default BUSYBOX_DEFAULT_FEATURE_SYSLOG
  279. #help
  280. # This option is auto-selected when you select any applet which may
  281. # send its output to syslog. You do not need to select it manually.
  282. config BUSYBOX_CONFIG_FEATURE_HAVE_RPC
  283. bool #No description makes it a hidden option
  284. default BUSYBOX_DEFAULT_FEATURE_HAVE_RPC
  285. #help
  286. # This is automatically selected if any of enabled applets need it.
  287. # You do not need to select it manually.
  288. comment 'Build Options'
  289. config BUSYBOX_CONFIG_STATIC
  290. bool "Build BusyBox as a static binary (no shared libs)"
  291. default BUSYBOX_DEFAULT_STATIC
  292. help
  293. If you want to build a static BusyBox binary, which does not
  294. use or require any shared libraries, then enable this option.
  295. This can cause BusyBox to be considerably larger, so you should
  296. leave this option false unless you have a good reason (i.e.
  297. your target platform does not support shared libraries, or
  298. you are building an initrd which doesn't need anything but
  299. BusyBox, etc).
  300. Most people will leave this set to 'N'.
  301. config BUSYBOX_CONFIG_PIE
  302. bool "Build BusyBox as a position independent executable"
  303. default BUSYBOX_DEFAULT_PIE
  304. depends on !BUSYBOX_CONFIG_STATIC
  305. help
  306. Hardened code option. PIE binaries are loaded at a different
  307. address at each invocation. This has some overhead,
  308. particularly on x86-32 which is short on registers.
  309. Most people will leave this set to 'N'.
  310. config BUSYBOX_CONFIG_NOMMU
  311. bool "Force NOMMU build"
  312. default BUSYBOX_DEFAULT_NOMMU
  313. help
  314. Busybox tries to detect whether architecture it is being
  315. built against supports MMU or not. If this detection fails,
  316. or if you want to build NOMMU version of busybox for testing,
  317. you may force NOMMU build here.
  318. Most people will leave this set to 'N'.
  319. # PIE can be made to work with BUILD_LIBBUSYBOX, but currently
  320. # build system does not support that
  321. config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  322. bool "Build shared libbusybox"
  323. default BUSYBOX_DEFAULT_BUILD_LIBBUSYBOX
  324. depends on !BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS && !BUSYBOX_CONFIG_PIE && !BUSYBOX_CONFIG_STATIC
  325. help
  326. Build a shared library libbusybox.so.N.N.N which contains all
  327. busybox code.
  328. This feature allows every applet to be built as a tiny
  329. separate executable. Enabling it for "one big busybox binary"
  330. approach serves no purpose and increases code size.
  331. You should almost certainly say "no" to this.
  332. ### config FEATURE_FULL_LIBBUSYBOX
  333. ### bool "Feature-complete libbusybox"
  334. ### default n if !FEATURE_SHARED_BUSYBOX
  335. ### depends on BUILD_LIBBUSYBOX
  336. ### help
  337. ### Build a libbusybox with the complete feature-set, disregarding
  338. ### the actually selected config.
  339. ###
  340. ### Normally, libbusybox will only contain the features which are
  341. ### used by busybox itself. If you plan to write a separate
  342. ### standalone application which uses libbusybox say 'Y'.
  343. ###
  344. ### Note: libbusybox is GPL, not LGPL, and exports no stable API that
  345. ### might act as a copyright barrier. We can and will modify the
  346. ### exported function set between releases (even minor version number
  347. ### changes), and happily break out-of-tree features.
  348. ###
  349. ### Say 'N' if in doubt.
  350. config BUSYBOX_CONFIG_FEATURE_INDIVIDUAL
  351. bool "Produce a binary for each applet, linked against libbusybox"
  352. default BUSYBOX_DEFAULT_FEATURE_INDIVIDUAL
  353. depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  354. help
  355. If your CPU architecture doesn't allow for sharing text/rodata
  356. sections of running binaries, but allows for runtime dynamic
  357. libraries, this option will allow you to reduce memory footprint
  358. when you have many different applets running at once.
  359. If your CPU architecture allows for sharing text/rodata,
  360. having single binary is more optimal.
  361. Each applet will be a tiny program, dynamically linked
  362. against libbusybox.so.N.N.N.
  363. You need to have a working dynamic linker.
  364. config BUSYBOX_CONFIG_FEATURE_SHARED_BUSYBOX
  365. bool "Produce additional busybox binary linked against libbusybox"
  366. default BUSYBOX_DEFAULT_FEATURE_SHARED_BUSYBOX
  367. depends on BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
  368. help
  369. Build busybox, dynamically linked against libbusybox.so.N.N.N.
  370. You need to have a working dynamic linker.
  371. ### config BUILD_AT_ONCE
  372. ### bool "Compile all sources at once"
  373. ### default n
  374. ### help
  375. ### Normally each source-file is compiled with one invocation of
  376. ### the compiler.
  377. ### If you set this option, all sources are compiled at once.
  378. ### This gives the compiler more opportunities to optimize which can
  379. ### result in smaller and/or faster binaries.
  380. ###
  381. ### Setting this option will consume alot of memory, e.g. if you
  382. ### enable all applets with all features, gcc uses more than 300MB
  383. ### RAM during compilation of busybox.
  384. ###
  385. ### This option is most likely only beneficial for newer compilers
  386. ### such as gcc-4.1 and above.
  387. ###
  388. ### Say 'N' unless you know what you are doing.
  389. config BUSYBOX_CONFIG_LFS
  390. bool
  391. default BUSYBOX_DEFAULT_LFS
  392. help
  393. If you want to build BusyBox with large file support, then enable
  394. this option. This will have no effect if your kernel or your C
  395. library lacks large file support for large files. Some of the
  396. programs that can benefit from large file support include dd, gzip,
  397. cp, mount, tar, and many others. If you want to access files larger
  398. than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
  399. config BUSYBOX_CONFIG_CROSS_COMPILER_PREFIX
  400. string "Cross Compiler prefix"
  401. default BUSYBOX_DEFAULT_CROSS_COMPILER_PREFIX
  402. help
  403. If you want to build BusyBox with a cross compiler, then you
  404. will need to set this to the cross-compiler prefix, for example,
  405. "i386-uclibc-".
  406. Note that CROSS_COMPILE environment variable or
  407. "make CROSS_COMPILE=xxx ..." will override this selection.
  408. Native builds leave this empty.
  409. config BUSYBOX_CONFIG_SYSROOT
  410. string "Path to sysroot"
  411. default BUSYBOX_DEFAULT_SYSROOT
  412. help
  413. If you want to build BusyBox with a cross compiler, then you
  414. might also need to specify where /usr/include and /usr/lib
  415. will be found.
  416. For example, BusyBox can be built against an installed
  417. Android NDK, platform version 9, for ARM ABI with
  418. CONFIG_SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm
  419. Native builds leave this empty.
  420. config BUSYBOX_CONFIG_EXTRA_CFLAGS
  421. string "Additional CFLAGS"
  422. default BUSYBOX_DEFAULT_EXTRA_CFLAGS
  423. help
  424. Additional CFLAGS to pass to the compiler verbatim.
  425. config BUSYBOX_CONFIG_EXTRA_LDFLAGS
  426. string "Additional LDFLAGS"
  427. default BUSYBOX_DEFAULT_EXTRA_LDFLAGS
  428. help
  429. Additional LDFLAGS to pass to the linker verbatim.
  430. config BUSYBOX_CONFIG_EXTRA_LDLIBS
  431. string "Additional LDLIBS"
  432. default BUSYBOX_DEFAULT_EXTRA_LDLIBS
  433. help
  434. Additional LDLIBS to pass to the linker with -l.
  435. comment 'Installation Options ("make install" behavior)'
  436. choice
  437. prompt "What kind of applet links to install"
  438. default BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
  439. help
  440. Choose what kind of links to applets are created by "make install".
  441. config BUSYBOX_CONFIG_INSTALL_APPLET_SYMLINKS
  442. bool "as soft-links"
  443. help
  444. Install applets as soft-links to the busybox binary. This needs some
  445. free inodes on the filesystem, but might help with filesystem
  446. generators that can't cope with hard-links.
  447. config BUSYBOX_CONFIG_INSTALL_APPLET_HARDLINKS
  448. bool "as hard-links"
  449. help
  450. Install applets as hard-links to the busybox binary. This might
  451. count on a filesystem with few inodes.
  452. config BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
  453. bool "as script wrappers"
  454. help
  455. Install applets as script wrappers that call the busybox binary.
  456. config BUSYBOX_CONFIG_INSTALL_APPLET_DONT
  457. bool "not installed"
  458. help
  459. Do not install applet links. Useful when you plan to use
  460. busybox --install for installing links, or plan to use
  461. a standalone shell and thus don't need applet links.
  462. endchoice
  463. choice
  464. prompt "/bin/sh applet link"
  465. default BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
  466. depends on BUSYBOX_CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS
  467. help
  468. Choose how you install /bin/sh applet link.
  469. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SYMLINK
  470. bool "as soft-link"
  471. help
  472. Install /bin/sh applet as soft-link to the busybox binary.
  473. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_HARDLINK
  474. bool "as hard-link"
  475. help
  476. Install /bin/sh applet as hard-link to the busybox binary.
  477. config BUSYBOX_CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER
  478. bool "as script wrapper"
  479. help
  480. Install /bin/sh applet as script wrapper that calls
  481. the busybox binary.
  482. endchoice
  483. config BUSYBOX_CONFIG_PREFIX
  484. string "BusyBox installation prefix"
  485. default BUSYBOX_DEFAULT_PREFIX
  486. help
  487. Define your directory to install BusyBox files/subdirs in.
  488. comment 'Debugging Options'
  489. config BUSYBOX_CONFIG_DEBUG
  490. bool "Build BusyBox with extra Debugging symbols"
  491. default BUSYBOX_DEFAULT_DEBUG
  492. help
  493. Say Y here if you wish to examine BusyBox internals while applets are
  494. running. This increases the size of the binary considerably, and
  495. should only be used when doing development. If you are doing
  496. development and want to debug BusyBox, answer Y.
  497. Most people should answer N.
  498. config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
  499. bool "Disable compiler optimizations"
  500. default BUSYBOX_DEFAULT_DEBUG_PESSIMIZE
  501. depends on BUSYBOX_CONFIG_DEBUG
  502. help
  503. The compiler's optimization of source code can eliminate and reorder
  504. code, resulting in an executable that's hard to understand when
  505. stepping through it with a debugger. This switches it off, resulting
  506. in a much bigger executable that more closely matches the source
  507. code.
  508. config BUSYBOX_CONFIG_DEBUG_SANITIZE
  509. bool "Enable runtime sanitizers (ASAN/LSAN/USAN/etc...)"
  510. default BUSYBOX_DEFAULT_DEBUG_SANITIZE
  511. help
  512. Say Y here if you want to enable runtime sanitizers. These help
  513. catch bad memory accesses (e.g. buffer overflows), but will make
  514. the executable larger and slow down runtime a bit.
  515. If you aren't developing/testing busybox, say N here.
  516. config BUSYBOX_CONFIG_UNIT_TEST
  517. bool "Build unit tests"
  518. default BUSYBOX_DEFAULT_UNIT_TEST
  519. help
  520. Say Y here if you want to build unit tests (both the framework and
  521. test cases) as a Busybox applet. This results in bigger code, so you
  522. probably don't want this option in production builds.
  523. config BUSYBOX_CONFIG_WERROR
  524. bool "Abort compilation on any warning"
  525. default BUSYBOX_DEFAULT_WERROR
  526. help
  527. Selecting this will add -Werror to gcc command line.
  528. Most people should answer N.
  529. choice
  530. prompt "Additional debugging library"
  531. default BUSYBOX_CONFIG_NO_DEBUG_LIB
  532. help
  533. Using an additional debugging library will make BusyBox become
  534. considerable larger and will cause it to run more slowly. You
  535. should always leave this option disabled for production use.
  536. dmalloc support:
  537. ----------------
  538. This enables compiling with dmalloc ( http://dmalloc.com/ )
  539. which is an excellent public domain mem leak and malloc problem
  540. detector. To enable dmalloc, before running busybox you will
  541. want to properly set your environment, for example:
  542. export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
  543. The 'debug=' value is generated using the following command
  544. dmalloc -p log-stats -p log-non-free -p log-bad-space \
  545. -p log-elapsed-time -p check-fence -p check-heap \
  546. -p check-lists -p check-blank -p check-funcs -p realloc-copy \
  547. -p allow-free-null
  548. Electric-fence support:
  549. -----------------------
  550. This enables compiling with Electric-fence support. Electric
  551. fence is another very useful malloc debugging library which uses
  552. your computer's virtual memory hardware to detect illegal memory
  553. accesses. This support will make BusyBox be considerable larger
  554. and run slower, so you should leave this option disabled unless
  555. you are hunting a hard to find memory problem.
  556. config BUSYBOX_CONFIG_NO_DEBUG_LIB
  557. bool "None"
  558. config BUSYBOX_CONFIG_DMALLOC
  559. bool "Dmalloc"
  560. config BUSYBOX_CONFIG_EFENCE
  561. bool "Electric-fence"
  562. endchoice
  563. endmenu
  564. source libbb/Config.in
  565. comment "Applets"
  566. source archival/Config.in
  567. source coreutils/Config.in
  568. source console-tools/Config.in
  569. source debianutils/Config.in
  570. source editors/Config.in
  571. source findutils/Config.in
  572. source init/Config.in
  573. source loginutils/Config.in
  574. source e2fsprogs/Config.in
  575. source modutils/Config.in
  576. source util-linux/Config.in
  577. source miscutils/Config.in
  578. source networking/Config.in
  579. source printutils/Config.in
  580. source mailutils/Config.in
  581. source procps/Config.in
  582. source runit/Config.in
  583. source selinux/Config.in
  584. source shell/Config.in
  585. source sysklogd/Config.in