blob: fb7fb2266cd33d602c60eac6e5cf4ee3a9ea53de [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000028config INSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000029 bool "insmod"
30 default n
31 help
Eric Andersene5642112003-07-14 19:37:08 +000032 insmod is used to load specified modules in the running kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000033
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000034config FEATURE_INSMOD_VERSION_CHECKING
Rob Landley762bb622005-12-11 20:20:05 +000035 bool "Module version checking"
Eric Andersenc9f20d92002-12-05 08:41:41 +000036 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000037 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000038 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +000039 Support checking of versions for modules. This is used to
40 ensure that the kernel and module are made for each other.
Eric Andersenc9f20d92002-12-05 08:41:41 +000041
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000042config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
Rob Landley762bb622005-12-11 20:20:05 +000043 bool "Add module symbols to kernel symbol table"
Eric Andersen889dd202003-01-23 04:48:34 +000044 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000045 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersen889dd202003-01-23 04:48:34 +000046 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +000047 By adding module symbols to the kernel symbol table, Oops messages
Eric Andersen889dd202003-01-23 04:48:34 +000048 occuring within kernel modules can be properly debugged. By enabling
Eric Andersenc7bda1c2004-03-15 08:29:22 +000049 this feature, module symbols will always be added to the kernel symbol
Eric Andersen889dd202003-01-23 04:48:34 +000050 table for properly debugging support. If you are not interested in
51 Oops messages from kernel modules, say N.
52
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000053config FEATURE_INSMOD_LOADINKMEM
Rob Landley762bb622005-12-11 20:20:05 +000054 bool "In kernel memory optimization (uClinux only)"
Eric Andersenc9f20d92002-12-05 08:41:41 +000055 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000056 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000057 help
Eric Andersenb24da332003-07-22 10:16:58 +000058 This is a special uClinux only memory optimization that lets insmod
59 load the specified kernel module directly into kernel space, reducing
60 memory usage by preventing the need for two copies of the module
61 being loaded into memory.
Eric Andersenc9f20d92002-12-05 08:41:41 +000062
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config FEATURE_INSMOD_LOAD_MAP
Rob Landley762bb622005-12-11 20:20:05 +000064 bool "Enable load map (-m) option"
Eric Andersenbe65c352003-01-23 04:57:35 +000065 default n
Denis Vlasenkocba9ef52006-10-10 21:00:47 +000066 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
Eric Andersenbe65c352003-01-23 04:57:35 +000067 help
68 Enabling this, one would be able to get a load map
69 output on stdout. This makes kernel module debugging
70 easier.
71 If you don't plan to debug kernel modules, you
72 don't need this option.
73
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000074config FEATURE_INSMOD_LOAD_MAP_FULL
Rob Landley762bb622005-12-11 20:20:05 +000075 bool "Symbols in load map"
Eric Andersenbe65c352003-01-23 04:57:35 +000076 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000077 depends on FEATURE_INSMOD_LOAD_MAP
Eric Andersenbe65c352003-01-23 04:57:35 +000078 help
79 Without this option, -m will only output section
Eric Andersenc7bda1c2004-03-15 08:29:22 +000080 load map. With this option, -m will also output
Eric Andersene7047882003-12-11 01:42:13 +000081 symbols load map.
Eric Andersenbe65c352003-01-23 04:57:35 +000082
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000083config RMMOD
Rob Landley762bb622005-12-11 20:20:05 +000084 bool "rmmod"
85 default n
86 help
87 rmmod is used to unload specified modules from the kernel.
88
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000089config LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000090 bool "lsmod"
91 default n
92 help
Eric Andersen65e20a32003-07-05 07:52:35 +000093 lsmod is used to display a list of loaded modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +000094
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000095config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000096 bool "Pretty output for 2.6.x Linux kernels"
Rob Landley15d3f7f2005-05-04 00:25:49 +000097 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000098 depends on LSMOD
Rob Landley15d3f7f2005-05-04 00:25:49 +000099 help
Tim Rikerc1ef7bd2006-01-25 00:08:53 +0000100 This option makes output format of lsmod adjusted to
Rob Landley4f653602005-05-04 23:55:06 +0000101 the format of module-init-tools for Linux kernel 2.6.
Rob Landley15d3f7f2005-05-04 00:25:49 +0000102
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000103config MODPROBE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000104 bool "modprobe"
105 default n
106 help
Mike Frysingerfa6c4842006-05-26 01:48:17 +0000107 Handle the loading of modules, and their dependencies on a high
Eric Andersene5642112003-07-14 19:37:08 +0000108 level.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000109
Rob Landley762bb622005-12-11 20:20:05 +0000110 Note that in the state, modprobe does not understand multiple
111 module options from the configuration file. See option below.
Rob Landley79e1cab2005-11-15 00:08:29 +0000112
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000113config FEATURE_MODPROBE_MULTIPLE_OPTIONS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000114 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000115 prompt "Multiple options parsing"
Rob Landley79e1cab2005-11-15 00:08:29 +0000116 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000117 depends on MODPROBE
Rob Landley79e1cab2005-11-15 00:08:29 +0000118 help
119 Allow modprobe to understand more than one option to pass to
120 modules.
Rob Landley762bb622005-12-11 20:20:05 +0000121
Rob Landley79e1cab2005-11-15 00:08:29 +0000122 This is a WIP, while waiting for a common argument parsing
123 common amongst all BB applets (shell, modprobe, etc...) and
124 adds around 600 bytes on x86, 700 bytes on ARM. The code is
125 biggish and uggly, but just works.
Rob Landley762bb622005-12-11 20:20:05 +0000126
Rob Landley79e1cab2005-11-15 00:08:29 +0000127 Saying Y here is not a bad idea if you're not that short
128 on storage capacity.
129
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000130config FEATURE_MODPROBE_FANCY_ALIAS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000131 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000132 prompt "Fancy alias parsing"
Rob Landleybf30c692006-07-20 17:36:18 +0000133 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000134 depends on MODPROBE && FEATURE_2_6_MODULES
Rob Landleybf30c692006-07-20 17:36:18 +0000135 help
136 Say 'y' here to enable parsing of aliases with underscore/dash
137 mismatch between module name and file name, along with bus-specific
138 aliases (such as pci:... or usb:... aliases).
139
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +0000140config FEATURE_MODPROBE_BLACKLIST
141 bool
142 prompt "Blacklist support"
143 default n
144 depends on MODPROBE && FEATURE_2_6_MODULES
145 help
146 Say 'y' here to enable support for the 'blacklist' command in
147 modprobe.conf. This prevents the alias resolver to resolve
148 blacklisted modules. This is useful if you want to prevent your
149 hardware autodetection scripts to load modules like evdev, frame
150 buffer drivers etc.
151
Rob Landley762bb622005-12-11 20:20:05 +0000152comment "Options common to multiple modutils"
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000153 depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000154
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000155config FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000156 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000157 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000158 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159 depends on INSMOD || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000160 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000161 Support checking for tainted modules. These are usually binary
162 only modules that will make the linux-kernel list ignore your
163 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000164 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000165
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000166config FEATURE_2_4_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000167 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000168 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000169 default y
Denis Vlasenko997aa112006-10-14 11:12:20 +0000170 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000171 help
172 Support module loading for 2.2.x and 2.4.x Linux kernels.
173
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000174 Note:
175 This is automatically enabled if 2.6 modules are not enabled.
176
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000177config FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000178 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000179 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000180 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000181 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000182 help
183 Support module loading for newer 2.6.x Linux kernels.
184
Bernhard Reutner-Fischerb85fb692008-05-27 10:55:34 +0000185config DEFAULT_MODULES_DIR
186 # Simulate indentation
187 string "default directory containing modules"
188 default "/lib/modules"
189 depends on INSMOD || RMMOD || MODPROBE || DEPMOD
190 help
191 Directory that contains kernel modules.
192 Defaults to "/lib/modules"
193
194config DEFAULT_DEPMOD_FILE
195 # Simulate indentation
196 string "default name of modules.dep"
197 default "modules.dep"
198 depends on INSMOD || RMMOD || MODPROBE || DEPMOD
199 help
200 Filename that contains kernel modules dependencies.
201 Defaults to "modules.dep"
Rob Landley762bb622005-12-11 20:20:05 +0000202
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000203config FEATURE_QUERY_MODULE_INTERFACE
Rob Landley762bb622005-12-11 20:20:05 +0000204 bool
205 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000206 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000207
Eric Andersenc9f20d92002-12-05 08:41:41 +0000208
209endmenu
210