Config.src 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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_EXTRA_QUIET
  82. bool "Hide message on interactive shell startup"
  83. default y
  84. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  85. help
  86. Remove the busybox introduction when starting a shell.
  87. config FEATURE_SH_STANDALONE
  88. bool "Standalone shell"
  89. default n
  90. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  91. help
  92. This option causes busybox shells to use busybox applets
  93. in preference to executables in the PATH whenever possible. For
  94. example, entering the command 'ifconfig' into the shell would cause
  95. busybox to use the ifconfig busybox applet. Specifying the fully
  96. qualified executable name, such as '/sbin/ifconfig' will still
  97. execute the /sbin/ifconfig executable on the filesystem. This option
  98. is generally used when creating a statically linked version of busybox
  99. for use as a rescue shell, in the event that you screw up your system.
  100. This is implemented by re-execing /proc/self/exe (typically)
  101. with right parameters.
  102. However, there are drawbacks: it is problematic in chroot jails
  103. without mounted /proc, and ps/top may show command name as 'exe'
  104. for applets started this way.
  105. config FEATURE_SH_NOFORK
  106. bool "Run 'nofork' applets directly"
  107. default n
  108. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  109. help
  110. This option causes busybox shells to not execute typical
  111. fork/exec/wait sequence, but call <applet>_main directly,
  112. if possible. (Sometimes it is not possible: for example,
  113. this is not possible in pipes).
  114. This will be done only for some applets (those which are marked
  115. NOFORK in include/applets.h).
  116. This may significantly speed up some shell scripts.
  117. This feature is relatively new. Use with care. Report bugs
  118. to project mailing list.
  119. config FEATURE_SH_READ_FRAC
  120. bool "read -t N.NNN support (+110 bytes)"
  121. default y
  122. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  123. help
  124. Enable support for fractional second timeout in read builtin.
  125. config FEATURE_SH_HISTFILESIZE
  126. bool "Use $HISTFILESIZE"
  127. default y
  128. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  129. help
  130. This option makes busybox shells to use $HISTFILESIZE variable
  131. to set shell history size. Note that its max value is capped
  132. by "History size" setting in library tuning section.
  133. endif # Options common to all shells
  134. endmenu