3
0

Config.src 7.7 KB

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