Config.in 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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 BUSYBOX_CONFIG_FEATURE_SH_IS_LASH
  19. select BUSYBOX_CONFIG_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. select BUSYBOX_CONFIG_TEST
  31. help
  32. Tha 'ash' shell adds about 60k in the default configuration and is
  33. the most complete and most pedantically correct shell included with
  34. busybox. This shell is actually a derivative of the Debian 'dash'
  35. shell (by Herbert Xu), which was created by porting the 'ash' shell
  36. (written by Kenneth Almquist) from NetBSD.
  37. comment "Ash Shell Options"
  38. depends on BUSYBOX_CONFIG_ASH
  39. config BUSYBOX_CONFIG_ASH_JOB_CONTROL
  40. bool "Job control"
  41. default y
  42. depends on BUSYBOX_CONFIG_ASH
  43. help
  44. Enable job control in the ash shell.
  45. config BUSYBOX_CONFIG_ASH_READ_NCHARS
  46. bool "'read -n N' and 'read -s' support"
  47. default n
  48. depends on BUSYBOX_CONFIG_ASH
  49. help
  50. 'read -n N' will return a value after N characters have been read.
  51. 'read -s' will read without echoing the user's input.
  52. config BUSYBOX_CONFIG_ASH_READ_TIMEOUT
  53. bool "'read -t S' support."
  54. default y
  55. depends on BUSYBOX_CONFIG_ASH
  56. help
  57. 'read -t S' will return a value after S seconds have passed.
  58. This implementation will allow fractional seconds, expressed
  59. as a decimal fraction, e.g. 'read -t 2.5 foo'.
  60. config BUSYBOX_CONFIG_ASH_ALIAS
  61. bool "alias support"
  62. default y
  63. depends on BUSYBOX_CONFIG_ASH
  64. help
  65. Enable alias support in the ash shell.
  66. config BUSYBOX_CONFIG_ASH_MATH_SUPPORT
  67. bool "Posix math support"
  68. default y
  69. depends on BUSYBOX_CONFIG_ASH
  70. help
  71. Enable math support in the ash shell.
  72. config BUSYBOX_CONFIG_ASH_MATH_SUPPORT_64
  73. bool "Extend Posix math support to 64 bit"
  74. default y
  75. depends on BUSYBOX_CONFIG_ASH_MATH_SUPPORT
  76. help
  77. Enable 64-bit math support in the ash shell. This will make
  78. the shell slightly larger, but will allow computation with very
  79. large numbers.
  80. config BUSYBOX_CONFIG_ASH_GETOPTS
  81. bool "Builtin getopt to parse positional parameters"
  82. default y
  83. depends on BUSYBOX_CONFIG_ASH
  84. help
  85. Enable getopts builtin in the ash shell.
  86. config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO
  87. bool "Builtin version of 'echo'"
  88. default y
  89. select BUSYBOX_CONFIG_ECHO
  90. depends on BUSYBOX_CONFIG_ASH
  91. help
  92. Enable support for echo, builtin to ash.
  93. config BUSYBOX_CONFIG_ASH_BUILTIN_TEST
  94. bool "Builtin version of 'test'"
  95. default y
  96. select BUSYBOX_CONFIG_TEST
  97. depends on BUSYBOX_CONFIG_ASH
  98. help
  99. Enable support for test, builtin to ash.
  100. config BUSYBOX_CONFIG_ASH_CMDCMD
  101. bool "'command' command to override shell builtins"
  102. default y
  103. depends on BUSYBOX_CONFIG_ASH
  104. help
  105. Enable support for the ash 'command' builtin, which allows
  106. you to run the specified command with the specified arguments,
  107. even when there is an ash builtin command with the same name.
  108. config BUSYBOX_CONFIG_ASH_MAIL
  109. bool "Check for new mail on interactive shells"
  110. default n
  111. depends on BUSYBOX_CONFIG_ASH
  112. help
  113. Enable "check for new mail" in the ash shell.
  114. config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE
  115. bool "Optimize for size instead of speed"
  116. default n
  117. depends on BUSYBOX_CONFIG_ASH
  118. help
  119. Compile ash for reduced size at the price of speed.
  120. config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT
  121. bool "Pseudorandom generator and variable $RANDOM"
  122. default n
  123. depends on BUSYBOX_CONFIG_ASH
  124. help
  125. Enable pseudorandom generator and dynamic variable "$RANDOM".
  126. Each read of "$RANDOM" will generate a new pseudorandom value.
  127. You can reset the generator by using a specified start value.
  128. After "unset RANDOM" then generator will switch off and this
  129. variable will no longer have special treatment.
  130. config BUSYBOX_CONFIG_ASH_EXPAND_PRMT
  131. bool "Expand prompt string"
  132. default y
  133. depends on BUSYBOX_CONFIG_ASH
  134. help
  135. "PS#" may be contain volatile content, such as backquote commands.
  136. This option recreates the prompt string from the environment
  137. variable each time it is displayed.
  138. config BUSYBOX_CONFIG_HUSH
  139. bool "hush"
  140. default n
  141. select BUSYBOX_CONFIG_TRUE
  142. select BUSYBOX_CONFIG_FALSE
  143. select BUSYBOX_CONFIG_TEST
  144. help
  145. hush is a very small shell (just 18k) and it has fairly complete
  146. Bourne shell grammar. It even handles all the normal flow control
  147. options such as if/then/elif/else/fi, for/in/do/done, while loops,
  148. etc.
  149. It does not handle case/esac, select, function, here documents ( <<
  150. word ), arithmetic expansion, aliases, brace expansion, tilde
  151. expansion, &> and >& redirection of stdout+stderr, etc.
  152. config BUSYBOX_CONFIG_HUSH_HELP
  153. bool "help builtin"
  154. default n
  155. depends on BUSYBOX_CONFIG_HUSH
  156. help
  157. Enable help builtin in hush. Code size + ~1 kbyte.
  158. config BUSYBOX_CONFIG_HUSH_INTERACTIVE
  159. bool "Interactive mode"
  160. default n
  161. depends on BUSYBOX_CONFIG_HUSH
  162. help
  163. Enable interactive mode (prompt and command editing).
  164. Without this, hush simply reads and executes commands
  165. from stdin just like a shell script from the file.
  166. No prompt, no PS1/PS2 magic shell variables.
  167. config BUSYBOX_CONFIG_HUSH_JOB
  168. bool "Job control"
  169. default n
  170. depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE
  171. help
  172. Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
  173. command (not entire shell), fg/bg builtins work. Without this option,
  174. "cmd &" still works by simply spawning a process and immediately
  175. prompting for next command (or executing next command in a script),
  176. but no separate process group is formed.
  177. config BUSYBOX_CONFIG_HUSH_TICK
  178. bool "Process substitution"
  179. default n
  180. depends on BUSYBOX_CONFIG_HUSH
  181. help
  182. Enable process substitution `command` and $(command) in hush.
  183. config BUSYBOX_CONFIG_HUSH_IF
  184. bool "Support if/then/elif/else/fi"
  185. default n
  186. depends on BUSYBOX_CONFIG_HUSH
  187. help
  188. Enable if/then/elif/else/fi in hush.
  189. config BUSYBOX_CONFIG_HUSH_LOOPS
  190. bool "Support for, while and until loops"
  191. default n
  192. depends on BUSYBOX_CONFIG_HUSH
  193. help
  194. Enable for, while and until loops in hush.
  195. config BUSYBOX_CONFIG_LASH
  196. bool "lash"
  197. default n
  198. select BUSYBOX_CONFIG_TRUE
  199. select BUSYBOX_CONFIG_FALSE
  200. select BUSYBOX_CONFIG_TEST
  201. help
  202. lash is the very smallest shell (adds just 10k) and it is quite
  203. usable as a command prompt, but it is not suitable for any but the
  204. most trivial scripting (such as an initrd that calls insmod a few
  205. times) since it does not understand any Bourne shell grammar. It
  206. does handle pipes, redirects, and job control though. Adding in
  207. command editing makes it a very nice lightweight command prompt.
  208. config BUSYBOX_CONFIG_MSH
  209. bool "msh"
  210. default n
  211. select BUSYBOX_CONFIG_TRUE
  212. select BUSYBOX_CONFIG_FALSE
  213. select BUSYBOX_CONFIG_TEST
  214. help
  215. The minix shell (adds just 30k) is quite complete and handles things
  216. like for/do/done, case/esac and all the things you expect a Bourne
  217. shell to do. It is not always pedantically correct about Bourne
  218. shell grammar (try running the shell testscript "tests/sh.testcases"
  219. on it and compare vs bash) but for most things it works quite well.
  220. It also uses only vfork, so it can be used on uClinux systems.
  221. comment "Bourne Shell Options"
  222. depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH
  223. config BUSYBOX_CONFIG_FEATURE_SH_EXTRA_QUIET
  224. bool "Hide message on interactive shell startup"
  225. default n
  226. depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH
  227. help
  228. Remove the busybox introduction when starting a shell.
  229. config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE
  230. bool "Standalone shell"
  231. default n
  232. depends on (BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH) && BUSYBOX_CONFIG_FEATURE_PREFER_APPLETS
  233. help
  234. This option causes busybox shells to use busybox applets
  235. in preference to executables in the PATH whenever possible. For
  236. example, entering the command 'ifconfig' into the shell would cause
  237. busybox to use the ifconfig busybox applet. Specifying the fully
  238. qualified executable name, such as '/sbin/ifconfig' will still
  239. execute the /sbin/ifconfig executable on the filesystem. This option
  240. is generally used when creating a statically linked version of busybox
  241. for use as a rescue shell, in the event that you screw up your system.
  242. This is implemented by re-execing /proc/self/exe (typically)
  243. with right parameters. Some selected applets ("NOFORK" applets)
  244. can even be executed without creating new process.
  245. Instead, busybox will call <applet>_main() internally.
  246. However, this causes problems in chroot jails without mounted /proc
  247. and with ps/top (command name can be shown as 'exe' for applets
  248. started this way).
  249. # untrue?
  250. # Note that this will *also* cause applets to take precedence
  251. # over shell builtins of the same name. So turning this on will
  252. # eliminate any performance gained by turning on the builtin "echo"
  253. # and "test" commands in ash.
  254. # untrue?
  255. # Note that when using this option, the shell will attempt to directly
  256. # run '/bin/busybox'. If you do not have the busybox binary sitting in
  257. # that exact location with that exact name, this option will not work at
  258. # all.
  259. config BUSYBOX_CONFIG_CTTYHACK
  260. bool "cttyhack"
  261. default n
  262. help
  263. One common problem reported on the mailing list is "can't access tty;
  264. job control turned off" error message which typically appears when
  265. one tries to use shell with stdin/stdout opened to /dev/console.
  266. This device is special - it cannot be a controlling tty.
  267. Proper solution is to use correct device instead of /dev/console.
  268. cttyhack provides "quick and dirty" solution to this problem.
  269. It analyzes stdin with various ioctls, trying to determine whether
  270. it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
  271. If it detects one, it closes stdin/out/err and reopens that device.
  272. Then it executes given program. Usage example for /etc/inittab
  273. (for busybox init):
  274. ::respawn:/bin/cttyhack /bin/sh
  275. endmenu