3
0

Config.src 5.8 KB

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