3
0

Config.src 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see docs/Kconfig-language.txt.
  4. #
  5. menu "Shells"
  6. choice
  7. prompt "Choose which shell is aliased to 'sh' name"
  8. default SH_IS_ASH
  9. help
  10. Choose which shell you want to be executed by 'sh' alias.
  11. The ash shell is the most bash compatible and full featured one.
  12. # note: cannot use "select ASH" here, it breaks "make allnoconfig"
  13. config SH_IS_ASH
  14. depends on !NOMMU
  15. bool "ash"
  16. select SHELL_ASH
  17. help
  18. Choose ash to be the shell executed by 'sh' name.
  19. The ash code will be built into busybox. If you don't select
  20. "ash" choice (CONFIG_ASH), this shell may only be invoked by
  21. the name 'sh' (and not 'ash').
  22. config SH_IS_HUSH
  23. bool "hush"
  24. select SHELL_HUSH
  25. help
  26. Choose hush to be the shell executed by 'sh' name.
  27. The hush code will be built into busybox. If you don't select
  28. "hush" choice (CONFIG_HUSH), this shell may only be invoked by
  29. the name 'sh' (and not 'hush').
  30. config SH_IS_NONE
  31. bool "none"
  32. endchoice
  33. choice
  34. prompt "Choose which shell is aliased to 'bash' name"
  35. default BASH_IS_NONE
  36. help
  37. Choose which shell you want to be executed by 'bash' alias.
  38. The ash shell is the most bash compatible and full featured one,
  39. although compatibility is far from being complete.
  40. Note that selecting this option does not switch on any bash
  41. compatibility code. It merely makes it possible to install
  42. /bin/bash (sym)link and run scripts which start with
  43. #!/bin/bash line.
  44. Many systems use it in scripts which use bash-specific features,
  45. even simple ones like $RANDOM. Without this option, busybox
  46. can't be used for running them because it won't recongnize
  47. "bash" as a supported applet name.
  48. config BASH_IS_ASH
  49. depends on !NOMMU
  50. bool "ash"
  51. select SHELL_ASH
  52. help
  53. Choose ash to be the shell executed by 'bash' name.
  54. The ash code will be built into busybox. If you don't select
  55. "ash" choice (CONFIG_ASH), this shell may only be invoked by
  56. the name 'bash' (and not 'ash').
  57. config BASH_IS_HUSH
  58. bool "hush"
  59. select SHELL_HUSH
  60. help
  61. Choose hush to be the shell executed by 'bash' name.
  62. The hush code will be built into busybox. If you don't select
  63. "hush" choice (CONFIG_HUSH), this shell may only be invoked by
  64. the name 'bash' (and not 'hush').
  65. config BASH_IS_NONE
  66. bool "none"
  67. endchoice
  68. INSERT
  69. comment "Options common to all shells"
  70. if SHELL_ASH || SHELL_HUSH
  71. config FEATURE_SH_MATH
  72. bool "POSIX math support"
  73. default y
  74. depends on SHELL_ASH || SHELL_HUSH
  75. help
  76. Enable math support in the shell via $((...)) syntax.
  77. config FEATURE_SH_MATH_64
  78. bool "Extend POSIX math support to 64 bit"
  79. default y
  80. depends on FEATURE_SH_MATH
  81. help
  82. Enable 64-bit math support in the shell. This will make the shell
  83. slightly larger, but will allow computation with very large numbers.
  84. This is not in POSIX, so do not rely on this in portable code.
  85. config FEATURE_SH_MATH_BASE
  86. bool "Support BASE#nnnn literals"
  87. default y
  88. depends on FEATURE_SH_MATH
  89. config FEATURE_SH_EXTRA_QUIET
  90. bool "Hide message on interactive shell startup"
  91. default y
  92. depends on SHELL_ASH || SHELL_HUSH
  93. help
  94. Remove the busybox introduction when starting a shell.
  95. config FEATURE_SH_STANDALONE
  96. bool "Standalone shell"
  97. default n
  98. depends on SHELL_ASH || SHELL_HUSH
  99. help
  100. This option causes busybox shells to use busybox applets
  101. in preference to executables in the PATH whenever possible. For
  102. example, entering the command 'ifconfig' into the shell would cause
  103. busybox to use the ifconfig busybox applet. Specifying the fully
  104. qualified executable name, such as '/sbin/ifconfig' will still
  105. execute the /sbin/ifconfig executable on the filesystem. This option
  106. is generally used when creating a statically linked version of busybox
  107. for use as a rescue shell, in the event that you screw up your system.
  108. This is implemented by re-execing /proc/self/exe (typically)
  109. with right parameters.
  110. However, there are drawbacks: it is problematic in chroot jails
  111. without mounted /proc, and ps/top may show command name as 'exe'
  112. for applets started this way.
  113. config FEATURE_SH_NOFORK
  114. bool "Run 'nofork' applets directly"
  115. default n
  116. depends on SHELL_ASH || SHELL_HUSH
  117. help
  118. This option causes busybox shells to not execute typical
  119. fork/exec/wait sequence, but call <applet>_main directly,
  120. if possible. (Sometimes it is not possible: for example,
  121. this is not possible in pipes).
  122. This will be done only for some applets (those which are marked
  123. NOFORK in include/applets.h).
  124. This may significantly speed up some shell scripts.
  125. This feature is relatively new. Use with care. Report bugs
  126. to project mailing list.
  127. config FEATURE_SH_READ_FRAC
  128. bool "read -t N.NNN support (+110 bytes)"
  129. default y
  130. depends on SHELL_ASH || SHELL_HUSH
  131. help
  132. Enable support for fractional second timeout in read builtin.
  133. config FEATURE_SH_HISTFILESIZE
  134. bool "Use $HISTFILESIZE"
  135. default y
  136. depends on SHELL_ASH || SHELL_HUSH
  137. help
  138. This option makes busybox shells to use $HISTFILESIZE variable
  139. to set shell history size. Note that its max value is capped
  140. by "History size" setting in library tuning section.
  141. config FEATURE_SH_EMBEDDED_SCRIPTS
  142. bool "Embed scripts in the binary"
  143. default y
  144. depends on SHELL_ASH || SHELL_HUSH
  145. help
  146. Allow scripts to be compressed and embedded in the busybox
  147. binary. The scripts should be placed in the 'embed' directory
  148. at build time. Like applets, scripts can be run as
  149. 'busybox SCRIPT ...' or by linking their name to the binary.
  150. This also allows applets to be implemented as scripts: place
  151. the script in 'applets_sh' and a stub C file containing
  152. configuration in the appropriate subsystem directory.
  153. endif # Options common to all shells
  154. endmenu