Config.src 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see docs/Kconfig-language.txt.
  4. #
  5. menu "Linux Module Utilities"
  6. config MODPROBE_SMALL
  7. bool "Simplified modutils"
  8. default y
  9. help
  10. Build smaller (~1.5 kbytes), simplified module tools.
  11. This option by itself does not enable any applets -
  12. you need to select applets individually below.
  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. INSERT
  29. comment "Options common to multiple modutils"
  30. config FEATURE_CMDLINE_MODULE_OPTIONS
  31. bool "Accept module options on modprobe command line"
  32. default y
  33. depends on INSMOD || MODPROBE
  34. help
  35. Allow insmod and modprobe take module options from the applets'
  36. command line.
  37. config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
  38. bool "Skip loading of already loaded modules"
  39. default y
  40. depends on MODPROBE_SMALL && (DEPMOD || INSMOD || MODPROBE)
  41. help
  42. Check if the module is already loaded.
  43. config FEATURE_2_4_MODULES
  44. bool "Support version 2.2/2.4 Linux kernels"
  45. default n
  46. depends on (INSMOD || LSMOD || MODPROBE || RMMOD) && !MODPROBE_SMALL
  47. help
  48. Support module loading for 2.2.x and 2.4.x Linux kernels.
  49. This increases size considerably. Say N unless you plan
  50. to run ancient kernels.
  51. config FEATURE_INSMOD_VERSION_CHECKING
  52. bool "Enable module version checking"
  53. default n
  54. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  55. help
  56. Support checking of versions for modules. This is used to
  57. ensure that the kernel and module are made for each other.
  58. config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
  59. bool "Add module symbols to kernel symbol table"
  60. default n
  61. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  62. help
  63. By adding module symbols to the kernel symbol table, Oops messages
  64. occurring within kernel modules can be properly debugged. By enabling
  65. this feature, module symbols will always be added to the kernel symbol
  66. table for proper debugging support. If you are not interested in
  67. Oops messages from kernel modules, say N.
  68. config FEATURE_INSMOD_LOADINKMEM
  69. bool "In kernel memory optimization (uClinux only)"
  70. default n
  71. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  72. help
  73. This is a special uClinux only memory optimization that lets insmod
  74. load the specified kernel module directly into kernel space, reducing
  75. memory usage by preventing the need for two copies of the module
  76. being loaded into memory.
  77. config FEATURE_INSMOD_LOAD_MAP
  78. bool "Enable insmod load map (-m) option"
  79. default n
  80. depends on FEATURE_2_4_MODULES && INSMOD
  81. help
  82. Enabling this, one would be able to get a load map
  83. output on stdout. This makes kernel module debugging
  84. easier.
  85. If you don't plan to debug kernel modules, you
  86. don't need this option.
  87. config FEATURE_INSMOD_LOAD_MAP_FULL
  88. bool "Symbols in load map"
  89. default y
  90. depends on FEATURE_INSMOD_LOAD_MAP
  91. help
  92. Without this option, -m will only output section
  93. load map. With this option, -m will also output
  94. symbols load map.
  95. config FEATURE_CHECK_TAINTED_MODULE
  96. bool "Support tainted module checking with new kernels"
  97. default y
  98. depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
  99. help
  100. Support checking for tainted modules. These are usually binary
  101. only modules that will make the linux-kernel list ignore your
  102. support request.
  103. This option is required to support GPLONLY modules.
  104. config FEATURE_INSMOD_TRY_MMAP
  105. bool "Try to load module from a mmap'ed area"
  106. default n
  107. depends on (INSMOD || MODPROBE) && !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 FEATURE_MODUTILS_ALIAS
  118. bool "Support module.aliases file"
  119. default y
  120. depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
  121. help
  122. Generate and parse modules.alias containing aliases for bus
  123. identifiers:
  124. alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
  125. and aliases for logical modules names e.g.:
  126. alias padlock_aes aes
  127. alias aes_i586 aes
  128. alias aes_generic aes
  129. Say Y if unsure.
  130. config FEATURE_MODUTILS_SYMBOLS
  131. bool "Support module.symbols file"
  132. default y
  133. depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
  134. help
  135. Generate and parse modules.symbols containing aliases for
  136. symbol_request() kernel calls, such as:
  137. alias symbol:usb_sg_init usbcore
  138. Say Y if unsure.
  139. config DEFAULT_MODULES_DIR
  140. string "Default directory containing modules"
  141. default "/lib/modules"
  142. depends on DEPMOD || MODPROBE || MODINFO
  143. help
  144. Directory that contains kernel modules.
  145. Defaults to "/lib/modules"
  146. config DEFAULT_DEPMOD_FILE
  147. string "Default name of modules.dep"
  148. default "modules.dep"
  149. depends on DEPMOD || MODPROBE || MODINFO
  150. help
  151. Filename that contains kernel modules dependencies.
  152. Defaults to "modules.dep".
  153. If you configured the "simplified modutils" (MODPROBE_SMALL), a
  154. ".bb" suffix will be added after this name. Do not specify ".bb"
  155. here unless you intend your depmod or modprobe to work on
  156. "modules.dep.bb.bb" or such.
  157. endmenu