Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. # DO NOT EDIT. This file is generated from Config.src
  2. #
  3. # For a description of the syntax of this configuration file,
  4. # see scripts/kbuild/config-language.txt.
  5. #
  6. menu "Shells"
  7. config BUSYBOX_ASH
  8. bool "ash"
  9. default y
  10. depends on !BUSYBOX_NOMMU
  11. help
  12. Tha 'ash' shell adds about 60k in the default configuration and is
  13. the most complete and most pedantically correct shell included with
  14. busybox. This shell is actually a derivative of the Debian 'dash'
  15. shell (by Herbert Xu), which was created by porting the 'ash' shell
  16. (written by Kenneth Almquist) from NetBSD.
  17. config BUSYBOX_ASH_BASH_COMPAT
  18. bool "bash-compatible extensions"
  19. default y
  20. depends on BUSYBOX_ASH
  21. help
  22. Enable bash-compatible extensions.
  23. config BUSYBOX_ASH_IDLE_TIMEOUT
  24. bool "Idle timeout variable"
  25. default n
  26. depends on BUSYBOX_ASH
  27. help
  28. Enables bash-like auto-logout after $TMOUT seconds of idle time.
  29. config BUSYBOX_ASH_JOB_CONTROL
  30. bool "Job control"
  31. default y
  32. depends on BUSYBOX_ASH
  33. help
  34. Enable job control in the ash shell.
  35. config BUSYBOX_ASH_ALIAS
  36. bool "Alias support"
  37. default y
  38. depends on BUSYBOX_ASH
  39. help
  40. Enable alias support in the ash shell.
  41. config BUSYBOX_ASH_GETOPTS
  42. bool "Builtin getopt to parse positional parameters"
  43. default y
  44. depends on BUSYBOX_ASH
  45. help
  46. Enable support for getopts builtin in ash.
  47. config BUSYBOX_ASH_BUILTIN_ECHO
  48. bool "Builtin version of 'echo'"
  49. default y
  50. depends on BUSYBOX_ASH
  51. help
  52. Enable support for echo builtin in ash.
  53. config BUSYBOX_ASH_BUILTIN_PRINTF
  54. bool "Builtin version of 'printf'"
  55. default y
  56. depends on BUSYBOX_ASH
  57. help
  58. Enable support for printf builtin in ash.
  59. config BUSYBOX_ASH_BUILTIN_TEST
  60. bool "Builtin version of 'test'"
  61. default y
  62. depends on BUSYBOX_ASH
  63. help
  64. Enable support for test builtin in ash.
  65. config BUSYBOX_ASH_CMDCMD
  66. bool "'command' command to override shell builtins"
  67. default y
  68. depends on BUSYBOX_ASH
  69. help
  70. Enable support for the ash 'command' builtin, which allows
  71. you to run the specified command with the specified arguments,
  72. even when there is an ash builtin command with the same name.
  73. config BUSYBOX_ASH_MAIL
  74. bool "Check for new mail on interactive shells"
  75. default n
  76. depends on BUSYBOX_ASH
  77. help
  78. Enable "check for new mail" function in the ash shell.
  79. config BUSYBOX_ASH_OPTIMIZE_FOR_SIZE
  80. bool "Optimize for size instead of speed"
  81. default y
  82. depends on BUSYBOX_ASH
  83. help
  84. Compile ash for reduced size at the price of speed.
  85. config BUSYBOX_ASH_RANDOM_SUPPORT
  86. bool "Pseudorandom generator and $RANDOM variable"
  87. default y
  88. depends on BUSYBOX_ASH
  89. help
  90. Enable pseudorandom generator and dynamic variable "$RANDOM".
  91. Each read of "$RANDOM" will generate a new pseudorandom value.
  92. You can reset the generator by using a specified start value.
  93. After "unset RANDOM" the generator will switch off and this
  94. variable will no longer have special treatment.
  95. config BUSYBOX_ASH_EXPAND_PRMT
  96. bool "Expand prompt string"
  97. default y
  98. depends on BUSYBOX_ASH
  99. help
  100. "PS#" may contain volatile content, such as backquote commands.
  101. This option recreates the prompt string from the environment
  102. variable each time it is displayed.
  103. config BUSYBOX_CTTYHACK
  104. bool "cttyhack"
  105. default n
  106. help
  107. One common problem reported on the mailing list is the "can't
  108. access tty; job control turned off" error message, which typically
  109. appears when one tries to use a shell with stdin/stdout on
  110. /dev/console.
  111. This device is special - it cannot be a controlling tty.
  112. The proper solution is to use the correct device instead of
  113. /dev/console.
  114. cttyhack provides a "quick and dirty" solution to this problem.
  115. It analyzes stdin with various ioctls, trying to determine whether
  116. it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
  117. On Linux it also checks sysfs for a pointer to the active console.
  118. If cttyhack is able to find the real console device, it closes
  119. stdin/out/err and reopens that device.
  120. Then it executes the given program. Opening the device will make
  121. that device a controlling tty. This may require cttyhack
  122. to be a session leader.
  123. Example for /etc/inittab (for busybox init):
  124. ::respawn:/bin/cttyhack /bin/sh
  125. Starting an interactive shell from boot shell script:
  126. setsid cttyhack sh
  127. Giving controlling tty to shell running with PID 1:
  128. # exec cttyhack sh
  129. Without cttyhack, you need to know exact tty name,
  130. and do something like this:
  131. # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
  132. Starting getty on a controlling tty from a shell script:
  133. # getty 115200 $(cttyhack)
  134. config BUSYBOX_HUSH
  135. bool "hush"
  136. default n
  137. help
  138. hush is a small shell (25k). It handles the normal flow control
  139. constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
  140. case/esac. Redirections, here documents, $((arithmetic))
  141. and functions are supported.
  142. It will compile and work on no-mmu systems.
  143. It does not handle select, aliases, tilde expansion,
  144. &>file and >&file redirection of stdout+stderr.
  145. config BUSYBOX_HUSH_BASH_COMPAT
  146. bool "bash-compatible extensions"
  147. default y
  148. depends on BUSYBOX_HUSH
  149. help
  150. Enable bash-compatible extensions.
  151. config BUSYBOX_HUSH_BRACE_EXPANSION
  152. bool "Brace expansion"
  153. default y
  154. depends on BUSYBOX_HUSH_BASH_COMPAT
  155. help
  156. Enable {abc,def} extension.
  157. config BUSYBOX_HUSH_HELP
  158. bool "help builtin"
  159. default y
  160. depends on BUSYBOX_HUSH
  161. help
  162. Enable help builtin in hush. Code size + ~1 kbyte.
  163. config BUSYBOX_HUSH_INTERACTIVE
  164. bool "Interactive mode"
  165. default y
  166. depends on BUSYBOX_HUSH
  167. help
  168. Enable interactive mode (prompt and command editing).
  169. Without this, hush simply reads and executes commands
  170. from stdin just like a shell script from a file.
  171. No prompt, no PS1/PS2 magic shell variables.
  172. config BUSYBOX_HUSH_SAVEHISTORY
  173. bool "Save command history to .hush_history"
  174. default y
  175. depends on BUSYBOX_HUSH_INTERACTIVE && BUSYBOX_FEATURE_EDITING_SAVEHISTORY
  176. help
  177. Enable history saving in hush.
  178. config BUSYBOX_HUSH_JOB
  179. bool "Job control"
  180. default y
  181. depends on BUSYBOX_HUSH_INTERACTIVE
  182. help
  183. Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
  184. command (not entire shell), fg/bg builtins work. Without this option,
  185. "cmd &" still works by simply spawning a process and immediately
  186. prompting for next command (or executing next command in a script),
  187. but no separate process group is formed.
  188. config BUSYBOX_HUSH_TICK
  189. bool "Process substitution"
  190. default y
  191. depends on BUSYBOX_HUSH
  192. help
  193. Enable process substitution `command` and $(command) in hush.
  194. config BUSYBOX_HUSH_IF
  195. bool "Support if/then/elif/else/fi"
  196. default y
  197. depends on BUSYBOX_HUSH
  198. help
  199. Enable if/then/elif/else/fi in hush.
  200. config BUSYBOX_HUSH_LOOPS
  201. bool "Support for, while and until loops"
  202. default y
  203. depends on BUSYBOX_HUSH
  204. help
  205. Enable for, while and until loops in hush.
  206. config BUSYBOX_HUSH_CASE
  207. bool "Support case ... esac statement"
  208. default y
  209. depends on BUSYBOX_HUSH
  210. help
  211. Enable case ... esac statement in hush. +400 bytes.
  212. config BUSYBOX_HUSH_FUNCTIONS
  213. bool "Support funcname() { commands; } syntax"
  214. default y
  215. depends on BUSYBOX_HUSH
  216. help
  217. Enable support for shell functions in hush. +800 bytes.
  218. config BUSYBOX_HUSH_LOCAL
  219. bool "Support local builtin"
  220. default y
  221. depends on BUSYBOX_HUSH_FUNCTIONS
  222. help
  223. Enable support for local variables in functions.
  224. config BUSYBOX_HUSH_RANDOM_SUPPORT
  225. bool "Pseudorandom generator and $RANDOM variable"
  226. default y
  227. depends on BUSYBOX_HUSH
  228. help
  229. Enable pseudorandom generator and dynamic variable "$RANDOM".
  230. Each read of "$RANDOM" will generate a new pseudorandom value.
  231. config BUSYBOX_HUSH_EXPORT_N
  232. bool "Support 'export -n' option"
  233. default y
  234. depends on BUSYBOX_HUSH
  235. help
  236. export -n unexports variables. It is a bash extension.
  237. config BUSYBOX_HUSH_MODE_X
  238. bool "Support 'hush -x' option and 'set -x' command"
  239. default y
  240. depends on BUSYBOX_HUSH
  241. help
  242. This instructs hush to print commands before execution.
  243. Adds ~300 bytes.
  244. config BUSYBOX_MSH
  245. bool "msh (deprecated: aliased to hush)"
  246. default n
  247. select BUSYBOX_HUSH
  248. help
  249. msh is deprecated and will be removed, please migrate to hush.
  250. choice
  251. prompt "Choose which shell is aliased to 'sh' name"
  252. default FEATURE_SH_IS_ASH
  253. help
  254. Choose which shell you want to be executed by 'sh' alias.
  255. The ash shell is the most bash compatible and full featured one.
  256. # note: cannot use "select ASH" here, it breaks "make allnoconfig"
  257. config BUSYBOX_FEATURE_SH_IS_ASH
  258. depends on BUSYBOX_ASH
  259. bool "ash"
  260. depends on !BUSYBOX_NOMMU
  261. config BUSYBOX_FEATURE_SH_IS_HUSH
  262. depends on BUSYBOX_HUSH
  263. bool "hush"
  264. config BUSYBOX_FEATURE_SH_IS_NONE
  265. bool "none"
  266. endchoice
  267. choice
  268. prompt "Choose which shell is aliased to 'bash' name"
  269. default FEATURE_BASH_IS_NONE
  270. help
  271. Choose which shell you want to be executed by 'bash' alias.
  272. The ash shell is the most bash compatible and full featured one.
  273. Note that selecting this option does not switch on any bash
  274. compatibility code. It merely makes it possible to install
  275. /bin/bash (sym)link and run scripts which start with
  276. #!/bin/bash line.
  277. Many systems use it in scripts which use bash-specific features,
  278. even simple ones like $RANDOM. Without this option, busybox
  279. can't be used for running them because it won't recongnize
  280. "bash" as a supported applet name.
  281. config BUSYBOX_FEATURE_BASH_IS_ASH
  282. depends on BUSYBOX_ASH
  283. bool "ash"
  284. depends on !BUSYBOX_NOMMU
  285. config BUSYBOX_FEATURE_BASH_IS_HUSH
  286. depends on BUSYBOX_HUSH
  287. bool "hush"
  288. config BUSYBOX_FEATURE_BASH_IS_NONE
  289. bool "none"
  290. endchoice
  291. config BUSYBOX_SH_MATH_SUPPORT
  292. bool "POSIX math support"
  293. default y
  294. depends on BUSYBOX_ASH || BUSYBOX_HUSH
  295. help
  296. Enable math support in the shell via $((...)) syntax.
  297. config BUSYBOX_SH_MATH_SUPPORT_64
  298. bool "Extend POSIX math support to 64 bit"
  299. default y
  300. depends on BUSYBOX_SH_MATH_SUPPORT
  301. help
  302. Enable 64-bit math support in the shell. This will make the shell
  303. slightly larger, but will allow computation with very large numbers.
  304. This is not in POSIX, so do not rely on this in portable code.
  305. config BUSYBOX_FEATURE_SH_EXTRA_QUIET
  306. bool "Hide message on interactive shell startup"
  307. default y
  308. depends on BUSYBOX_HUSH || BUSYBOX_ASH
  309. help
  310. Remove the busybox introduction when starting a shell.
  311. config BUSYBOX_FEATURE_SH_STANDALONE
  312. bool "Standalone shell"
  313. default n
  314. depends on (BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
  315. help
  316. This option causes busybox shells to use busybox applets
  317. in preference to executables in the PATH whenever possible. For
  318. example, entering the command 'ifconfig' into the shell would cause
  319. busybox to use the ifconfig busybox applet. Specifying the fully
  320. qualified executable name, such as '/sbin/ifconfig' will still
  321. execute the /sbin/ifconfig executable on the filesystem. This option
  322. is generally used when creating a statically linked version of busybox
  323. for use as a rescue shell, in the event that you screw up your system.
  324. This is implemented by re-execing /proc/self/exe (typically)
  325. with right parameters. Some selected applets ("NOFORK" applets)
  326. can even be executed without creating new process.
  327. Instead, busybox will call <applet>_main() internally.
  328. However, this causes problems in chroot jails without mounted /proc
  329. and with ps/top (command name can be shown as 'exe' for applets
  330. started this way).
  331. # untrue?
  332. # Note that this will *also* cause applets to take precedence
  333. # over shell builtins of the same name. So turning this on will
  334. # eliminate any performance gained by turning on the builtin "echo"
  335. # and "test" commands in ash.
  336. # untrue?
  337. # Note that when using this option, the shell will attempt to directly
  338. # run '/bin/busybox'. If you do not have the busybox binary sitting in
  339. # that exact location with that exact name, this option will not work at
  340. # all.
  341. config BUSYBOX_FEATURE_SH_NOFORK
  342. bool "Run 'nofork' applets directly"
  343. default n
  344. depends on (BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
  345. help
  346. This option causes busybox shells to not execute typical
  347. fork/exec/wait sequence, but call <applet>_main directly,
  348. if possible. (Sometimes it is not possible: for example,
  349. this is not possible in pipes).
  350. This will be done only for some applets (those which are marked
  351. NOFORK in include/applets.h).
  352. This may significantly speed up some shell scripts.
  353. This feature is relatively new. Use with care. Report bugs
  354. to project mailing list.
  355. config BUSYBOX_FEATURE_SH_HISTFILESIZE
  356. bool "Use $HISTFILESIZE"
  357. default y
  358. depends on BUSYBOX_HUSH || BUSYBOX_ASH
  359. help
  360. This option makes busybox shells to use $HISTFILESIZE variable
  361. to set shell history size. Note that its max value is capped
  362. by "History size" setting in library tuning section.
  363. endmenu