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 use or require
15 modules.dep or /etc/modules.conf files.
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 Additional module parameters can be stored in
23 /etc/modules/$module_name files.
25 Apart from modprobe, other utilities are also provided:
26 - insmod is an alias to modprobe
27 - rmmod is an alias to modprobe -r
28 - depmod is provided but does nothing
30 As of 2008-07, this code is experimental. It it 15kb smaller
31 than "non-small" modutils.
33 config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
34 bool "Accept module options on modprobe command line"
36 depends on MODPROBE_SMALL
38 Allow insmod and modprobe take module options from command line.
41 config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
42 bool "Skip loading of already loaded modules"
44 depends on MODPROBE_SMALL
46 Check if the module is already loaded.
49 config FEATURE_MODPROBE_SMALL_ZIPPED
50 bool "Handle gzipped or bzipped modules"
52 depends on MODPROBE_SMALL
54 Handle compressed modules. Bloaty. Sloooow.
59 depends on !MODPROBE_SMALL
61 depmod generates modules.dep (FIXME: elaborate)
63 config FEATURE_DEPMOD_PRUNE_FANCY
64 bool "Fancy dependency pruning"
68 By default modules.dep contains all dependencies as listed by
70 If you enable this option then we remove implied modules from
72 This makes depmod somewhat bigger but generates a smaller
77 config FEATURE_DEPMOD_ALIAS
82 By default modules.dep does not contain alias information.
83 Enable this to emit aliases of the form:
85 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
90 depends on !MODPROBE_SMALL
92 insmod is used to load specified modules in the running kernel.
94 config FEATURE_INSMOD_VERSION_CHECKING
95 bool "Module version checking"
97 depends on INSMOD && FEATURE_2_4_MODULES
99 Support checking of versions for modules. This is used to
100 ensure that the kernel and module are made for each other.
102 config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
103 bool "Add module symbols to kernel symbol table"
105 depends on INSMOD && FEATURE_2_4_MODULES
107 By adding module symbols to the kernel symbol table, Oops messages
108 occuring within kernel modules can be properly debugged. By enabling
109 this feature, module symbols will always be added to the kernel symbol
110 table for properly debugging support. If you are not interested in
111 Oops messages from kernel modules, say N.
113 config FEATURE_INSMOD_LOADINKMEM
114 bool "In kernel memory optimization (uClinux only)"
116 depends on INSMOD && FEATURE_2_4_MODULES
118 This is a special uClinux only memory optimization that lets insmod
119 load the specified kernel module directly into kernel space, reducing
120 memory usage by preventing the need for two copies of the module
121 being loaded into memory.
123 config FEATURE_INSMOD_LOAD_MAP
124 bool "Enable load map (-m) option"
126 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
128 Enabling this, one would be able to get a load map
129 output on stdout. This makes kernel module debugging
131 If you don't plan to debug kernel modules, you
132 don't need this option.
134 config FEATURE_INSMOD_LOAD_MAP_FULL
135 bool "Symbols in load map"
137 depends on FEATURE_INSMOD_LOAD_MAP
139 Without this option, -m will only output section
140 load map. With this option, -m will also output
146 depends on !MODPROBE_SMALL
148 rmmod is used to unload specified modules from the kernel.
153 depends on !MODPROBE_SMALL
155 lsmod is used to display a list of loaded modules.
157 config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
158 bool "Pretty output for 2.6.x Linux kernels"
162 This option makes output format of lsmod adjusted to
163 the format of module-init-tools for Linux kernel 2.6.
168 depends on !MODPROBE_SMALL
170 Handle the loading of modules, and their dependencies on a high
173 Note that in the state, modprobe does not understand multiple
174 module options from the configuration file. See option below.
176 config FEATURE_MODPROBE_MULTIPLE_OPTIONS
178 prompt "Multiple options parsing"
182 Allow modprobe to understand more than one option to pass to
185 This is a WIP, while waiting for a common argument parsing
186 common amongst all BB applets (shell, modprobe, etc...) and
187 adds around 600 bytes on x86, 700 bytes on ARM. The code is
188 biggish and uggly, but just works.
190 Saying Y here is not a bad idea if you're not that short
193 config FEATURE_MODPROBE_FANCY_ALIAS
195 prompt "Fancy alias parsing"
197 depends on MODPROBE && FEATURE_2_6_MODULES
199 Say 'y' here to enable parsing of aliases with underscore/dash
200 mismatch between module name and file name, along with bus-specific
201 aliases (such as pci:... or usb:... aliases).
203 config FEATURE_MODPROBE_BLACKLIST
205 prompt "Blacklist support"
207 depends on MODPROBE && FEATURE_2_6_MODULES
209 Say 'y' here to enable support for the 'blacklist' command in
210 modprobe.conf. This prevents the alias resolver to resolve
211 blacklisted modules. This is useful if you want to prevent your
212 hardware autodetection scripts to load modules like evdev, frame
215 comment "Options common to multiple modutils"
216 depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD
218 config FEATURE_CHECK_TAINTED_MODULE
219 # Simulate indentation
220 bool "Support tainted module checking with new kernels"
222 depends on INSMOD || LSMOD
224 Support checking for tainted modules. These are usually binary
225 only modules that will make the linux-kernel list ignore your
227 This option is required to support GPLONLY modules.
229 config FEATURE_2_4_MODULES
230 # Simulate indentation
231 bool "Support version 2.2.x to 2.4.x Linux kernels"
233 depends on INSMOD || RMMOD || MODPROBE
235 Support module loading for 2.2.x and 2.4.x Linux kernels.
238 This is automatically enabled if 2.6 modules are not enabled.
240 config FEATURE_2_6_MODULES
241 # Simulate indentation
242 bool "Support version 2.6.x Linux kernels"
244 depends on INSMOD || RMMOD || MODPROBE
246 Support module loading for newer 2.6.x Linux kernels.
248 config DEFAULT_MODULES_DIR
249 # Simulate indentation
250 string "Default directory containing modules"
251 default "/lib/modules"
252 depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
254 Directory that contains kernel modules.
255 Defaults to "/lib/modules"
257 config DEFAULT_DEPMOD_FILE
258 # Simulate indentation
259 string "Default name of modules.dep"
260 default "modules.dep"
261 depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD
263 Filename that contains kernel modules dependencies.
264 Defaults to "modules.dep"
266 config FEATURE_QUERY_MODULE_INTERFACE
269 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES