Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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_CONFIG_ASH
  8. bool "ash"
  9. default y
  10. depends on !BUSYBOX_CONFIG_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_CONFIG_ASH_BASH_COMPAT
  18. bool "bash-compatible extensions"
  19. default y
  20. depends on BUSYBOX_CONFIG_ASH
  21. help
  22. Enable bash-compatible extensions.
  23. config BUSYBOX_CONFIG_ASH_IDLE_TIMEOUT
  24. bool "Idle timeout variable"
  25. default n
  26. depends on BUSYBOX_CONFIG_ASH
  27. help
  28. Enables bash-like auto-logout after $TMOUT seconds of idle time.
  29. config BUSYBOX_CONFIG_ASH_JOB_CONTROL
  30. bool "Job control"
  31. default y
  32. depends on BUSYBOX_CONFIG_ASH
  33. help
  34. Enable job control in the ash shell.
  35. config BUSYBOX_CONFIG_ASH_ALIAS
  36. bool "Alias support"
  37. default y
  38. depends on BUSYBOX_CONFIG_ASH
  39. help
  40. Enable alias support in the ash shell.
  41. config BUSYBOX_CONFIG_ASH_GETOPTS
  42. bool "Builtin getopt to parse positional parameters"
  43. default y
  44. depends on BUSYBOX_CONFIG_ASH
  45. help
  46. Enable support for getopts builtin in ash.
  47. config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO
  48. bool "Builtin version of 'echo'"
  49. default y
  50. depends on BUSYBOX_CONFIG_ASH
  51. help
  52. Enable support for echo builtin in ash.
  53. config BUSYBOX_CONFIG_ASH_BUILTIN_PRINTF
  54. bool "Builtin version of 'printf'"
  55. default y
  56. depends on BUSYBOX_CONFIG_ASH
  57. help
  58. Enable support for printf builtin in ash.
  59. config BUSYBOX_CONFIG_ASH_BUILTIN_TEST
  60. bool "Builtin version of 'test'"
  61. default y
  62. depends on BUSYBOX_CONFIG_ASH
  63. help
  64. Enable support for test builtin in ash.
  65. config BUSYBOX_CONFIG_ASH_CMDCMD
  66. bool "'command' command to override shell builtins"
  67. default y
  68. depends on BUSYBOX_CONFIG_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_CONFIG_ASH_MAIL
  74. bool "Check for new mail on interactive shells"
  75. default n
  76. depends on BUSYBOX_CONFIG_ASH
  77. help
  78. Enable "check for new mail" function in the ash shell.
  79. config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE
  80. bool "Optimize for size instead of speed"
  81. default n
  82. depends on BUSYBOX_CONFIG_ASH
  83. help
  84. Compile ash for reduced size at the price of speed.
  85. config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT
  86. bool "Pseudorandom generator and $RANDOM variable"
  87. default n
  88. depends on BUSYBOX_CONFIG_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_CONFIG_ASH_EXPAND_PRMT
  96. bool "Expand prompt string"
  97. default y
  98. depends on BUSYBOX_CONFIG_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_CONFIG_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. config BUSYBOX_CONFIG_HUSH
  133. bool "hush"
  134. default n
  135. help
  136. hush is a small shell (25k). It handles the normal flow control
  137. constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
  138. case/esac. Redirections, here documents, $((arithmetic))
  139. and functions are supported.
  140. It will compile and work on no-mmu systems.
  141. It does not handle select, aliases, tilde expansion,
  142. &>file and >&file redirection of stdout+stderr.
  143. config BUSYBOX_CONFIG_HUSH_BASH_COMPAT
  144. bool "bash-compatible extensions"
  145. default y
  146. depends on BUSYBOX_CONFIG_HUSH
  147. help
  148. Enable bash-compatible extensions.
  149. config BUSYBOX_CONFIG_HUSH_BRACE_EXPANSION
  150. bool "Brace expansion"
  151. default n
  152. depends on BUSYBOX_CONFIG_HUSH_BASH_COMPAT
  153. help
  154. Enable {abc,def} extension.
  155. config BUSYBOX_CONFIG_HUSH_HELP
  156. bool "help builtin"
  157. default y
  158. depends on BUSYBOX_CONFIG_HUSH
  159. help
  160. Enable help builtin in hush. Code size + ~1 kbyte.
  161. config BUSYBOX_CONFIG_HUSH_INTERACTIVE
  162. bool "Interactive mode"
  163. default y
  164. depends on BUSYBOX_CONFIG_HUSH
  165. help
  166. Enable interactive mode (prompt and command editing).
  167. Without this, hush simply reads and executes commands
  168. from stdin just like a shell script from a file.
  169. No prompt, no PS1/PS2 magic shell variables.
  170. config BUSYBOX_CONFIG_HUSH_SAVEHISTORY
  171. bool "Save command history to .hush_history"
  172. default n
  173. depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE && BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY
  174. help
  175. Enable history saving in hush.
  176. config BUSYBOX_CONFIG_HUSH_JOB
  177. bool "Job control"
  178. default y
  179. depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE
  180. help
  181. Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
  182. command (not entire shell), fg/bg builtins work. Without this option,
  183. "cmd &" still works by simply spawning a process and immediately
  184. prompting for next command (or executing next command in a script),
  185. but no separate process group is formed.
  186. config BUSYBOX_CONFIG_HUSH_TICK
  187. bool "Process substitution"
  188. default y
  189. depends on BUSYBOX_CONFIG_HUSH
  190. help
  191. Enable process substitution `command` and $(command) in hush.
  192. config BUSYBOX_CONFIG_HUSH_IF
  193. bool "Support if/then/elif/else/fi"
  194. default y
  195. depends on BUSYBOX_CONFIG_HUSH
  196. help
  197. Enable if/then/elif/else/fi in hush.
  198. config BUSYBOX_CONFIG_HUSH_LOOPS
  199. bool "Support for, while and until loops"
  200. default y
  201. depends on BUSYBOX_CONFIG_HUSH
  202. help
  203. Enable for, while and until loops in hush.
  204. config BUSYBOX_CONFIG_HUSH_CASE
  205. bool "Support case ... esac statement"
  206. default y
  207. depends on BUSYBOX_CONFIG_HUSH
  208. help
  209. Enable case ... esac statement in hush. +400 bytes.
  210. config BUSYBOX_CONFIG_HUSH_FUNCTIONS
  211. bool "Support funcname() { commands; } syntax"
  212. default y
  213. depends on BUSYBOX_CONFIG_HUSH
  214. help
  215. Enable support for shell functions in hush. +800 bytes.
  216. config BUSYBOX_CONFIG_HUSH_LOCAL
  217. bool "Support local builtin"
  218. default y
  219. depends on BUSYBOX_CONFIG_HUSH_FUNCTIONS
  220. help
  221. Enable support for local variables in functions.
  222. config BUSYBOX_CONFIG_HUSH_RANDOM_SUPPORT
  223. bool "Pseudorandom generator and $RANDOM variable"
  224. default n
  225. depends on BUSYBOX_CONFIG_HUSH
  226. help
  227. Enable pseudorandom generator and dynamic variable "$RANDOM".
  228. Each read of "$RANDOM" will generate a new pseudorandom value.
  229. config BUSYBOX_CONFIG_HUSH_EXPORT_N
  230. bool "Support 'export -n' option"
  231. default y
  232. depends on BUSYBOX_CONFIG_HUSH
  233. help
  234. export -n unexports variables. It is a bash extension.
  235. config BUSYBOX_CONFIG_HUSH_MODE_X
  236. bool "Support 'hush -x' option and 'set -x' command"
  237. default n
  238. depends on BUSYBOX_CONFIG_HUSH
  239. help
  240. This instructs hush to print commands before execution.
  241. Adds ~300 bytes.
  242. config BUSYBOX_CONFIG_MSH
  243. bool "msh (deprecated: aliased to hush)"
  244. default n
  245. select BUSYBOX_CONFIG_HUSH
  246. help
  247. msh is deprecated and will be removed, please migrate to hush.
  248. choice
  249. prompt "Choose which shell is aliased to 'sh' name"
  250. default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
  251. help
  252. Choose which shell you want to be executed by 'sh' alias.
  253. The ash shell is the most bash compatible and full featured one.
  254. # note: cannot use "select ASH" here, it breaks "make allnoconfig"
  255. config BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
  256. depends on BUSYBOX_CONFIG_ASH
  257. bool "ash"
  258. depends on !BUSYBOX_CONFIG_NOMMU
  259. config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH
  260. depends on BUSYBOX_CONFIG_HUSH
  261. bool "hush"
  262. config BUSYBOX_CONFIG_FEATURE_SH_IS_NONE
  263. bool "none"
  264. endchoice
  265. choice
  266. prompt "Choose which shell is aliased to 'bash' name"
  267. default BUSYBOX_CONFIG_FEATURE_BASH_IS_NONE
  268. help
  269. Choose which shell you want to be executed by 'bash' alias.
  270. The ash shell is the most bash compatible and full featured one.
  271. Note that selecting this option does not switch on any bash
  272. compatibility code. It merely makes it possible to install
  273. /bin/bash (sym)link and run scripts which start with
  274. #!/bin/bash line.
  275. Many systems use it in scripts which use bash-specific features,
  276. even simple ones like $RANDOM. Without this option, busybox
  277. can't be used for running them because it won't recongnize
  278. "bash" as a supported applet name.
  279. config BUSYBOX_CONFIG_FEATURE_BASH_IS_ASH
  280. depends on BUSYBOX_CONFIG_ASH
  281. bool "ash"
  282. depends on !BUSYBOX_CONFIG_NOMMU
  283. config BUSYBOX_CONFIG_FEATURE_BASH_IS_HUSH
  284. depends on BUSYBOX_CONFIG_HUSH
  285. bool "hush"
  286. config BUSYBOX_CONFIG_FEATURE_BASH_IS_NONE
  287. bool "none"
  288. endchoice
  289. config BUSYBOX_CONFIG_SH_MATH_SUPPORT
  290. bool "POSIX math support"
  291. default y
  292. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH
  293. help
  294. Enable math support in the shell via $((...)) syntax.
  295. config BUSYBOX_CONFIG_SH_MATH_SUPPORT_64
  296. bool "Extend POSIX math support to 64 bit"
  297. default y
  298. depends on BUSYBOX_CONFIG_SH_MATH_SUPPORT
  299. help
  300. Enable 64-bit math support in the shell. This will make the shell
  301. slightly larger, but will allow computation with very large numbers.
  302. This is not in POSIX, so do not rely on this in portable code.
  303. config BUSYBOX_CONFIG_FEATURE_SH_EXTRA_QUIET
  304. bool "Hide message on interactive shell startup"
  305. default n
  306. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH
  307. help
  308. Remove the busybox introduction when starting a shell.
  309. config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE
  310. bool "Standalone shell"
  311. default n
  312. depends on (BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH) && BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
  313. help
  314. This option causes busybox shells to use busybox applets
  315. in preference to executables in the PATH whenever possible. For
  316. example, entering the command 'ifconfig' into the shell would cause
  317. busybox to use the ifconfig busybox applet. Specifying the fully
  318. qualified executable name, such as '/sbin/ifconfig' will still
  319. execute the /sbin/ifconfig executable on the filesystem. This option
  320. is generally used when creating a statically linked version of busybox
  321. for use as a rescue shell, in the event that you screw up your system.
  322. This is implemented by re-execing /proc/self/exe (typically)
  323. with right parameters. Some selected applets ("NOFORK" applets)
  324. can even be executed without creating new process.
  325. Instead, busybox will call <applet>_main() internally.
  326. However, this causes problems in chroot jails without mounted /proc
  327. and with ps/top (command name can be shown as 'exe' for applets
  328. started this way).
  329. # untrue?
  330. # Note that this will *also* cause applets to take precedence
  331. # over shell builtins of the same name. So turning this on will
  332. # eliminate any performance gained by turning on the builtin "echo"
  333. # and "test" commands in ash.
  334. # untrue?
  335. # Note that when using this option, the shell will attempt to directly
  336. # run '/bin/busybox'. If you do not have the busybox binary sitting in
  337. # that exact location with that exact name, this option will not work at
  338. # all.
  339. config BUSYBOX_CONFIG_FEATURE_SH_NOFORK
  340. bool "Run 'nofork' applets directly"
  341. default n
  342. depends on (BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH) && BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
  343. help
  344. This option causes busybox shells to not execute typical
  345. fork/exec/wait sequence, but call <applet>_main directly,
  346. if possible. (Sometimes it is not possible: for example,
  347. this is not possible in pipes).
  348. This will be done only for some applets (those which are marked
  349. NOFORK in include/applets.h).
  350. This may significantly speed up some shell scripts.
  351. This feature is relatively new. Use with care. Report bugs
  352. to project mailing list.
  353. config BUSYBOX_CONFIG_FEATURE_SH_HISTFILESIZE
  354. bool "Use $HISTFILESIZE"
  355. default n
  356. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH
  357. help
  358. This option makes busybox shells to use $HISTFILESIZE variable
  359. to set shell history size. Note that its max value is capped
  360. by "History size" setting in library tuning section.
  361. endmenu