Config.src 5.0 KB

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