3
0

Config.in 10 KB

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