Config.src 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 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. config SH_IS_HUSH
  17. bool "hush"
  18. config SH_IS_NONE
  19. bool "none"
  20. endchoice
  21. choice
  22. prompt "Choose which shell is aliased to 'bash' name"
  23. default BASH_IS_NONE
  24. help
  25. Choose which shell you want to be executed by 'bash' alias.
  26. The ash shell is the most bash compatible and full featured one.
  27. Note that selecting this option does not switch on any bash
  28. compatibility code. It merely makes it possible to install
  29. /bin/bash (sym)link and run scripts which start with
  30. #!/bin/bash line.
  31. Many systems use it in scripts which use bash-specific features,
  32. even simple ones like $RANDOM. Without this option, busybox
  33. can't be used for running them because it won't recongnize
  34. "bash" as a supported applet name.
  35. config BASH_IS_ASH
  36. depends on !NOMMU
  37. bool "ash"
  38. config BASH_IS_HUSH
  39. bool "hush"
  40. config BASH_IS_NONE
  41. bool "none"
  42. endchoice
  43. INSERT
  44. config FEATURE_SH_MATH
  45. bool "POSIX math support"
  46. default y
  47. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  48. help
  49. Enable math support in the shell via $((...)) syntax.
  50. config FEATURE_SH_MATH_64
  51. bool "Extend POSIX math support to 64 bit"
  52. default y
  53. depends on FEATURE_SH_MATH
  54. help
  55. Enable 64-bit math support in the shell. This will make the shell
  56. slightly larger, but will allow computation with very large numbers.
  57. This is not in POSIX, so do not rely on this in portable code.
  58. config FEATURE_SH_EXTRA_QUIET
  59. bool "Hide message on interactive shell startup"
  60. default y
  61. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  62. help
  63. Remove the busybox introduction when starting a shell.
  64. config FEATURE_SH_STANDALONE
  65. bool "Standalone shell"
  66. default n
  67. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  68. help
  69. This option causes busybox shells to use busybox applets
  70. in preference to executables in the PATH whenever possible. For
  71. example, entering the command 'ifconfig' into the shell would cause
  72. busybox to use the ifconfig busybox applet. Specifying the fully
  73. qualified executable name, such as '/sbin/ifconfig' will still
  74. execute the /sbin/ifconfig executable on the filesystem. This option
  75. is generally used when creating a statically linked version of busybox
  76. for use as a rescue shell, in the event that you screw up your system.
  77. This is implemented by re-execing /proc/self/exe (typically)
  78. with right parameters. Some selected applets ("NOFORK" applets)
  79. can even be executed without creating new process.
  80. Instead, busybox will call <applet>_main() internally.
  81. However, this causes problems in chroot jails without mounted /proc
  82. and with ps/top (command name can be shown as 'exe' for applets
  83. started this way).
  84. # untrue?
  85. # Note that this will *also* cause applets to take precedence
  86. # over shell builtins of the same name. So turning this on will
  87. # eliminate any performance gained by turning on the builtin "echo"
  88. # and "test" commands in ash.
  89. # untrue?
  90. # Note that when using this option, the shell will attempt to directly
  91. # run '/bin/busybox'. If you do not have the busybox binary sitting in
  92. # that exact location with that exact name, this option will not work at
  93. # all.
  94. config FEATURE_SH_NOFORK
  95. bool "Run 'nofork' applets directly"
  96. default n
  97. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  98. help
  99. This option causes busybox shells to not execute typical
  100. fork/exec/wait sequence, but call <applet>_main directly,
  101. if possible. (Sometimes it is not possible: for example,
  102. this is not possible in pipes).
  103. This will be done only for some applets (those which are marked
  104. NOFORK in include/applets.h).
  105. This may significantly speed up some shell scripts.
  106. This feature is relatively new. Use with care. Report bugs
  107. to project mailing list.
  108. config FEATURE_SH_HISTFILESIZE
  109. bool "Use $HISTFILESIZE"
  110. default y
  111. depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
  112. help
  113. This option makes busybox shells to use $HISTFILESIZE variable
  114. to set shell history size. Note that its max value is capped
  115. by "History size" setting in library tuning section.
  116. endmenu