Config.src 7.3 KB

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