diff options
Diffstat (limited to 'modutils/Config.in')
-rw-r--r-- | modutils/Config.in | 238 |
1 files changed, 98 insertions, 140 deletions
diff --git a/modutils/Config.in b/modutils/Config.in index a430fcac3..e7b839db9 100644 --- a/modutils/Config.in +++ b/modutils/Config.in | |||
@@ -5,6 +5,20 @@ | |||
5 | 5 | ||
6 | menu "Linux Module Utilities" | 6 | menu "Linux Module Utilities" |
7 | 7 | ||
8 | config DEFAULT_MODULES_DIR | ||
9 | string "Default directory containing modules" | ||
10 | default "/lib/modules" | ||
11 | help | ||
12 | Directory that contains kernel modules. | ||
13 | Defaults to "/lib/modules" | ||
14 | |||
15 | config DEFAULT_DEPMOD_FILE | ||
16 | string "Default name of modules.dep" | ||
17 | default "modules.dep" | ||
18 | help | ||
19 | Filename that contains kernel modules dependencies. | ||
20 | Defaults to "modules.dep" | ||
21 | |||
8 | config MODPROBE_SMALL | 22 | config MODPROBE_SMALL |
9 | bool "Simplified modutils" | 23 | bool "Simplified modutils" |
10 | default n | 24 | default n |
@@ -54,48 +68,83 @@ config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED | |||
54 | Check if the module is already loaded. | 68 | Check if the module is already loaded. |
55 | N.B. It's racy. | 69 | N.B. It's racy. |
56 | 70 | ||
57 | config DEPMOD | 71 | config INSMOD |
58 | bool "depmod" | 72 | bool "insmod" |
59 | default n | 73 | default n |
60 | depends on !MODPROBE_SMALL | 74 | depends on !MODPROBE_SMALL |
61 | help | 75 | help |
62 | depmod generates modules.dep (FIXME: elaborate) | 76 | insmod is used to load specified modules in the running kernel. |
63 | 77 | ||
64 | config FEATURE_DEPMOD_PRUNE_FANCY | 78 | config RMMOD |
65 | bool "Fancy dependency pruning" | 79 | bool "rmmod" |
66 | default n | 80 | default n |
67 | depends on DEPMOD | 81 | depends on !MODPROBE_SMALL |
68 | help | 82 | help |
69 | By default modules.dep contains all dependencies as listed by | 83 | rmmod is used to unload specified modules from the kernel. |
70 | the modules. | ||
71 | If you enable this option then we remove implied modules from | ||
72 | the dependencies. | ||
73 | This makes depmod somewhat bigger but generates a smaller | ||
74 | modules.dep file. | ||
75 | 84 | ||
76 | If unsure, say N. | 85 | config LSMOD |
86 | bool "lsmod" | ||
87 | default n | ||
88 | depends on !MODPROBE_SMALL | ||
89 | help | ||
90 | lsmod is used to display a list of loaded modules. | ||
77 | 91 | ||
78 | config FEATURE_DEPMOD_ALIAS | 92 | config FEATURE_LSMOD_PRETTY_2_6_OUTPUT |
79 | bool "Alias support" | 93 | bool "Pretty output" |
80 | default n | 94 | default n |
81 | depends on DEPMOD | 95 | depends on LSMOD |
82 | help | 96 | help |
83 | By default modules.dep does not contain alias information. | 97 | This option makes output format of lsmod adjusted to |
84 | Enable this to emit aliases of the form: | 98 | the format of module-init-tools for Linux kernel 2.6. |
99 | Increases size somewhat. | ||
85 | 100 | ||
86 | alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs | 101 | config MODPROBE |
102 | bool "modprobe" | ||
103 | default n | ||
104 | depends on !MODPROBE_SMALL | ||
105 | help | ||
106 | Handle the loading of modules, and their dependencies on a high | ||
107 | level. | ||
87 | 108 | ||
88 | config INSMOD | 109 | Note that in the state, modprobe does not understand multiple |
89 | bool "insmod" | 110 | module options from the configuration file. See option below. |
111 | |||
112 | config FEATURE_MODPROBE_BLACKLIST | ||
113 | bool | ||
114 | prompt "Blacklist support" | ||
115 | default n | ||
116 | depends on MODPROBE | ||
117 | help | ||
118 | Say 'y' here to enable support for the 'blacklist' command in | ||
119 | modprobe.conf. This prevents the alias resolver to resolve | ||
120 | blacklisted modules. This is useful if you want to prevent your | ||
121 | hardware autodetection scripts to load modules like evdev, frame | ||
122 | buffer drivers etc. | ||
123 | |||
124 | config DEPMOD | ||
125 | bool "depmod" | ||
90 | default n | 126 | default n |
91 | depends on !MODPROBE_SMALL | 127 | depends on !MODPROBE_SMALL |
92 | help | 128 | help |
93 | insmod is used to load specified modules in the running kernel. | 129 | depmod generates modules.dep (and potentially modules.alias |
130 | and modules.symbols) that contain dependency information | ||
131 | for modprobe. | ||
132 | |||
133 | comment "Options common to multiple modutils" | ||
134 | |||
135 | config FEATURE_2_4_MODULES | ||
136 | bool "Support version 2.2/2.4 Linux kernels" | ||
137 | default n | ||
138 | depends on INSMOD || RMMOD || LSMOD | ||
139 | help | ||
140 | Support module loading for 2.2.x and 2.4.x Linux kernels. | ||
141 | This increases size considerably. Say N unless you plan | ||
142 | to run ancient kernels. | ||
94 | 143 | ||
95 | config FEATURE_INSMOD_VERSION_CHECKING | 144 | config FEATURE_INSMOD_VERSION_CHECKING |
96 | bool "Module version checking" | 145 | bool "Enable module version checking" |
97 | default n | 146 | default n |
98 | depends on INSMOD && FEATURE_2_4_MODULES | 147 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
99 | help | 148 | help |
100 | Support checking of versions for modules. This is used to | 149 | Support checking of versions for modules. This is used to |
101 | ensure that the kernel and module are made for each other. | 150 | ensure that the kernel and module are made for each other. |
@@ -103,7 +152,7 @@ config FEATURE_INSMOD_VERSION_CHECKING | |||
103 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS | 152 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
104 | bool "Add module symbols to kernel symbol table" | 153 | bool "Add module symbols to kernel symbol table" |
105 | default n | 154 | default n |
106 | depends on INSMOD && FEATURE_2_4_MODULES | 155 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
107 | help | 156 | help |
108 | By adding module symbols to the kernel symbol table, Oops messages | 157 | By adding module symbols to the kernel symbol table, Oops messages |
109 | occuring within kernel modules can be properly debugged. By enabling | 158 | occuring within kernel modules can be properly debugged. By enabling |
@@ -114,7 +163,7 @@ config FEATURE_INSMOD_KSYMOOPS_SYMBOLS | |||
114 | config FEATURE_INSMOD_LOADINKMEM | 163 | config FEATURE_INSMOD_LOADINKMEM |
115 | bool "In kernel memory optimization (uClinux only)" | 164 | bool "In kernel memory optimization (uClinux only)" |
116 | default n | 165 | default n |
117 | depends on INSMOD && FEATURE_2_4_MODULES | 166 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
118 | help | 167 | help |
119 | This is a special uClinux only memory optimization that lets insmod | 168 | This is a special uClinux only memory optimization that lets insmod |
120 | load the specified kernel module directly into kernel space, reducing | 169 | load the specified kernel module directly into kernel space, reducing |
@@ -122,9 +171,9 @@ config FEATURE_INSMOD_LOADINKMEM | |||
122 | being loaded into memory. | 171 | being loaded into memory. |
123 | 172 | ||
124 | config FEATURE_INSMOD_LOAD_MAP | 173 | config FEATURE_INSMOD_LOAD_MAP |
125 | bool "Enable load map (-m) option" | 174 | bool "Enable insmod load map (-m) option" |
126 | default n | 175 | default n |
127 | depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES ) | 176 | depends on FEATURE_2_4_MODULES && INSMOD |
128 | help | 177 | help |
129 | Enabling this, one would be able to get a load map | 178 | Enabling this, one would be able to get a load map |
130 | output on stdout. This makes kernel module debugging | 179 | output on stdout. This makes kernel module debugging |
@@ -135,138 +184,47 @@ config FEATURE_INSMOD_LOAD_MAP | |||
135 | config FEATURE_INSMOD_LOAD_MAP_FULL | 184 | config FEATURE_INSMOD_LOAD_MAP_FULL |
136 | bool "Symbols in load map" | 185 | bool "Symbols in load map" |
137 | default y | 186 | default y |
138 | depends on FEATURE_INSMOD_LOAD_MAP | 187 | depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL |
139 | help | 188 | help |
140 | Without this option, -m will only output section | 189 | Without this option, -m will only output section |
141 | load map. With this option, -m will also output | 190 | load map. With this option, -m will also output |
142 | symbols load map. | 191 | symbols load map. |
143 | 192 | ||
144 | config RMMOD | ||
145 | bool "rmmod" | ||
146 | default n | ||
147 | depends on !MODPROBE_SMALL | ||
148 | help | ||
149 | rmmod is used to unload specified modules from the kernel. | ||
150 | |||
151 | config LSMOD | ||
152 | bool "lsmod" | ||
153 | default n | ||
154 | depends on !MODPROBE_SMALL | ||
155 | help | ||
156 | lsmod is used to display a list of loaded modules. | ||
157 | |||
158 | config FEATURE_LSMOD_PRETTY_2_6_OUTPUT | ||
159 | bool "Pretty output for 2.6.x Linux kernels" | ||
160 | default n | ||
161 | depends on LSMOD | ||
162 | help | ||
163 | This option makes output format of lsmod adjusted to | ||
164 | the format of module-init-tools for Linux kernel 2.6. | ||
165 | |||
166 | config MODPROBE | ||
167 | bool "modprobe" | ||
168 | default n | ||
169 | depends on !MODPROBE_SMALL | ||
170 | help | ||
171 | Handle the loading of modules, and their dependencies on a high | ||
172 | level. | ||
173 | |||
174 | Note that in the state, modprobe does not understand multiple | ||
175 | module options from the configuration file. See option below. | ||
176 | |||
177 | config FEATURE_MODPROBE_MULTIPLE_OPTIONS | ||
178 | bool | ||
179 | prompt "Multiple options parsing" | ||
180 | default y | ||
181 | depends on MODPROBE | ||
182 | help | ||
183 | Allow modprobe to understand more than one option to pass to | ||
184 | modules. | ||
185 | |||
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. | ||
190 | |||
191 | Saying Y here is not a bad idea if you're not that short | ||
192 | on storage capacity. | ||
193 | |||
194 | config FEATURE_MODPROBE_FANCY_ALIAS | ||
195 | bool | ||
196 | prompt "Fancy alias parsing" | ||
197 | default y | ||
198 | depends on MODPROBE && FEATURE_2_6_MODULES | ||
199 | help | ||
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). | ||
203 | |||
204 | config FEATURE_MODPROBE_BLACKLIST | ||
205 | bool | ||
206 | prompt "Blacklist support" | ||
207 | default n | ||
208 | depends on MODPROBE && FEATURE_2_6_MODULES | ||
209 | help | ||
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 | ||
214 | buffer drivers etc. | ||
215 | |||
216 | comment "Options common to multiple modutils" | ||
217 | depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD | ||
218 | |||
219 | config FEATURE_CHECK_TAINTED_MODULE | 193 | config FEATURE_CHECK_TAINTED_MODULE |
220 | # Simulate indentation | ||
221 | bool "Support tainted module checking with new kernels" | 194 | bool "Support tainted module checking with new kernels" |
222 | default y | 195 | default y |
223 | depends on INSMOD || LSMOD | 196 | depends on !MODPROBE_SMALL |
224 | help | 197 | help |
225 | Support checking for tainted modules. These are usually binary | 198 | Support checking for tainted modules. These are usually binary |
226 | only modules that will make the linux-kernel list ignore your | 199 | only modules that will make the linux-kernel list ignore your |
227 | support request. | 200 | support request. |
228 | This option is required to support GPLONLY modules. | 201 | This option is required to support GPLONLY modules. |
229 | 202 | ||
230 | config FEATURE_2_4_MODULES | 203 | config FEATURE_MODUTILS_ALIAS |
231 | # Simulate indentation | 204 | bool "Support for module.aliases file" |
232 | bool "Support version 2.2.x to 2.4.x Linux kernels" | ||
233 | default y | 205 | default y |
234 | depends on INSMOD || RMMOD || MODPROBE | 206 | depends on DEPMOD || MODPROBE |
235 | help | 207 | help |
236 | Support module loading for 2.2.x and 2.4.x Linux kernels. | 208 | Generate and parse modules.alias containing aliases for bus |
209 | identifiers: | ||
210 | alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs | ||
237 | 211 | ||
238 | Note: | 212 | and aliases for logical modules names e.g.: |
239 | This is automatically enabled if 2.6 modules are not enabled. | 213 | alias padlock_aes aes |
214 | alias aes_i586 aes | ||
215 | alias aes_generic aes | ||
240 | 216 | ||
241 | config FEATURE_2_6_MODULES | 217 | Say Y if unsure. |
242 | # Simulate indentation | ||
243 | bool "Support version 2.6.x Linux kernels" | ||
244 | default y | ||
245 | depends on INSMOD || RMMOD || MODPROBE | ||
246 | help | ||
247 | Support module loading for newer 2.6.x Linux kernels. | ||
248 | |||
249 | config DEFAULT_MODULES_DIR | ||
250 | # Simulate indentation | ||
251 | string "Default directory containing modules" | ||
252 | default "/lib/modules" | ||
253 | depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD | ||
254 | help | ||
255 | Directory that contains kernel modules. | ||
256 | Defaults to "/lib/modules" | ||
257 | 218 | ||
258 | config DEFAULT_DEPMOD_FILE | 219 | config FEATURE_MODUTILS_SYMBOLS |
259 | # Simulate indentation | 220 | bool "Support for module.symbols file" |
260 | string "Default name of modules.dep" | 221 | default y |
261 | default "modules.dep" | 222 | depends on DEPMOD || MODPROBE |
262 | depends on INSMOD || RMMOD || MODPROBE || MODPROBE_SMALL || DEPMOD | ||
263 | help | 223 | help |
264 | Filename that contains kernel modules dependencies. | 224 | Generate and parse modules.symbols containing aliases for |
265 | Defaults to "modules.dep" | 225 | symbol_request() kernel calls, such as: |
226 | alias symbol:usb_sg_init usbcore | ||
266 | 227 | ||
267 | config FEATURE_QUERY_MODULE_INTERFACE | 228 | Say Y if unsure. |
268 | bool | ||
269 | default y | ||
270 | depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES | ||
271 | 229 | ||
272 | endmenu | 230 | endmenu |