2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
6 menu "Linux Module Utilities"
8 config BUSYBOX_CONFIG_MODPROBE_SMALL
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 BUSYBOX_CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
42 bool "Accept module options on modprobe command line"
44 depends on BUSYBOX_CONFIG_MODPROBE_SMALL
46 Allow insmod and modprobe take module options from command line.
49 config BUSYBOX_CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
50 bool "Skip loading of already loaded modules"
52 depends on BUSYBOX_CONFIG_MODPROBE_SMALL
54 Check if the module is already loaded.
57 config BUSYBOX_CONFIG_DEPMOD
60 depends on !BUSYBOX_CONFIG_MODPROBE_SMALL
62 depmod generates modules.dep (FIXME: elaborate)
64 config BUSYBOX_CONFIG_FEATURE_DEPMOD_PRUNE_FANCY
65 bool "Fancy dependency pruning"
67 depends on BUSYBOX_CONFIG_DEPMOD
69 By default modules.dep contains all dependencies as listed by
71 If you enable this option then we remove implied modules from
73 This makes depmod somewhat bigger but generates a smaller
78 config BUSYBOX_CONFIG_FEATURE_DEPMOD_ALIAS
81 depends on BUSYBOX_CONFIG_DEPMOD
83 By default modules.dep does not contain alias information.
84 Enable this to emit aliases of the form:
86 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
88 config BUSYBOX_CONFIG_INSMOD
91 depends on !BUSYBOX_CONFIG_MODPROBE_SMALL
93 insmod is used to load specified modules in the running kernel.
95 config BUSYBOX_CONFIG_FEATURE_INSMOD_VERSION_CHECKING
96 bool "Module version checking"
98 depends on BUSYBOX_CONFIG_INSMOD && BUSYBOX_CONFIG_FEATURE_2_4_MODULES
100 Support checking of versions for modules. This is used to
101 ensure that the kernel and module are made for each other.
103 config BUSYBOX_CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS
104 bool "Add module symbols to kernel symbol table"
106 depends on BUSYBOX_CONFIG_INSMOD && BUSYBOX_CONFIG_FEATURE_2_4_MODULES
108 By adding module symbols to the kernel symbol table, Oops messages
109 occuring within kernel modules can be properly debugged. By enabling
110 this feature, module symbols will always be added to the kernel symbol
111 table for properly debugging support. If you are not interested in
112 Oops messages from kernel modules, say N.
114 config BUSYBOX_CONFIG_FEATURE_INSMOD_LOADINKMEM
115 bool "In kernel memory optimization (uClinux only)"
117 depends on BUSYBOX_CONFIG_INSMOD && BUSYBOX_CONFIG_FEATURE_2_4_MODULES
119 This is a special uClinux only memory optimization that lets insmod
120 load the specified kernel module directly into kernel space, reducing
121 memory usage by preventing the need for two copies of the module
122 being loaded into memory.
124 config BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP
125 bool "Enable load map (-m) option"
127 depends on BUSYBOX_CONFIG_INSMOD && ( BUSYBOX_CONFIG_FEATURE_2_4_MODULES || BUSYBOX_CONFIG_FEATURE_2_6_MODULES )
129 Enabling this, one would be able to get a load map
130 output on stdout. This makes kernel module debugging
132 If you don't plan to debug kernel modules, you
133 don't need this option.
135 config BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL
136 bool "Symbols in load map"
138 depends on BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP
140 Without this option, -m will only output section
141 load map. With this option, -m will also output
144 config BUSYBOX_CONFIG_RMMOD
147 depends on !BUSYBOX_CONFIG_MODPROBE_SMALL
149 rmmod is used to unload specified modules from the kernel.
151 config BUSYBOX_CONFIG_LSMOD
154 depends on !BUSYBOX_CONFIG_MODPROBE_SMALL
156 lsmod is used to display a list of loaded modules.
158 config BUSYBOX_CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT
159 bool "Pretty output for 2.6.x Linux kernels"
161 depends on BUSYBOX_CONFIG_LSMOD
163 This option makes output format of lsmod adjusted to
164 the format of module-init-tools for Linux kernel 2.6.
166 config BUSYBOX_CONFIG_MODPROBE
169 depends on !BUSYBOX_CONFIG_MODPROBE_SMALL
171 Handle the loading of modules, and their dependencies on a high
174 Note that in the state, modprobe does not understand multiple
175 module options from the configuration file. See option below.
177 config BUSYBOX_CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
179 prompt "Multiple options parsing"
181 depends on BUSYBOX_CONFIG_MODPROBE
183 Allow modprobe to understand more than one option to pass to
186 This is a WIP, while waiting for a common argument parsing
187 common amongst all BB applets (shell, modprobe, etc...) and
188 adds around 600 bytes on x86, 700 bytes on ARM. The code is
189 biggish and uggly, but just works.
191 Saying Y here is not a bad idea if you're not that short
194 config BUSYBOX_CONFIG_FEATURE_MODPROBE_FANCY_ALIAS
196 prompt "Fancy alias parsing"
198 depends on BUSYBOX_CONFIG_MODPROBE && BUSYBOX_CONFIG_FEATURE_2_6_MODULES
200 Say 'y' here to enable parsing of aliases with underscore/dash
201 mismatch between module name and file name, along with bus-specific
202 aliases (such as pci:... or usb:... aliases).
204 config BUSYBOX_CONFIG_FEATURE_MODPROBE_BLACKLIST
206 prompt "Blacklist support"
208 depends on BUSYBOX_CONFIG_MODPROBE && BUSYBOX_CONFIG_FEATURE_2_6_MODULES
210 Say 'y' here to enable support for the 'blacklist' command in
211 modprobe.conf. This prevents the alias resolver to resolve
212 blacklisted modules. This is useful if you want to prevent your
213 hardware autodetection scripts to load modules like evdev, frame
216 comment "Options common to multiple modutils"
217 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_LSMOD || BUSYBOX_CONFIG_DEPMOD
219 config BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE
220 # Simulate indentation
221 bool "Support tainted module checking with new kernels"
223 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_LSMOD
225 Support checking for tainted modules. These are usually binary
226 only modules that will make the linux-kernel list ignore your
228 This option is required to support GPLONLY modules.
230 config BUSYBOX_CONFIG_FEATURE_2_4_MODULES
231 # Simulate indentation
232 bool "Support version 2.2.x to 2.4.x Linux kernels"
234 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE
236 Support module loading for 2.2.x and 2.4.x Linux kernels.
239 This is automatically enabled if 2.6 modules are not enabled.
241 config BUSYBOX_CONFIG_FEATURE_2_6_MODULES
242 # Simulate indentation
243 bool "Support version 2.6.x Linux kernels"
245 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE
247 Support module loading for newer 2.6.x Linux kernels.
249 config BUSYBOX_CONFIG_DEFAULT_MODULES_DIR
250 # Simulate indentation
251 string "Default directory containing modules"
252 default "/lib/modules"
253 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_MODPROBE_SMALL || BUSYBOX_CONFIG_DEPMOD
255 Directory that contains kernel modules.
256 Defaults to "/lib/modules"
258 config BUSYBOX_CONFIG_DEFAULT_DEPMOD_FILE
259 # Simulate indentation
260 string "Default name of modules.dep"
261 default "modules.dep"
262 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_RMMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_MODPROBE_SMALL || BUSYBOX_CONFIG_DEPMOD
264 Filename that contains kernel modules dependencies.
265 Defaults to "modules.dep"
267 config BUSYBOX_CONFIG_FEATURE_QUERY_MODULE_INTERFACE
270 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && !BUSYBOX_CONFIG_FEATURE_2_6_MODULES