Config.src 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. INSERT
  7. config MODPROBE_SMALL
  8. bool "Simplified modutils"
  9. default y
  10. select PLATFORM_LINUX
  11. help
  12. Simplified modutils.
  13. With this option modprobe does not require modules.dep file
  14. and does not use /etc/modules.conf file.
  15. It scans module files in /lib/modules/`uname -r` and
  16. determines dependencies and module alias names on the fly.
  17. This may make module loading slower, most notably
  18. when one needs to load module by alias (this requires
  19. scanning through module _bodies_).
  20. At the first attempt to load a module by alias modprobe
  21. will try to generate modules.dep.bb file in order to speed up
  22. future loads by alias. Failure to do so (read-only /lib/modules,
  23. etc) is not reported, and future modprobes will be slow too.
  24. NB: modules.dep.bb file format is not compatible
  25. with modules.dep file as created/used by standard module tools.
  26. Additional module parameters can be stored in
  27. /etc/modules/$module_name files.
  28. Apart from modprobe, other utilities are also provided:
  29. - insmod is an alias to modprobe
  30. - rmmod is an alias to modprobe -r
  31. - depmod generates modules.dep.bb
  32. config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
  33. bool "Accept module options on modprobe command line"
  34. default y
  35. depends on MODPROBE_SMALL
  36. select PLATFORM_LINUX
  37. help
  38. Allow insmod and modprobe take module options from command line.
  39. config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
  40. bool "Skip loading of already loaded modules"
  41. default y
  42. depends on MODPROBE_SMALL
  43. help
  44. Check if the module is already loaded.
  45. config INSMOD
  46. bool "insmod"
  47. default n
  48. depends on !MODPROBE_SMALL
  49. select PLATFORM_LINUX
  50. help
  51. insmod is used to load specified modules in the running kernel.
  52. config RMMOD
  53. bool "rmmod"
  54. default n
  55. depends on !MODPROBE_SMALL
  56. select PLATFORM_LINUX
  57. help
  58. rmmod is used to unload specified modules from the kernel.
  59. config LSMOD
  60. bool "lsmod"
  61. default n
  62. depends on !MODPROBE_SMALL
  63. select PLATFORM_LINUX
  64. help
  65. lsmod is used to display a list of loaded modules.
  66. config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
  67. bool "Pretty output"
  68. default n
  69. depends on LSMOD
  70. select PLATFORM_LINUX
  71. help
  72. This option makes output format of lsmod adjusted to
  73. the format of module-init-tools for Linux kernel 2.6.
  74. Increases size somewhat.
  75. config MODPROBE
  76. bool "modprobe"
  77. default n
  78. depends on !MODPROBE_SMALL
  79. select PLATFORM_LINUX
  80. help
  81. Handle the loading of modules, and their dependencies on a high
  82. level.
  83. config FEATURE_MODPROBE_BLACKLIST
  84. bool "Blacklist support"
  85. default n
  86. depends on MODPROBE
  87. select PLATFORM_LINUX
  88. help
  89. Say 'y' here to enable support for the 'blacklist' command in
  90. modprobe.conf. This prevents the alias resolver to resolve
  91. blacklisted modules. This is useful if you want to prevent your
  92. hardware autodetection scripts to load modules like evdev, frame
  93. buffer drivers etc.
  94. config DEPMOD
  95. bool "depmod"
  96. default n
  97. depends on !MODPROBE_SMALL
  98. select PLATFORM_LINUX
  99. help
  100. depmod generates modules.dep (and potentially modules.alias
  101. and modules.symbols) that contain dependency information
  102. for modprobe.
  103. comment "Options common to multiple modutils"
  104. config FEATURE_2_4_MODULES
  105. bool "Support version 2.2/2.4 Linux kernels"
  106. default n
  107. depends on INSMOD || RMMOD || LSMOD
  108. select PLATFORM_LINUX
  109. help
  110. Support module loading for 2.2.x and 2.4.x Linux kernels.
  111. This increases size considerably. Say N unless you plan
  112. to run ancient kernels.
  113. config FEATURE_INSMOD_TRY_MMAP
  114. bool "Try to load module from a mmap'ed area"
  115. default n
  116. depends on INSMOD || MODPROBE_SMALL
  117. select PLATFORM_LINUX
  118. help
  119. This option causes module loading code to try to mmap
  120. module first. If it does not work (for example,
  121. it does not work for compressed modules), module will be read
  122. (and unpacked if needed) into a memory block allocated by malloc.
  123. The only case when mmap works but malloc does not is when
  124. you are trying to load a big module on a very memory-constrained
  125. machine. Malloc will momentarily need 2x as much memory as mmap.
  126. Choosing N saves about 250 bytes of code (on 32-bit x86).
  127. config FEATURE_INSMOD_VERSION_CHECKING
  128. bool "Enable module version checking"
  129. default n
  130. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  131. select PLATFORM_LINUX
  132. help
  133. Support checking of versions for modules. This is used to
  134. ensure that the kernel and module are made for each other.
  135. config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
  136. bool "Add module symbols to kernel symbol table"
  137. default n
  138. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  139. select PLATFORM_LINUX
  140. help
  141. By adding module symbols to the kernel symbol table, Oops messages
  142. occuring within kernel modules can be properly debugged. By enabling
  143. this feature, module symbols will always be added to the kernel symbol
  144. table for proper debugging support. If you are not interested in
  145. Oops messages from kernel modules, say N.
  146. config FEATURE_INSMOD_LOADINKMEM
  147. bool "In kernel memory optimization (uClinux only)"
  148. default n
  149. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  150. select PLATFORM_LINUX
  151. help
  152. This is a special uClinux only memory optimization that lets insmod
  153. load the specified kernel module directly into kernel space, reducing
  154. memory usage by preventing the need for two copies of the module
  155. being loaded into memory.
  156. config FEATURE_INSMOD_LOAD_MAP
  157. bool "Enable insmod load map (-m) option"
  158. default n
  159. depends on FEATURE_2_4_MODULES && INSMOD
  160. select PLATFORM_LINUX
  161. help
  162. Enabling this, one would be able to get a load map
  163. output on stdout. This makes kernel module debugging
  164. easier.
  165. If you don't plan to debug kernel modules, you
  166. don't need this option.
  167. config FEATURE_INSMOD_LOAD_MAP_FULL
  168. bool "Symbols in load map"
  169. default y
  170. depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
  171. select PLATFORM_LINUX
  172. help
  173. Without this option, -m will only output section
  174. load map. With this option, -m will also output
  175. symbols load map.
  176. config FEATURE_CHECK_TAINTED_MODULE
  177. bool "Support tainted module checking with new kernels"
  178. default y
  179. depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
  180. select PLATFORM_LINUX
  181. help
  182. Support checking for tainted modules. These are usually binary
  183. only modules that will make the linux-kernel list ignore your
  184. support request.
  185. This option is required to support GPLONLY modules.
  186. config FEATURE_MODUTILS_ALIAS
  187. bool "Support for module.aliases file"
  188. default y
  189. depends on DEPMOD || MODPROBE
  190. select PLATFORM_LINUX
  191. help
  192. Generate and parse modules.alias containing aliases for bus
  193. identifiers:
  194. alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
  195. and aliases for logical modules names e.g.:
  196. alias padlock_aes aes
  197. alias aes_i586 aes
  198. alias aes_generic aes
  199. Say Y if unsure.
  200. config FEATURE_MODUTILS_SYMBOLS
  201. bool "Support for module.symbols file"
  202. default y
  203. depends on DEPMOD || MODPROBE
  204. select PLATFORM_LINUX
  205. help
  206. Generate and parse modules.symbols containing aliases for
  207. symbol_request() kernel calls, such as:
  208. alias symbol:usb_sg_init usbcore
  209. Say Y if unsure.
  210. config DEFAULT_MODULES_DIR
  211. string "Default directory containing modules"
  212. default "/lib/modules"
  213. depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
  214. help
  215. Directory that contains kernel modules.
  216. Defaults to "/lib/modules"
  217. config DEFAULT_DEPMOD_FILE
  218. string "Default name of modules.dep"
  219. default "modules.dep"
  220. depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
  221. help
  222. Filename that contains kernel modules dependencies.
  223. Defaults to "modules.dep"
  224. endmenu