2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
6 menu "Linux Module Utilities"
9 bool "Simplified modutils"
14 With this option modprobe does not require modules.dep file
15 and does not use /etc/modules.conf file.
16 It scans module files in /lib/modules/`uname -r` and
17 determines dependencies and module alias names on the fly.
18 This may make module loading slower, most notably
19 when one needs to load module by alias (this requires
20 scanning through module _bodies_).
22 At the first attempt to load a module by alias modprobe
23 will try to generate modules.dep.bb file in order to speed up
24 future loads by alias. Failure to do so (read-only /lib/modules,
25 etc) is not reported, and future modprobes will be slow too.
27 NB: modules.dep.bb file format is not compatible
28 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.
33 Apart from modprobe, other utilities are also provided:
34 - insmod is an alias to modprobe
35 - rmmod is an alias to modprobe -r
36 - depmod generates modules.dep.bb
38 As of 2008-07, this code is experimental. It is 14kb smaller
39 than "non-small" modutils.
41 config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
42 bool "Accept module options on modprobe command line"
44 depends on MODPROBE_SMALL
46 Allow insmod and modprobe take module options from command line.
49 config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
50 bool "Skip loading of already loaded modules"
52 depends on MODPROBE_SMALL
54 Check if the module is already loaded.
57 config FEATURE_MODPROBE_SMALL_ZIPPED
58 bool "Handle gzipped or bzipped modules"
60 depends on MODPROBE_SMALL
62 Handle compressed modules. Bloaty. Sloooow.
67 depends on !MODPROBE_SMALL
69 depmod generates modules.dep (FIXME: elaborate)
71 config FEATURE_DEPMOD_PRUNE_FANCY
72 bool "Fancy dependency pruning"
76 By default modules.dep contains all dependencies as listed by
78 If you enable this option then we remove implied modules from
80 This makes depmod somewhat bigger but generates a smaller
85 config FEATURE_DEPMOD_ALIAS
90 By default modules.dep does not contain alias information.
91 Enable this to emit aliases of the form:
93 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
98 depends on !MODPROBE_SMALL
100 insmod is used to load specified modules in the running kernel.
102 config FEATURE_INSMOD_VERSION_CHECKING
103 bool "Module version checking"
105 depends on INSMOD && FEATURE_2_4_MODULES
107 Support checking of versions for modules. This is used to
108 ensure that the kernel and module are made for each other.
110 config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
111 bool "Add module symbols to kernel symbol table"
113 depends on INSMOD && FEATURE_2_4_MODULES
115 By adding module symbols to the kernel symbol table, Oops messages
116 occuring within kernel modules can be properly debugged. By enabling
117 this feature, module symbols will always be added to the kernel symbol
118 table for properly debugging support. If you are not interested in
119 Oops messages from kernel modules, say N.
121 config FEATURE_INSMOD_LOADINKMEM
122 bool "In kernel memory optimization (uClinux only)"
124 depends on INSMOD && FEATURE_2_4_MODULES
126 This is a special uClinux only memory optimization that lets insmod
127 load the specified kernel module directly into kernel space, reducing
128 memory usage by preventing the need for two copies of the module
129 being loaded into memory.
131 config FEATURE_INSMOD_LOAD_MAP
132 bool "Enable load map (-m) option"
134 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
136 Enabling this, one would be able to get a load map
137 output on stdout. This makes kernel module debugging
139 If you don't plan to debug kernel modules, you
140 don't need this option.
142 config FEATURE_INSMOD_LOAD_MAP_FULL
143 bool "Symbols in load map"
145 depends on FEATURE_INSMOD_LOAD_MAP
147 Without this option, -m will only output section
148 load map. With this option, -m will also output
154 depends on !MODPROBE_SMALL
156 rmmod is used to unload specified modules from the kernel.
161 depends on !MODPROBE_SMALL
163 lsmod is used to display a list of loaded modules.
165 config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
166 bool "Pretty output for 2.6.x Linux kernels"
170 This option makes output format of lsmod adjusted to
171 the format of module-init-tools for Linux kernel 2.6.
176 depends on !MODPROBE_SMALL
178 Handle the loading of modules, and their dependencies on a high
181 Note that in the state, modprobe does not understand multiple
182 module options from the configuration file. See option below.
184 config FEATURE_MODPROBE_MULTIPLE_OPTIONS
186 prompt "Multiple options parsing"
190 Allow modprobe to understand more than one option to pass to
193 This is a WIP, while waiting for a common argument parsing
194 common amongst all BB applets (shell, modprobe, etc...) and
195 adds around 600 bytes on x86, 700 bytes on ARM. The code is
196 biggish and uggly, but just works.
198 Saying Y here is not a bad idea if you're not that short
201 config FEATURE_MODPROBE_FANCY_ALIAS
203 prompt "Fancy alias parsing"
205 depends on MODPROBE && FEATURE_2_6_MODULES
207 Say 'y' here to enable parsing of aliases with underscore/dash
208 mismatch between module name and file name, along with bus-specific
209 aliases (such as pci:... or usb:... aliases).
211 config FEATURE_MODPROBE_BLACKLIST
213 prompt "Blacklist support"
215 depends on MODPROBE && FEATURE_2_6_MODULES
217 Say 'y' here to enable support for the 'blacklist' command in
218 modprobe.conf. This prevents the alias resolver to resolve
219 blacklisted modules. This is useful if you want to prevent your
220 hardware autodetection scripts to load modules like evdev, frame
223 comment "Options common to multiple modutils"
224 depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD
226 config FEATURE_CHECK_TAINTED_MODULE
227 # Simulate indentation
228 bool "Support tainted module checking with new kernels"
230 depends on INSMOD || LSMOD
232 Support checking for tainted modules. These are usually binary
233 only modules that will make the linux-kernel list ignore your
235 This option is required to support GPLONLY modules.
237 config FEATURE_2_4_MODULES
238 # Simulate indentation
239 bool "Support version 2.2.x to 2.4.x Linux kernels"
241 depends on INSMOD || RMMOD || MODPROBE
243 Support module loading for 2.2.x and 2.4.x Linux kernels.
246 This is automatically enabled if 2.6 modules are not enabled.
248 config FEATURE_2_6_MODULES
249 # Simulate indentation
250 bool "Support version 2.6.x Linux kernels"
252 depends on INSMOD || RMMOD || MODPROBE
254 Support module loading for newer 2.6.x Linux kernels.
256 config DEFAULT_MODULES_DIR
257 # Simulate indentation
258 string "Default directory containing modules"
259 default "/lib/modules"
260 depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
262 Directory that contains kernel modules.
263 Defaults to "/lib/modules"
265 config DEFAULT_DEPMOD_FILE
266 # Simulate indentation
267 string "Default name of modules.dep"
268 default "modules.dep"
269 depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
271 Filename that contains kernel modules dependencies.
272 Defaults to "modules.dep"
274 config FEATURE_QUERY_MODULE_INTERFACE
277 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES