Config.in 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. config BUSYBOX_PASSWORD_MINLEN
  7. int "Minimum password length"
  8. default 6
  9. range 5 32
  10. help
  11. Minimum allowable password length.
  12. config BUSYBOX_MD5_SIZE_VS_SPEED
  13. int "MD5: Trade bytes for speed (0:fast, 3:slow)"
  14. default 2
  15. range 0 3
  16. help
  17. Trade binary size versus speed for the md5sum algorithm.
  18. Approximate values running uClibc and hashing
  19. linux-2.4.4.tar.bz2 were:
  20. user times (sec) text size (386)
  21. 0 (fastest) 1.1 6144
  22. 1 1.4 5392
  23. 2 3.0 5088
  24. 3 (smallest) 5.1 4912
  25. config BUSYBOX_FEATURE_FAST_TOP
  26. bool "Faster /proc scanning code (+100 bytes)"
  27. default n
  28. help
  29. This option makes top (and ps) ~20% faster (or 20% less CPU hungry),
  30. but code size is slightly bigger.
  31. config BUSYBOX_FEATURE_ETC_NETWORKS
  32. bool "Support for /etc/networks"
  33. default n
  34. help
  35. Enable support for network names in /etc/networks. This is
  36. a rarely used feature which allows you to use names
  37. instead of IP/mask pairs in route command.
  38. config BUSYBOX_FEATURE_EDITING
  39. bool "Command line editing"
  40. default y
  41. help
  42. Enable line editing (mainly for shell command line).
  43. config BUSYBOX_FEATURE_EDITING_MAX_LEN
  44. int "Maximum length of input"
  45. range 128 8192
  46. default 1024
  47. depends on BUSYBOX_FEATURE_EDITING
  48. help
  49. Line editing code uses on-stack buffers for storage.
  50. You may want to decrease this parameter if your target machine
  51. benefits from smaller stack usage.
  52. config BUSYBOX_FEATURE_EDITING_VI
  53. bool "vi-style line editing commands"
  54. default n
  55. depends on BUSYBOX_FEATURE_EDITING
  56. help
  57. Enable vi-style line editing. In shells, this mode can be
  58. turned on and off with "set -o vi" and "set +o vi".
  59. config BUSYBOX_FEATURE_EDITING_HISTORY
  60. int "History size"
  61. range 0 99999
  62. default 64
  63. depends on BUSYBOX_FEATURE_EDITING
  64. help
  65. Specify command history size.
  66. config BUSYBOX_FEATURE_EDITING_SAVEHISTORY
  67. bool "History saving"
  68. default n
  69. depends on BUSYBOX_ASH && BUSYBOX_FEATURE_EDITING
  70. help
  71. Enable history saving in ash shell.
  72. config BUSYBOX_FEATURE_TAB_COMPLETION
  73. bool "Tab completion"
  74. default y
  75. depends on BUSYBOX_FEATURE_EDITING
  76. help
  77. Enable tab completion.
  78. config BUSYBOX_FEATURE_USERNAME_COMPLETION
  79. bool "Username completion"
  80. default n
  81. depends on BUSYBOX_FEATURE_TAB_COMPLETION
  82. help
  83. Enable username completion.
  84. config BUSYBOX_FEATURE_EDITING_FANCY_PROMPT
  85. bool "Fancy shell prompts"
  86. default n
  87. depends on BUSYBOX_FEATURE_EDITING
  88. help
  89. Setting this option allows for prompts to use things like \w and
  90. \$ and escape codes.
  91. config BUSYBOX_FEATURE_EDITING_ASK_TERMINAL
  92. bool "Query cursor position from terminal"
  93. default n
  94. depends on BUSYBOX_FEATURE_EDITING
  95. help
  96. Allow usage of "ESC [ 6 n" sequence. Terminal answers back with
  97. current cursor position. This information is used to make line
  98. editing more robust in some cases.
  99. If you are not sure whether your terminals respond to this code
  100. correctly, or want to save on code size (about 400 bytes),
  101. then do not turn this option on.
  102. config BUSYBOX_FEATURE_NON_POSIX_CP
  103. bool "Non-POSIX, but safer, copying to special nodes"
  104. default y
  105. help
  106. With this option, "cp file symlink" will delete symlink
  107. and create a regular file. This does not conform to POSIX,
  108. but prevents a symlink attack.
  109. Similarly, "cp file device" will not send file's data
  110. to the device.
  111. config BUSYBOX_FEATURE_VERBOSE_CP_MESSAGE
  112. bool "Give more precise messages when copy fails (cp, mv etc)"
  113. default n
  114. help
  115. Error messages with this feature enabled:
  116. $ cp file /does_not_exist/file
  117. cp: cannot create '/does_not_exist/file': Path does not exist
  118. $ cp file /vmlinuz/file
  119. cp: cannot stat '/vmlinuz/file': Path has non-directory component
  120. If this feature is not enabled, they will be, respectively:
  121. cp: cannot create '/does_not_exist/file': No such file or directory
  122. cp: cannot stat '/vmlinuz/file': Not a directory
  123. This will cost you ~60 bytes.
  124. config BUSYBOX_FEATURE_COPYBUF_KB
  125. int "Copy buffer size, in kilobytes"
  126. range 1 1024
  127. default 4
  128. help
  129. Size of buffer used by cp, mv, install etc.
  130. Buffers which are 4 kb or less will be allocated on stack.
  131. Bigger buffers will be allocated with mmap, with fallback to 4 kb
  132. stack buffer if mmap fails.
  133. config BUSYBOX_MONOTONIC_SYSCALL
  134. bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
  135. default y
  136. help
  137. Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
  138. time intervals (time, ping, traceroute etc need this).
  139. Probably requires Linux 2.6+. If not selected, gettimeofday
  140. will be used instead (which gives wrong results if date/time
  141. is reset).
  142. config BUSYBOX_IOCTL_HEX2STR_ERROR
  143. bool "Use ioctl names rather than hex values in error messages"
  144. default y
  145. help
  146. Use ioctl names rather than hex values in error messages
  147. (e.g. VT_DISALLOCATE rather than 0x5608). If disabled this
  148. saves about 1400 bytes.
  149. config BUSYBOX_FEATURE_HWIB
  150. bool "Support infiniband HW"
  151. default n
  152. help
  153. Support for printing infiniband addresses in
  154. network applets.
  155. endmenu