3
0

Config.src 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 MODPROBE_SMALL
  7. bool "Simplified modutils"
  8. default y
  9. select PLATFORM_LINUX
  10. help
  11. Simplified modutils.
  12. With this option modprobe does not require modules.dep file
  13. and does not use /etc/modules.conf file.
  14. It scans module files in /lib/modules/`uname -r` and
  15. determines dependencies and module alias names on the fly.
  16. This may make module loading slower, most notably
  17. when one needs to load module by alias (this requires
  18. scanning through module _bodies_).
  19. At the first attempt to load a module by alias modprobe
  20. will try to generate modules.dep.bb file in order to speed up
  21. future loads by alias. Failure to do so (read-only /lib/modules,
  22. etc) is not reported, and future modprobes will be slow too.
  23. NB: modules.dep.bb file format is not compatible
  24. with modules.dep file as created/used by standard module tools.
  25. Additional module parameters can be stored in
  26. /etc/modules/$module_name files.
  27. Apart from modprobe, other utilities are also provided:
  28. - insmod is an alias to modprobe
  29. - rmmod is an alias to modprobe -r
  30. - depmod generates modules.dep.bb
  31. INSERT
  32. comment "Options common to multiple modutils"
  33. config FEATURE_2_4_MODULES
  34. bool "Support version 2.2/2.4 Linux kernels"
  35. default n
  36. depends on INSMOD || RMMOD || LSMOD
  37. select PLATFORM_LINUX
  38. help
  39. Support module loading for 2.2.x and 2.4.x Linux kernels.
  40. This increases size considerably. Say N unless you plan
  41. to run ancient kernels.
  42. config FEATURE_INSMOD_TRY_MMAP
  43. bool "Try to load module from a mmap'ed area"
  44. default n
  45. depends on INSMOD || MODPROBE_SMALL
  46. select PLATFORM_LINUX
  47. help
  48. This option causes module loading code to try to mmap
  49. module first. If it does not work (for example,
  50. it does not work for compressed modules), module will be read
  51. (and unpacked if needed) into a memory block allocated by malloc.
  52. The only case when mmap works but malloc does not is when
  53. you are trying to load a big module on a very memory-constrained
  54. machine. Malloc will momentarily need 2x as much memory as mmap.
  55. Choosing N saves about 250 bytes of code (on 32-bit x86).
  56. config FEATURE_INSMOD_VERSION_CHECKING
  57. bool "Enable module version checking"
  58. default n
  59. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  60. select PLATFORM_LINUX
  61. help
  62. Support checking of versions for modules. This is used to
  63. ensure that the kernel and module are made for each other.
  64. config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
  65. bool "Add module symbols to kernel symbol table"
  66. default n
  67. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  68. select PLATFORM_LINUX
  69. help
  70. By adding module symbols to the kernel symbol table, Oops messages
  71. occuring within kernel modules can be properly debugged. By enabling
  72. this feature, module symbols will always be added to the kernel symbol
  73. table for proper debugging support. If you are not interested in
  74. Oops messages from kernel modules, say N.
  75. config FEATURE_INSMOD_LOADINKMEM
  76. bool "In kernel memory optimization (uClinux only)"
  77. default n
  78. depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
  79. select PLATFORM_LINUX
  80. help
  81. This is a special uClinux only memory optimization that lets insmod
  82. load the specified kernel module directly into kernel space, reducing
  83. memory usage by preventing the need for two copies of the module
  84. being loaded into memory.
  85. config FEATURE_INSMOD_LOAD_MAP
  86. bool "Enable insmod load map (-m) option"
  87. default n
  88. depends on FEATURE_2_4_MODULES && INSMOD
  89. select PLATFORM_LINUX
  90. help
  91. Enabling this, one would be able to get a load map
  92. output on stdout. This makes kernel module debugging
  93. easier.
  94. If you don't plan to debug kernel modules, you
  95. don't need this option.
  96. config FEATURE_INSMOD_LOAD_MAP_FULL
  97. bool "Symbols in load map"
  98. default y
  99. depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
  100. select PLATFORM_LINUX
  101. help
  102. Without this option, -m will only output section
  103. load map. With this option, -m will also output
  104. symbols load map.
  105. config FEATURE_CHECK_TAINTED_MODULE
  106. bool "Support tainted module checking with new kernels"
  107. default y
  108. depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
  109. select PLATFORM_LINUX
  110. help
  111. Support checking for tainted modules. These are usually binary
  112. only modules that will make the linux-kernel list ignore your
  113. support request.
  114. This option is required to support GPLONLY modules.
  115. config FEATURE_MODUTILS_ALIAS
  116. bool "Support for module.aliases file"
  117. default y
  118. depends on DEPMOD || MODPROBE
  119. select PLATFORM_LINUX
  120. help
  121. Generate and parse modules.alias containing aliases for bus
  122. identifiers:
  123. alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
  124. and aliases for logical modules names e.g.:
  125. alias padlock_aes aes
  126. alias aes_i586 aes
  127. alias aes_generic aes
  128. Say Y if unsure.
  129. config FEATURE_MODUTILS_SYMBOLS
  130. bool "Support for module.symbols file"
  131. default y
  132. depends on DEPMOD || MODPROBE
  133. select PLATFORM_LINUX
  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 || MODPROBE_SMALL || 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 || MODPROBE_SMALL || MODINFO
  150. help
  151. Filename that contains kernel modules dependencies.
  152. Defaults to "modules.dep"
  153. endmenu