blob: 2ced9b308ddce29758422246fb04d873b6ed47f6 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
Glenn L McGrath1b6dfa72003-03-30 13:57:26 +00006menu "Linux Module Utilities"
Eric Andersenc9f20d92002-12-05 08:41:41 +00007
Pascal Bellard22bdf902010-06-06 04:55:13 +02008INSERT
9
Denis Vlasenko671691c2008-07-04 10:25:44 +000010config MODPROBE_SMALL
11 bool "Simplified modutils"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020012 default y
Denis Vlasenko671691c2008-07-04 10:25:44 +000013 help
14 Simplified modutils.
15
Denis Vlasenko0e2c93f2008-07-10 14:16:11 +000016 With this option modprobe does not require modules.dep file
17 and does not use /etc/modules.conf file.
Denis Vlasenko671691c2008-07-04 10:25:44 +000018 It scans module files in /lib/modules/`uname -r` and
19 determines dependencies and module alias names on the fly.
20 This may make module loading slower, most notably
21 when one needs to load module by alias (this requires
22 scanning through module _bodies_).
23
Denis Vlasenko0e2c93f2008-07-10 14:16:11 +000024 At the first attempt to load a module by alias modprobe
25 will try to generate modules.dep.bb file in order to speed up
26 future loads by alias. Failure to do so (read-only /lib/modules,
27 etc) is not reported, and future modprobes will be slow too.
28
29 NB: modules.dep.bb file format is not compatible
30 with modules.dep file as created/used by standard module tools.
31
Denis Vlasenko671691c2008-07-04 10:25:44 +000032 Additional module parameters can be stored in
33 /etc/modules/$module_name files.
34
35 Apart from modprobe, other utilities are also provided:
36 - insmod is an alias to modprobe
37 - rmmod is an alias to modprobe -r
Denis Vlasenko0e2c93f2008-07-10 14:16:11 +000038 - depmod generates modules.dep.bb
Denis Vlasenko671691c2008-07-04 10:25:44 +000039
Denis Vlasenko3e8fd182008-07-10 23:42:36 +000040 As of 2008-07, this code is experimental. It is 14kb smaller
Denis Vlasenko671691c2008-07-04 10:25:44 +000041 than "non-small" modutils.
42
43config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
Denis Vlasenkof62ab2d2008-07-09 09:50:33 +000044 bool "Accept module options on modprobe command line"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020045 default y
Denis Vlasenko671691c2008-07-04 10:25:44 +000046 depends on MODPROBE_SMALL
47 help
48 Allow insmod and modprobe take module options from command line.
Denis Vlasenko671691c2008-07-04 10:25:44 +000049
50config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
51 bool "Skip loading of already loaded modules"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020052 default y
Denis Vlasenko671691c2008-07-04 10:25:44 +000053 depends on MODPROBE_SMALL
54 help
55 Check if the module is already loaded.
Denis Vlasenko671691c2008-07-04 10:25:44 +000056
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000057config INSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000058 bool "insmod"
59 default n
Denis Vlasenko671691c2008-07-04 10:25:44 +000060 depends on !MODPROBE_SMALL
Eric Andersenc9f20d92002-12-05 08:41:41 +000061 help
Eric Andersene5642112003-07-14 19:37:08 +000062 insmod is used to load specified modules in the running kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000063
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000064config RMMOD
Rob Landley762bb622005-12-11 20:20:05 +000065 bool "rmmod"
66 default n
Denis Vlasenko671691c2008-07-04 10:25:44 +000067 depends on !MODPROBE_SMALL
Rob Landley762bb622005-12-11 20:20:05 +000068 help
69 rmmod is used to unload specified modules from the kernel.
70
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000071config LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000072 bool "lsmod"
73 default n
Denis Vlasenko671691c2008-07-04 10:25:44 +000074 depends on !MODPROBE_SMALL
Eric Andersenc9f20d92002-12-05 08:41:41 +000075 help
Eric Andersen65e20a32003-07-05 07:52:35 +000076 lsmod is used to display a list of loaded modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +000077
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000078config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000079 bool "Pretty output"
Rob Landley15d3f7f2005-05-04 00:25:49 +000080 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081 depends on LSMOD
Rob Landley15d3f7f2005-05-04 00:25:49 +000082 help
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000083 This option makes output format of lsmod adjusted to
Rob Landley4f653602005-05-04 23:55:06 +000084 the format of module-init-tools for Linux kernel 2.6.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000085 Increases size somewhat.
Rob Landley15d3f7f2005-05-04 00:25:49 +000086
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000087config MODPROBE
Eric Andersenc9f20d92002-12-05 08:41:41 +000088 bool "modprobe"
89 default n
Denis Vlasenko671691c2008-07-04 10:25:44 +000090 depends on !MODPROBE_SMALL
Eric Andersenc9f20d92002-12-05 08:41:41 +000091 help
Mike Frysingerfa6c4842006-05-26 01:48:17 +000092 Handle the loading of modules, and their dependencies on a high
Eric Andersene5642112003-07-14 19:37:08 +000093 level.
Eric Andersenc9f20d92002-12-05 08:41:41 +000094
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +000095config FEATURE_MODPROBE_BLACKLIST
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020096 bool "Blacklist support"
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +000097 default n
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000098 depends on MODPROBE
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +000099 help
Denis Vlasenkof45c4f42008-06-16 04:09:25 +0000100 Say 'y' here to enable support for the 'blacklist' command in
101 modprobe.conf. This prevents the alias resolver to resolve
102 blacklisted modules. This is useful if you want to prevent your
103 hardware autodetection scripts to load modules like evdev, frame
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +0000104 buffer drivers etc.
105
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000106config DEPMOD
107 bool "depmod"
108 default n
109 depends on !MODPROBE_SMALL
110 help
111 depmod generates modules.dep (and potentially modules.alias
112 and modules.symbols) that contain dependency information
113 for modprobe.
114
Rob Landley762bb622005-12-11 20:20:05 +0000115comment "Options common to multiple modutils"
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000116
117config FEATURE_2_4_MODULES
118 bool "Support version 2.2/2.4 Linux kernels"
119 default n
120 depends on INSMOD || RMMOD || LSMOD
121 help
122 Support module loading for 2.2.x and 2.4.x Linux kernels.
123 This increases size considerably. Say N unless you plan
124 to run ancient kernels.
125
Denys Vlasenko77c066e2009-10-25 04:35:22 +0100126config FEATURE_INSMOD_TRY_MMAP
127 bool "Try to load module from a mmap'ed area"
128 default n
129 depends on INSMOD || MODPROBE_SMALL
130 help
131 This option causes module loading code to try to mmap
132 module first. If it does not work (for example,
133 it does not work for compressed modules), module will be read
134 (and unpacked if needed) into a memory block allocated by malloc.
135
136 The only case when mmap works but malloc does not is when
137 you are trying to load a big module on a very memory-constrained
138 machine. Malloc will momentarily need 2x as much memory as mmap.
139
140 Choosing N saves about 250 bytes of code (on 32-bit x86).
141
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000142config FEATURE_INSMOD_VERSION_CHECKING
143 bool "Enable module version checking"
144 default n
145 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
146 help
147 Support checking of versions for modules. This is used to
148 ensure that the kernel and module are made for each other.
149
150config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
151 bool "Add module symbols to kernel symbol table"
152 default n
153 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
154 help
155 By adding module symbols to the kernel symbol table, Oops messages
156 occuring within kernel modules can be properly debugged. By enabling
157 this feature, module symbols will always be added to the kernel symbol
Denis Vlasenkoc5741002009-03-05 09:26:17 +0000158 table for proper debugging support. If you are not interested in
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000159 Oops messages from kernel modules, say N.
160
161config FEATURE_INSMOD_LOADINKMEM
162 bool "In kernel memory optimization (uClinux only)"
163 default n
164 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
165 help
166 This is a special uClinux only memory optimization that lets insmod
167 load the specified kernel module directly into kernel space, reducing
168 memory usage by preventing the need for two copies of the module
169 being loaded into memory.
170
171config FEATURE_INSMOD_LOAD_MAP
172 bool "Enable insmod load map (-m) option"
173 default n
174 depends on FEATURE_2_4_MODULES && INSMOD
175 help
176 Enabling this, one would be able to get a load map
177 output on stdout. This makes kernel module debugging
178 easier.
179 If you don't plan to debug kernel modules, you
180 don't need this option.
181
182config FEATURE_INSMOD_LOAD_MAP_FULL
183 bool "Symbols in load map"
184 default y
185 depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
186 help
187 Without this option, -m will only output section
188 load map. With this option, -m will also output
189 symbols load map.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000190
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000191config FEATURE_CHECK_TAINTED_MODULE
Rob Landley2ec922e2006-04-13 23:22:16 +0000192 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000193 default y
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000194 depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
Eric Andersenc9f20d92002-12-05 08:41:41 +0000195 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000196 Support checking for tainted modules. These are usually binary
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000197 only modules that will make the linux-kernel list ignore your
198 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000199 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000200
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000201config FEATURE_MODUTILS_ALIAS
202 bool "Support for module.aliases file"
Rob Landley762bb622005-12-11 20:20:05 +0000203 default y
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000204 depends on DEPMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000205 help
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000206 Generate and parse modules.alias containing aliases for bus
207 identifiers:
208 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
Rob Landley762bb622005-12-11 20:20:05 +0000209
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000210 and aliases for logical modules names e.g.:
211 alias padlock_aes aes
212 alias aes_i586 aes
213 alias aes_generic aes
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000214
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000215 Say Y if unsure.
216
217config FEATURE_MODUTILS_SYMBOLS
218 bool "Support for module.symbols file"
Rob Landley762bb622005-12-11 20:20:05 +0000219 default y
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000220 depends on DEPMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000221 help
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000222 Generate and parse modules.symbols containing aliases for
223 symbol_request() kernel calls, such as:
224 alias symbol:usb_sg_init usbcore
Rob Landley762bb622005-12-11 20:20:05 +0000225
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000226 Say Y if unsure.
Rob Landley762bb622005-12-11 20:20:05 +0000227
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000228config DEFAULT_MODULES_DIR
229 string "Default directory containing modules"
230 default "/lib/modules"
231 depends on DEPMOD || MODPROBE || MODPROBE_SMALL
232 help
233 Directory that contains kernel modules.
234 Defaults to "/lib/modules"
235
236config DEFAULT_DEPMOD_FILE
237 string "Default name of modules.dep"
238 default "modules.dep"
239 depends on DEPMOD || MODPROBE || MODPROBE_SMALL
240 help
241 Filename that contains kernel modules dependencies.
242 Defaults to "modules.dep"
243
Eric Andersenc9f20d92002-12-05 08:41:41 +0000244endmenu