Config.src 6.4 KB

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