Config.in 11 KB

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