Config.src 4.2 KB

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