Config.in 12 KB

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