blob: c0dff1a4c3faa1c57e658aac2fed3c4831d39a35 [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
Bernhard Reutner-Fischer55e547e2008-05-26 12:01:49 +00008config DEPMOD
9 bool "depmod"
10 default n
11 help
12 depmod generates modules.dep (FIXME: elaborate)
13
Bernhard Reutner-Fischerbeac1bd2008-06-02 13:28:47 +000014config FEATURE_DEPMOD_PRUNE_FANCY
15 bool "fancy dependency pruning"
16 default n
17 depends on DEPMOD
18 help
19 By default modules.dep contains all dependencies as listed by
20 the modules.
21 If you enable this option then we remove implied modules from
22 the dependencies.
23 This makes depmod somewhat bigger but generates a smaller
24 modules.dep file.
25
26 If unsure, say N.
27
Bernhard Reutner-Fischerc2741e12008-06-02 18:59:16 +000028config FEATURE_DEPMOD_ALIAS
29 bool "alias support"
30 default n
31 depends on DEPMOD
32 help
33 By default modules.dep does not contain alias information.
34 Enable this to emit aliases of the form:
35
36 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
37
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000038config INSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000039 bool "insmod"
40 default n
41 help
Eric Andersene5642112003-07-14 19:37:08 +000042 insmod is used to load specified modules in the running kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000043
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000044config FEATURE_INSMOD_VERSION_CHECKING
Rob Landley762bb622005-12-11 20:20:05 +000045 bool "Module version checking"
Eric Andersenc9f20d92002-12-05 08:41:41 +000046 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000047 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000048 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +000049 Support checking of versions for modules. This is used to
50 ensure that the kernel and module are made for each other.
Eric Andersenc9f20d92002-12-05 08:41:41 +000051
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000052config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
Rob Landley762bb622005-12-11 20:20:05 +000053 bool "Add module symbols to kernel symbol table"
Eric Andersen889dd202003-01-23 04:48:34 +000054 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000055 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersen889dd202003-01-23 04:48:34 +000056 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +000057 By adding module symbols to the kernel symbol table, Oops messages
Eric Andersen889dd202003-01-23 04:48:34 +000058 occuring within kernel modules can be properly debugged. By enabling
Eric Andersenc7bda1c2004-03-15 08:29:22 +000059 this feature, module symbols will always be added to the kernel symbol
Eric Andersen889dd202003-01-23 04:48:34 +000060 table for properly debugging support. If you are not interested in
61 Oops messages from kernel modules, say N.
62
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config FEATURE_INSMOD_LOADINKMEM
Rob Landley762bb622005-12-11 20:20:05 +000064 bool "In kernel memory optimization (uClinux only)"
Eric Andersenc9f20d92002-12-05 08:41:41 +000065 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000066 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000067 help
Eric Andersenb24da332003-07-22 10:16:58 +000068 This is a special uClinux only memory optimization that lets insmod
69 load the specified kernel module directly into kernel space, reducing
70 memory usage by preventing the need for two copies of the module
71 being loaded into memory.
Eric Andersenc9f20d92002-12-05 08:41:41 +000072
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000073config FEATURE_INSMOD_LOAD_MAP
Rob Landley762bb622005-12-11 20:20:05 +000074 bool "Enable load map (-m) option"
Eric Andersenbe65c352003-01-23 04:57:35 +000075 default n
Denis Vlasenkocba9ef52006-10-10 21:00:47 +000076 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
Eric Andersenbe65c352003-01-23 04:57:35 +000077 help
78 Enabling this, one would be able to get a load map
79 output on stdout. This makes kernel module debugging
80 easier.
81 If you don't plan to debug kernel modules, you
82 don't need this option.
83
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000084config FEATURE_INSMOD_LOAD_MAP_FULL
Rob Landley762bb622005-12-11 20:20:05 +000085 bool "Symbols in load map"
Eric Andersenbe65c352003-01-23 04:57:35 +000086 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000087 depends on FEATURE_INSMOD_LOAD_MAP
Eric Andersenbe65c352003-01-23 04:57:35 +000088 help
89 Without this option, -m will only output section
Eric Andersenc7bda1c2004-03-15 08:29:22 +000090 load map. With this option, -m will also output
Eric Andersene7047882003-12-11 01:42:13 +000091 symbols load map.
Eric Andersenbe65c352003-01-23 04:57:35 +000092
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000093config RMMOD
Rob Landley762bb622005-12-11 20:20:05 +000094 bool "rmmod"
95 default n
96 help
97 rmmod is used to unload specified modules from the kernel.
98
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000099config LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000100 bool "lsmod"
101 default n
102 help
Eric Andersen65e20a32003-07-05 07:52:35 +0000103 lsmod is used to display a list of loaded modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000104
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000105config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000106 bool "Pretty output for 2.6.x Linux kernels"
Rob Landley15d3f7f2005-05-04 00:25:49 +0000107 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000108 depends on LSMOD
Rob Landley15d3f7f2005-05-04 00:25:49 +0000109 help
Tim Rikerc1ef7bd2006-01-25 00:08:53 +0000110 This option makes output format of lsmod adjusted to
Rob Landley4f653602005-05-04 23:55:06 +0000111 the format of module-init-tools for Linux kernel 2.6.
Rob Landley15d3f7f2005-05-04 00:25:49 +0000112
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000113config MODPROBE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000114 bool "modprobe"
115 default n
116 help
Mike Frysingerfa6c4842006-05-26 01:48:17 +0000117 Handle the loading of modules, and their dependencies on a high
Eric Andersene5642112003-07-14 19:37:08 +0000118 level.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000119
Rob Landley762bb622005-12-11 20:20:05 +0000120 Note that in the state, modprobe does not understand multiple
121 module options from the configuration file. See option below.
Rob Landley79e1cab2005-11-15 00:08:29 +0000122
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000123config FEATURE_MODPROBE_MULTIPLE_OPTIONS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000124 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000125 prompt "Multiple options parsing"
Rob Landley79e1cab2005-11-15 00:08:29 +0000126 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000127 depends on MODPROBE
Rob Landley79e1cab2005-11-15 00:08:29 +0000128 help
129 Allow modprobe to understand more than one option to pass to
130 modules.
Rob Landley762bb622005-12-11 20:20:05 +0000131
Rob Landley79e1cab2005-11-15 00:08:29 +0000132 This is a WIP, while waiting for a common argument parsing
133 common amongst all BB applets (shell, modprobe, etc...) and
134 adds around 600 bytes on x86, 700 bytes on ARM. The code is
135 biggish and uggly, but just works.
Rob Landley762bb622005-12-11 20:20:05 +0000136
Rob Landley79e1cab2005-11-15 00:08:29 +0000137 Saying Y here is not a bad idea if you're not that short
138 on storage capacity.
139
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000140config FEATURE_MODPROBE_FANCY_ALIAS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000141 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000142 prompt "Fancy alias parsing"
Rob Landleybf30c692006-07-20 17:36:18 +0000143 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000144 depends on MODPROBE && FEATURE_2_6_MODULES
Rob Landleybf30c692006-07-20 17:36:18 +0000145 help
146 Say 'y' here to enable parsing of aliases with underscore/dash
147 mismatch between module name and file name, along with bus-specific
148 aliases (such as pci:... or usb:... aliases).
149
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +0000150config FEATURE_MODPROBE_BLACKLIST
151 bool
152 prompt "Blacklist support"
153 default n
154 depends on MODPROBE && FEATURE_2_6_MODULES
155 help
156 Say 'y' here to enable support for the 'blacklist' command in
157 modprobe.conf. This prevents the alias resolver to resolve
158 blacklisted modules. This is useful if you want to prevent your
159 hardware autodetection scripts to load modules like evdev, frame
160 buffer drivers etc.
161
Rob Landley762bb622005-12-11 20:20:05 +0000162comment "Options common to multiple modutils"
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000163 depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000164
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000165config FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000166 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000167 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000169 depends on INSMOD || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000170 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000171 Support checking for tainted modules. These are usually binary
172 only modules that will make the linux-kernel list ignore your
173 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000174 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000175
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000176config FEATURE_2_4_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000177 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000178 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000179 default y
Denis Vlasenko997aa112006-10-14 11:12:20 +0000180 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000181 help
182 Support module loading for 2.2.x and 2.4.x Linux kernels.
183
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000184 Note:
185 This is automatically enabled if 2.6 modules are not enabled.
186
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000187config FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000188 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000189 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000190 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000191 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000192 help
193 Support module loading for newer 2.6.x Linux kernels.
194
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000195config DEFAULT_MODULES_DIR
196 # Simulate indentation
Denis Vlasenkoe7860e32008-06-04 22:41:14 +0000197 string "Default directory containing modules"
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000198 default "/lib/modules"
199 depends on INSMOD || RMMOD || MODPROBE || DEPMOD
200 help
201 Directory that contains kernel modules.
202 Defaults to "/lib/modules"
203
204config DEFAULT_DEPMOD_FILE
205 # Simulate indentation
Denis Vlasenkoe7860e32008-06-04 22:41:14 +0000206 string "Default name of modules.dep"
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000207 default "modules.dep"
208 depends on INSMOD || RMMOD || MODPROBE || DEPMOD
209 help
210 Filename that contains kernel modules dependencies.
211 Defaults to "modules.dep"
Rob Landley762bb622005-12-11 20:20:05 +0000212
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000213config FEATURE_QUERY_MODULE_INTERFACE
Rob Landley762bb622005-12-11 20:20:05 +0000214 bool
215 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000216 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000217
Eric Andersenc9f20d92002-12-05 08:41:41 +0000218endmenu