Config.in 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Linux Module Utilities"
  6. config MODPROBE_SMALL
  7. bool "Simplified modutils"
  8. default n
  9. help
  10. Simplified modutils.
  11. With this option modprobe does not require modules.dep file
  12. and does not use /etc/modules.conf file.
  13. It scans module files in /lib/modules/`uname -r` and
  14. determines dependencies and module alias names on the fly.
  15. This may make module loading slower, most notably
  16. when one needs to load module by alias (this requires
  17. scanning through module _bodies_).
  18. At the first attempt to load a module by alias modprobe
  19. will try to generate modules.dep.bb file in order to speed up
  20. future loads by alias. Failure to do so (read-only /lib/modules,
  21. etc) is not reported, and future modprobes will be slow too.
  22. NB: modules.dep.bb file format is not compatible
  23. with modules.dep file as created/used by standard module tools.
  24. Additional module parameters can be stored in
  25. /etc/modules/$module_name files.
  26. Apart from modprobe, other utilities are also provided:
  27. - insmod is an alias to modprobe
  28. - rmmod is an alias to modprobe -r
  29. - depmod generates modules.dep.bb
  30. As of 2008-07, this code is experimental. It is 14kb smaller
  31. than "non-small" modutils.
  32. config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
  33. bool "Accept module options on modprobe command line"
  34. default n
  35. depends on MODPROBE_SMALL
  36. help
  37. Allow insmod and modprobe take module options from command line.
  38. N.B. Very bloaty.
  39. config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
  40. bool "Skip loading of already loaded modules"
  41. default n
  42. depends on MODPROBE_SMALL
  43. help
  44. Check if the module is already loaded.
  45. N.B. It's racy.
  46. config DEPMOD
  47. bool "depmod"
  48. default n
  49. depends on !MODPROBE_SMALL
  50. help
  51. depmod generates modules.dep (FIXME: elaborate)
  52. config FEATURE_DEPMOD_PRUNE_FANCY
  53. bool "Fancy dependency pruning"
  54. default n
  55. depends on DEPMOD
  56. help
  57. By default modules.dep contains all dependencies as listed by
  58. the modules.
  59. If you enable this option then we remove implied modules from
  60. the dependencies.
  61. This makes depmod somewhat bigger but generates a smaller
  62. modules.dep file.
  63. If unsure, say N.
  64. config FEATURE_DEPMOD_ALIAS
  65. bool "Alias support"
  66. default n
  67. depends on DEPMOD
  68. help
  69. By default modules.dep does not contain alias information.
  70. Enable this to emit aliases of the form:
  71. alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
  72. config INSMOD
  73. bool "insmod"
  74. default n
  75. depends on !MODPROBE_SMALL
  76. help
  77. insmod is used to load specified modules in the running kernel.
  78. config FEATURE_INSMOD_VERSION_CHECKING
  79. bool "Module version checking"
  80. default n
  81. depends on INSMOD && FEATURE_2_4_MODULES
  82. help
  83. Support checking of versions for modules. This is used to
  84. ensure that the kernel and module are made for each other.
  85. config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
  86. bool "Add module symbols to kernel symbol table"
  87. default n
  88. depends on INSMOD && FEATURE_2_4_MODULES
  89. help
  90. By adding module symbols to the kernel symbol table, Oops messages
  91. occuring within kernel modules can be properly debugged. By enabling
  92. this feature, module symbols will always be added to the kernel symbol
  93. table for properly debugging support. If you are not interested in
  94. Oops messages from kernel modules, say N.
  95. config FEATURE_INSMOD_LOADINKMEM
  96. bool "In kernel memory optimization (uClinux only)"
  97. default n
  98. depends on INSMOD && FEATURE_2_4_MODULES
  99. help
  100. This is a special uClinux only memory optimization that lets insmod
  101. load the specified kernel module directly into kernel space, reducing
  102. memory usage by preventing the need for two copies of the module
  103. being loaded into memory.
  104. config FEATURE_INSMOD_LOAD_MAP
  105. bool "Enable load map (-m) option"
  106. default n
  107. depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
  108. help
  109. Enabling this, one would be able to get a load map
  110. output on stdout. This makes kernel module debugging
  111. easier.
  112. If you don't plan to debug kernel modules, you
  113. don't need this option.
  114. config FEATURE_INSMOD_LOAD_MAP_FULL
  115. bool "Symbols in load map"
  116. default y
  117. depends on FEATURE_INSMOD_LOAD_MAP
  118. help
  119. Without this option, -m will only output section
  120. load map. With this option, -m will also output
  121. symbols load map.
  122. config RMMOD
  123. bool "rmmod"
  124. default n
  125. depends on !MODPROBE_SMALL
  126. help
  127. rmmod is used to unload specified modules from the kernel.
  128. config LSMOD
  129. bool "lsmod"
  130. default n
  131. depends on !MODPROBE_SMALL
  132. help
  133. lsmod is used to display a list of loaded modules.
  134. config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
  135. bool "Pretty output for 2.6.x Linux kernels"
  136. default n
  137. depends on LSMOD
  138. help
  139. This option makes output format of lsmod adjusted to
  140. the format of module-init-tools for Linux kernel 2.6.
  141. config MODPROBE
  142. bool "modprobe"
  143. default n
  144. depends on !MODPROBE_SMALL
  145. help
  146. Handle the loading of modules, and their dependencies on a high
  147. level.
  148. Note that in the state, modprobe does not understand multiple
  149. module options from the configuration file. See option below.
  150. config FEATURE_MODPROBE_MULTIPLE_OPTIONS
  151. bool
  152. prompt "Multiple options parsing"
  153. default y
  154. depends on MODPROBE
  155. help
  156. Allow modprobe to understand more than one option to pass to
  157. modules.
  158. This is a WIP, while waiting for a common argument parsing
  159. common amongst all BB applets (shell, modprobe, etc...) and
  160. adds around 600 bytes on x86, 700 bytes on ARM. The code is
  161. biggish and uggly, but just works.
  162. Saying Y here is not a bad idea if you're not that short
  163. on storage capacity.
  164. config FEATURE_MODPROBE_FANCY_ALIAS
  165. bool
  166. prompt "Fancy alias parsing"
  167. default y
  168. depends on MODPROBE && FEATURE_2_6_MODULES
  169. help
  170. Say 'y' here to enable parsing of aliases with underscore/dash
  171. mismatch between module name and file name, along with bus-specific
  172. aliases (such as pci:... or usb:... aliases).
  173. config FEATURE_MODPROBE_BLACKLIST
  174. bool
  175. prompt "Blacklist support"
  176. default n
  177. depends on MODPROBE && FEATURE_2_6_MODULES
  178. help
  179. Say 'y' here to enable support for the 'blacklist' command in
  180. modprobe.conf. This prevents the alias resolver to resolve
  181. blacklisted modules. This is useful if you want to prevent your
  182. hardware autodetection scripts to load modules like evdev, frame
  183. buffer drivers etc.
  184. comment "Options common to multiple modutils"
  185. depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD
  186. config FEATURE_CHECK_TAINTED_MODULE
  187. # Simulate indentation
  188. bool "Support tainted module checking with new kernels"
  189. default y
  190. depends on INSMOD || LSMOD
  191. help
  192. Support checking for tainted modules. These are usually binary
  193. only modules that will make the linux-kernel list ignore your
  194. support request.
  195. This option is required to support GPLONLY modules.
  196. config FEATURE_2_4_MODULES
  197. # Simulate indentation
  198. bool "Support version 2.2.x to 2.4.x Linux kernels"
  199. default y
  200. depends on INSMOD || RMMOD || MODPROBE
  201. help
  202. Support module loading for 2.2.x and 2.4.x Linux kernels.
  203. Note:
  204. This is automatically enabled if 2.6 modules are not enabled.
  205. config FEATURE_2_6_MODULES
  206. # Simulate indentation
  207. bool "Support version 2.6.x Linux kernels"
  208. default y
  209. depends on INSMOD || RMMOD || MODPROBE
  210. help
  211. Support module loading for newer 2.6.x Linux kernels.
  212. config DEFAULT_MODULES_DIR
  213. # Simulate indentation
  214. string "Default directory containing modules"
  215. default "/lib/modules"
  216. depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
  217. help
  218. Directory that contains kernel modules.
  219. Defaults to "/lib/modules"
  220. config DEFAULT_DEPMOD_FILE
  221. # Simulate indentation
  222. string "Default name of modules.dep"
  223. default "modules.dep"
  224. depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
  225. help
  226. Filename that contains kernel modules dependencies.
  227. Defaults to "modules.dep"
  228. config FEATURE_QUERY_MODULE_INTERFACE
  229. bool
  230. default y
  231. depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
  232. endmenu