Config.in 7.7 KB

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