Config.src 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Busybox Library Tuning"
  6. INSERT
  7. config PASSWORD_MINLEN
  8. int "Minimum password length"
  9. default 6
  10. range 5 32
  11. help
  12. Minimum allowable password length.
  13. config MD5_SMALL
  14. int "MD5: Trade bytes for speed (0:fast, 3:slow)"
  15. default 1 # all "fast or small" options default to small
  16. range 0 3
  17. help
  18. Trade binary size versus speed for the md5sum algorithm.
  19. Approximate values running uClibc and hashing
  20. linux-2.4.4.tar.bz2 were:
  21. user times (sec) text size (386)
  22. 0 (fastest) 1.1 6144
  23. 1 1.4 5392
  24. 2 3.0 5088
  25. 3 (smallest) 5.1 4912
  26. config SHA3_SMALL
  27. int "SHA3: Trade bytes for speed (0:fast, 1:slow)"
  28. default 1 # all "fast or small" options default to small
  29. range 0 1
  30. help
  31. Trade binary size versus speed for the sha3sum algorithm.
  32. SHA3_SMALL=0 compared to SHA3_SMALL=1 (approximate):
  33. 64-bit x86: +270 bytes of code, 45% faster
  34. 32-bit x86: +450 bytes of code, 75% faster
  35. config FEATURE_FAST_TOP
  36. bool "Faster /proc scanning code (+100 bytes)"
  37. default n # all "fast or small" options default to small
  38. help
  39. This option makes top (and ps) ~20% faster (or 20% less CPU hungry),
  40. but code size is slightly bigger.
  41. config FEATURE_ETC_NETWORKS
  42. bool "Support for /etc/networks"
  43. default n
  44. help
  45. Enable support for network names in /etc/networks. This is
  46. a rarely used feature which allows you to use names
  47. instead of IP/mask pairs in route command.
  48. config FEATURE_USE_TERMIOS
  49. bool "Use termios to manipulate the screen"
  50. default y
  51. depends on MORE || TOP || POWERTOP
  52. help
  53. This option allows utilities such as 'more' and 'top' to determine
  54. the size of the screen. If you leave this disabled, your utilities
  55. that display things on the screen will be especially primitive and
  56. will be unable to determine the current screen size, and will be
  57. unable to move the cursor.
  58. config FEATURE_EDITING
  59. bool "Command line editing"
  60. default y
  61. help
  62. Enable line editing (mainly for shell command line).
  63. config FEATURE_EDITING_MAX_LEN
  64. int "Maximum length of input"
  65. range 128 8192
  66. default 1024
  67. depends on FEATURE_EDITING
  68. help
  69. Line editing code uses on-stack buffers for storage.
  70. You may want to decrease this parameter if your target machine
  71. benefits from smaller stack usage.
  72. config FEATURE_EDITING_VI
  73. bool "vi-style line editing commands"
  74. default n
  75. depends on FEATURE_EDITING
  76. help
  77. Enable vi-style line editing. In shells, this mode can be
  78. turned on and off with "set -o vi" and "set +o vi".
  79. config FEATURE_EDITING_HISTORY
  80. int "History size"
  81. # Don't allow way too big values here, code uses fixed "char *history[N]" struct member
  82. range 0 9999
  83. default 255
  84. depends on FEATURE_EDITING
  85. help
  86. Specify command history size (0 - disable).
  87. config FEATURE_EDITING_SAVEHISTORY
  88. bool "History saving"
  89. default y
  90. depends on FEATURE_EDITING
  91. help
  92. Enable history saving in shells.
  93. config FEATURE_EDITING_SAVE_ON_EXIT
  94. bool "Save history on shell exit, not after every command"
  95. default n
  96. depends on FEATURE_EDITING_SAVEHISTORY
  97. help
  98. Save history on shell exit, not after every command.
  99. config FEATURE_REVERSE_SEARCH
  100. bool "Reverse history search"
  101. default y
  102. depends on FEATURE_EDITING
  103. help
  104. Enable readline-like Ctrl-R combination for reverse history search.
  105. Increases code by about 0.5k.
  106. config FEATURE_TAB_COMPLETION
  107. bool "Tab completion"
  108. default y
  109. depends on FEATURE_EDITING
  110. help
  111. Enable tab completion.
  112. config FEATURE_USERNAME_COMPLETION
  113. bool "Username completion"
  114. default n
  115. depends on FEATURE_TAB_COMPLETION
  116. help
  117. Enable username completion.
  118. config FEATURE_EDITING_FANCY_PROMPT
  119. bool "Fancy shell prompts"
  120. default y
  121. depends on FEATURE_EDITING
  122. help
  123. Setting this option allows for prompts to use things like \w and
  124. \$ and escape codes.
  125. config FEATURE_EDITING_ASK_TERMINAL
  126. bool "Query cursor position from terminal"
  127. default n
  128. depends on FEATURE_EDITING
  129. help
  130. Allow usage of "ESC [ 6 n" sequence. Terminal answers back with
  131. current cursor position. This information is used to make line
  132. editing more robust in some cases.
  133. If you are not sure whether your terminals respond to this code
  134. correctly, or want to save on code size (about 400 bytes),
  135. then do not turn this option on.
  136. config FEATURE_NON_POSIX_CP
  137. bool "Non-POSIX, but safer, copying to special nodes"
  138. default y
  139. help
  140. With this option, "cp file symlink" will delete symlink
  141. and create a regular file. This does not conform to POSIX,
  142. but prevents a symlink attack.
  143. Similarly, "cp file device" will not send file's data
  144. to the device. (To do that, use "cat file >device")
  145. config FEATURE_VERBOSE_CP_MESSAGE
  146. bool "Give more precise messages when copy fails (cp, mv etc)"
  147. default n
  148. help
  149. Error messages with this feature enabled:
  150. $ cp file /does_not_exist/file
  151. cp: cannot create '/does_not_exist/file': Path does not exist
  152. $ cp file /vmlinuz/file
  153. cp: cannot stat '/vmlinuz/file': Path has non-directory component
  154. If this feature is not enabled, they will be, respectively:
  155. cp: cannot create '/does_not_exist/file': No such file or directory
  156. cp: cannot stat '/vmlinuz/file': Not a directory
  157. This will cost you ~60 bytes.
  158. config FEATURE_COPYBUF_KB
  159. int "Copy buffer size, in kilobytes"
  160. range 1 1024
  161. default 4
  162. help
  163. Size of buffer used by cp, mv, install, wget etc.
  164. Buffers which are 4 kb or less will be allocated on stack.
  165. Bigger buffers will be allocated with mmap, with fallback to 4 kb
  166. stack buffer if mmap fails.
  167. config FEATURE_SKIP_ROOTFS
  168. bool "Skip rootfs in mount table"
  169. default y
  170. help
  171. Ignore rootfs entry in mount table.
  172. In Linux, kernel has a special filesystem, rootfs, which is initially
  173. mounted on /. It contains initramfs data, if kernel is configured
  174. to have one. Usually, another file system is mounted over / early
  175. in boot process, and therefore most tools which manipulate
  176. mount table, such as df, will skip rootfs entry.
  177. However, some systems do not mount anything on /.
  178. If you need to configure busybox for one of these systems,
  179. you may find it useful to turn this option off to make df show
  180. initramfs statistics.
  181. Otherwise, choose Y.
  182. config MONOTONIC_SYSCALL
  183. bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
  184. default y
  185. select PLATFORM_LINUX
  186. help
  187. Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
  188. time intervals (time, ping, traceroute etc need this).
  189. Probably requires Linux 2.6+. If not selected, gettimeofday
  190. will be used instead (which gives wrong results if date/time
  191. is reset).
  192. config IOCTL_HEX2STR_ERROR
  193. bool "Use ioctl names rather than hex values in error messages"
  194. default y
  195. help
  196. Use ioctl names rather than hex values in error messages
  197. (e.g. VT_DISALLOCATE rather than 0x5608). If disabled this
  198. saves about 1400 bytes.
  199. config FEATURE_HWIB
  200. bool "Support infiniband HW"
  201. default y
  202. help
  203. Support for printing infiniband addresses in
  204. network applets.
  205. endmenu