Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
Glenn L McGrath | 1b6dfa7 | 2003-03-30 13:57:26 +0000 | [diff] [blame] | 6 | menu "Linux Module Utilities" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 7 | |
Bernhard Reutner-Fischer | 55e547e | 2008-05-26 12:01:49 +0000 | [diff] [blame] | 8 | config DEPMOD |
| 9 | bool "depmod" |
| 10 | default n |
| 11 | help |
| 12 | depmod generates modules.dep (FIXME: elaborate) |
| 13 | |
Bernhard Reutner-Fischer | beac1bd | 2008-06-02 13:28:47 +0000 | [diff] [blame] | 14 | config 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-Fischer | c2741e1 | 2008-06-02 18:59:16 +0000 | [diff] [blame^] | 28 | config 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 Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 38 | config INSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 39 | bool "insmod" |
| 40 | default n |
| 41 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 42 | insmod is used to load specified modules in the running kernel. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 43 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 44 | config FEATURE_INSMOD_VERSION_CHECKING |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 45 | bool "Module version checking" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 46 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 47 | depends on INSMOD && FEATURE_2_4_MODULES |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 48 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 49 | Support checking of versions for modules. This is used to |
| 50 | ensure that the kernel and module are made for each other. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 51 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 52 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 53 | bool "Add module symbols to kernel symbol table" |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 54 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 55 | depends on INSMOD && FEATURE_2_4_MODULES |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 56 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 57 | By adding module symbols to the kernel symbol table, Oops messages |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 58 | occuring within kernel modules can be properly debugged. By enabling |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 59 | this feature, module symbols will always be added to the kernel symbol |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 60 | table for properly debugging support. If you are not interested in |
| 61 | Oops messages from kernel modules, say N. |
| 62 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 63 | config FEATURE_INSMOD_LOADINKMEM |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 64 | bool "In kernel memory optimization (uClinux only)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 65 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 66 | depends on INSMOD && FEATURE_2_4_MODULES |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 67 | help |
Eric Andersen | b24da33 | 2003-07-22 10:16:58 +0000 | [diff] [blame] | 68 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 72 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 73 | config FEATURE_INSMOD_LOAD_MAP |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 74 | bool "Enable load map (-m) option" |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 75 | default n |
Denis Vlasenko | cba9ef5 | 2006-10-10 21:00:47 +0000 | [diff] [blame] | 76 | depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES ) |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 77 | 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 Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 84 | config FEATURE_INSMOD_LOAD_MAP_FULL |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 85 | bool "Symbols in load map" |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 86 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 87 | depends on FEATURE_INSMOD_LOAD_MAP |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 88 | help |
| 89 | Without this option, -m will only output section |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 90 | load map. With this option, -m will also output |
Eric Andersen | e704788 | 2003-12-11 01:42:13 +0000 | [diff] [blame] | 91 | symbols load map. |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 92 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 93 | config RMMOD |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 94 | bool "rmmod" |
| 95 | default n |
| 96 | help |
| 97 | rmmod is used to unload specified modules from the kernel. |
| 98 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 99 | config LSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 100 | bool "lsmod" |
| 101 | default n |
| 102 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 103 | lsmod is used to display a list of loaded modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 104 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 105 | config FEATURE_LSMOD_PRETTY_2_6_OUTPUT |
Denis Vlasenko | 4ee7cd4 | 2008-03-17 09:13:22 +0000 | [diff] [blame] | 106 | bool "Pretty output for 2.6.x Linux kernels" |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 107 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 108 | depends on LSMOD |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 109 | help |
Tim Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 110 | This option makes output format of lsmod adjusted to |
Rob Landley | 4f65360 | 2005-05-04 23:55:06 +0000 | [diff] [blame] | 111 | the format of module-init-tools for Linux kernel 2.6. |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 112 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 113 | config MODPROBE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 114 | bool "modprobe" |
| 115 | default n |
| 116 | help |
Mike Frysinger | fa6c484 | 2006-05-26 01:48:17 +0000 | [diff] [blame] | 117 | Handle the loading of modules, and their dependencies on a high |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 118 | level. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 119 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 120 | Note that in the state, modprobe does not understand multiple |
| 121 | module options from the configuration file. See option below. |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 122 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 123 | config FEATURE_MODPROBE_MULTIPLE_OPTIONS |
Mike Frysinger | 11353ae | 2007-01-24 14:34:35 +0000 | [diff] [blame] | 124 | bool |
Denis Vlasenko | 9305cdd | 2008-05-13 02:43:27 +0000 | [diff] [blame] | 125 | prompt "Multiple options parsing" |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 126 | default y |
Mike Frysinger | 11353ae | 2007-01-24 14:34:35 +0000 | [diff] [blame] | 127 | depends on MODPROBE |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 128 | help |
| 129 | Allow modprobe to understand more than one option to pass to |
| 130 | modules. |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 131 | |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 132 | 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 Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 136 | |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 137 | Saying Y here is not a bad idea if you're not that short |
| 138 | on storage capacity. |
| 139 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 140 | config FEATURE_MODPROBE_FANCY_ALIAS |
Mike Frysinger | 11353ae | 2007-01-24 14:34:35 +0000 | [diff] [blame] | 141 | bool |
Denis Vlasenko | 9305cdd | 2008-05-13 02:43:27 +0000 | [diff] [blame] | 142 | prompt "Fancy alias parsing" |
Rob Landley | bf30c69 | 2006-07-20 17:36:18 +0000 | [diff] [blame] | 143 | default y |
Mike Frysinger | 11353ae | 2007-01-24 14:34:35 +0000 | [diff] [blame] | 144 | depends on MODPROBE && FEATURE_2_6_MODULES |
Rob Landley | bf30c69 | 2006-07-20 17:36:18 +0000 | [diff] [blame] | 145 | 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 Vlasenko | 9ddc8d5 | 2008-05-18 14:39:43 +0000 | [diff] [blame] | 150 | config 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 Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 162 | comment "Options common to multiple modutils" |
Bernhard Reutner-Fischer | b85fb69 | 2008-05-27 10:55:34 +0000 | [diff] [blame] | 163 | depends on INSMOD || RMMOD || MODPROBE || LSMOD || DEPMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 164 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 165 | config FEATURE_CHECK_TAINTED_MODULE |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 166 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 167 | bool "Support tainted module checking with new kernels" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 168 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 169 | depends on INSMOD || LSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 170 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 171 | 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 McGrath | 759d7ec | 2003-09-03 00:42:58 +0000 | [diff] [blame] | 174 | This option is required to support GPLONLY modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 175 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 176 | config FEATURE_2_4_MODULES |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 177 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 178 | bool "Support version 2.2.x to 2.4.x Linux kernels" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 179 | default y |
Denis Vlasenko | 997aa11 | 2006-10-14 11:12:20 +0000 | [diff] [blame] | 180 | depends on INSMOD || RMMOD || MODPROBE |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 181 | help |
| 182 | Support module loading for 2.2.x and 2.4.x Linux kernels. |
| 183 | |
Bernhard Reutner-Fischer | 9474830 | 2008-05-27 08:41:32 +0000 | [diff] [blame] | 184 | Note: |
| 185 | This is automatically enabled if 2.6 modules are not enabled. |
| 186 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 187 | config FEATURE_2_6_MODULES |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 188 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 189 | bool "Support version 2.6.x Linux kernels" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 190 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 191 | depends on INSMOD || RMMOD || MODPROBE |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 192 | help |
| 193 | Support module loading for newer 2.6.x Linux kernels. |
| 194 | |
Bernhard Reutner-Fischer | b85fb69 | 2008-05-27 10:55:34 +0000 | [diff] [blame] | 195 | config DEFAULT_MODULES_DIR |
| 196 | # Simulate indentation |
| 197 | string "default directory containing modules" |
| 198 | default "/lib/modules" |
| 199 | depends on INSMOD || RMMOD || MODPROBE || DEPMOD |
| 200 | help |
| 201 | Directory that contains kernel modules. |
| 202 | Defaults to "/lib/modules" |
| 203 | |
| 204 | config DEFAULT_DEPMOD_FILE |
| 205 | # Simulate indentation |
| 206 | string "default name of modules.dep" |
| 207 | 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 Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 212 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 213 | config FEATURE_QUERY_MODULE_INTERFACE |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 214 | bool |
| 215 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 216 | depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 217 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 218 | |
| 219 | endmenu |
| 220 | |