Config.src 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. range 0 99999
  73. default 255
  74. depends on FEATURE_EDITING
  75. help
  76. Specify command history size.
  77. config FEATURE_EDITING_SAVEHISTORY
  78. bool "History saving"
  79. default y
  80. depends on FEATURE_EDITING
  81. help
  82. Enable history saving in shells.
  83. config FEATURE_TAB_COMPLETION
  84. bool "Tab completion"
  85. default y
  86. depends on FEATURE_EDITING
  87. help
  88. Enable tab completion.
  89. config FEATURE_USERNAME_COMPLETION
  90. bool "Username completion"
  91. default n
  92. depends on FEATURE_TAB_COMPLETION
  93. help
  94. Enable username completion.
  95. config FEATURE_EDITING_FANCY_PROMPT
  96. bool "Fancy shell prompts"
  97. default y
  98. depends on FEATURE_EDITING
  99. help
  100. Setting this option allows for prompts to use things like \w and
  101. \$ and escape codes.
  102. config FEATURE_EDITING_ASK_TERMINAL
  103. bool "Query cursor position from terminal"
  104. default n
  105. depends on FEATURE_EDITING
  106. help
  107. Allow usage of "ESC [ 6 n" sequence. Terminal answers back with
  108. current cursor position. This information is used to make line
  109. editing more robust in some cases.
  110. If you are not sure whether your terminals respond to this code
  111. correctly, or want to save on code size (about 400 bytes),
  112. then do not turn this option on.
  113. config FEATURE_NON_POSIX_CP
  114. bool "Non-POSIX, but safer, copying to special nodes"
  115. default y
  116. help
  117. With this option, "cp file symlink" will delete symlink
  118. and create a regular file. This does not conform to POSIX,
  119. but prevents a symlink attack.
  120. Similarly, "cp file device" will not send file's data
  121. to the device.
  122. config FEATURE_VERBOSE_CP_MESSAGE
  123. bool "Give more precise messages when copy fails (cp, mv etc)"
  124. default n
  125. help
  126. Error messages with this feature enabled:
  127. $ cp file /does_not_exist/file
  128. cp: cannot create '/does_not_exist/file': Path does not exist
  129. $ cp file /vmlinuz/file
  130. cp: cannot stat '/vmlinuz/file': Path has non-directory component
  131. If this feature is not enabled, they will be, respectively:
  132. cp: cannot create '/does_not_exist/file': No such file or directory
  133. cp: cannot stat '/vmlinuz/file': Not a directory
  134. This will cost you ~60 bytes.
  135. config FEATURE_COPYBUF_KB
  136. int "Copy buffer size, in kilobytes"
  137. range 1 1024
  138. default 4
  139. help
  140. Size of buffer used by cp, mv, install etc.
  141. Buffers which are 4 kb or less will be allocated on stack.
  142. Bigger buffers will be allocated with mmap, with fallback to 4 kb
  143. stack buffer if mmap fails.
  144. config MONOTONIC_SYSCALL
  145. bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
  146. default n
  147. depends on PLATFORM_LINUX
  148. help
  149. Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
  150. time intervals (time, ping, traceroute etc need this).
  151. Probably requires Linux 2.6+. If not selected, gettimeofday
  152. will be used instead (which gives wrong results if date/time
  153. is reset).
  154. config IOCTL_HEX2STR_ERROR
  155. bool "Use ioctl names rather than hex values in error messages"
  156. default y
  157. help
  158. Use ioctl names rather than hex values in error messages
  159. (e.g. VT_DISALLOCATE rather than 0x5608). If disabled this
  160. saves about 1400 bytes.
  161. config FEATURE_HWIB
  162. bool "Support infiniband HW"
  163. default y
  164. help
  165. Support for printing infiniband addresses in
  166. network applets.
  167. endmenu