Config.in 11 KB

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