Config.in 7.8 KB

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