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 | |
Pascal Bellard | 22bdf90 | 2010-06-06 04:55:13 +0200 | [diff] [blame] | 8 | INSERT |
| 9 | |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 10 | config MODPROBE_SMALL |
| 11 | bool "Simplified modutils" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 12 | default y |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 13 | select PLATFORM_LINUX |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 14 | help |
| 15 | Simplified modutils. |
| 16 | |
Denis Vlasenko | 0e2c93f | 2008-07-10 14:16:11 +0000 | [diff] [blame] | 17 | With this option modprobe does not require modules.dep file |
| 18 | and does not use /etc/modules.conf file. |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 19 | It scans module files in /lib/modules/`uname -r` and |
| 20 | determines dependencies and module alias names on the fly. |
| 21 | This may make module loading slower, most notably |
| 22 | when one needs to load module by alias (this requires |
| 23 | scanning through module _bodies_). |
| 24 | |
Denis Vlasenko | 0e2c93f | 2008-07-10 14:16:11 +0000 | [diff] [blame] | 25 | At the first attempt to load a module by alias modprobe |
| 26 | will try to generate modules.dep.bb file in order to speed up |
| 27 | future loads by alias. Failure to do so (read-only /lib/modules, |
| 28 | etc) is not reported, and future modprobes will be slow too. |
| 29 | |
| 30 | NB: modules.dep.bb file format is not compatible |
| 31 | with modules.dep file as created/used by standard module tools. |
| 32 | |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 33 | Additional module parameters can be stored in |
| 34 | /etc/modules/$module_name files. |
| 35 | |
| 36 | Apart from modprobe, other utilities are also provided: |
| 37 | - insmod is an alias to modprobe |
| 38 | - rmmod is an alias to modprobe -r |
Denis Vlasenko | 0e2c93f | 2008-07-10 14:16:11 +0000 | [diff] [blame] | 39 | - depmod generates modules.dep.bb |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 40 | |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 41 | config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE |
Denis Vlasenko | f62ab2d | 2008-07-09 09:50:33 +0000 | [diff] [blame] | 42 | bool "Accept module options on modprobe command line" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 43 | default y |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 44 | depends on MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 45 | select PLATFORM_LINUX |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 46 | help |
| 47 | Allow insmod and modprobe take module options from command line. |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 48 | |
| 49 | config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED |
| 50 | bool "Skip loading of already loaded modules" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 51 | default y |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 52 | depends on MODPROBE_SMALL |
| 53 | help |
| 54 | Check if the module is already loaded. |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 55 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 56 | config INSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 57 | bool "insmod" |
| 58 | default n |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 59 | depends on !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 60 | select PLATFORM_LINUX |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 61 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 62 | insmod is used to load specified modules in the running kernel. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 63 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 64 | config RMMOD |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 65 | bool "rmmod" |
| 66 | default n |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 67 | depends on !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 68 | select PLATFORM_LINUX |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 69 | help |
| 70 | rmmod is used to unload specified modules from the kernel. |
| 71 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 72 | config LSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 73 | bool "lsmod" |
| 74 | default n |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 75 | depends on !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 76 | select PLATFORM_LINUX |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 77 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 78 | lsmod is used to display a list of loaded modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 79 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 80 | config FEATURE_LSMOD_PRETTY_2_6_OUTPUT |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 81 | bool "Pretty output" |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 82 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 83 | depends on LSMOD |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 84 | select PLATFORM_LINUX |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 85 | help |
Tim Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 86 | This option makes output format of lsmod adjusted to |
Rob Landley | 4f65360 | 2005-05-04 23:55:06 +0000 | [diff] [blame] | 87 | the format of module-init-tools for Linux kernel 2.6. |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 88 | Increases size somewhat. |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 89 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 90 | config MODPROBE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 91 | bool "modprobe" |
| 92 | default n |
Denis Vlasenko | 671691c | 2008-07-04 10:25:44 +0000 | [diff] [blame] | 93 | depends on !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 94 | select PLATFORM_LINUX |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 95 | help |
Mike Frysinger | fa6c484 | 2006-05-26 01:48:17 +0000 | [diff] [blame] | 96 | Handle the loading of modules, and their dependencies on a high |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 97 | level. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 98 | |
Denis Vlasenko | 9ddc8d5 | 2008-05-18 14:39:43 +0000 | [diff] [blame] | 99 | config FEATURE_MODPROBE_BLACKLIST |
Denys Vlasenko | bcbd37d | 2009-06-18 13:23:58 +0200 | [diff] [blame] | 100 | bool "Blacklist support" |
Denis Vlasenko | 9ddc8d5 | 2008-05-18 14:39:43 +0000 | [diff] [blame] | 101 | default n |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 102 | depends on MODPROBE |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 103 | select PLATFORM_LINUX |
Denis Vlasenko | 9ddc8d5 | 2008-05-18 14:39:43 +0000 | [diff] [blame] | 104 | help |
Denis Vlasenko | f45c4f4 | 2008-06-16 04:09:25 +0000 | [diff] [blame] | 105 | Say 'y' here to enable support for the 'blacklist' command in |
| 106 | modprobe.conf. This prevents the alias resolver to resolve |
| 107 | blacklisted modules. This is useful if you want to prevent your |
| 108 | hardware autodetection scripts to load modules like evdev, frame |
Denis Vlasenko | 9ddc8d5 | 2008-05-18 14:39:43 +0000 | [diff] [blame] | 109 | buffer drivers etc. |
| 110 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 111 | config DEPMOD |
| 112 | bool "depmod" |
| 113 | default n |
| 114 | depends on !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 115 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 116 | help |
| 117 | depmod generates modules.dep (and potentially modules.alias |
| 118 | and modules.symbols) that contain dependency information |
| 119 | for modprobe. |
| 120 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 121 | comment "Options common to multiple modutils" |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 122 | |
| 123 | config FEATURE_2_4_MODULES |
| 124 | bool "Support version 2.2/2.4 Linux kernels" |
| 125 | default n |
| 126 | depends on INSMOD || RMMOD || LSMOD |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 127 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 128 | help |
| 129 | Support module loading for 2.2.x and 2.4.x Linux kernels. |
| 130 | This increases size considerably. Say N unless you plan |
| 131 | to run ancient kernels. |
| 132 | |
Denys Vlasenko | 77c066e | 2009-10-25 04:35:22 +0100 | [diff] [blame] | 133 | config FEATURE_INSMOD_TRY_MMAP |
| 134 | bool "Try to load module from a mmap'ed area" |
| 135 | default n |
| 136 | depends on INSMOD || MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 137 | select PLATFORM_LINUX |
Denys Vlasenko | 77c066e | 2009-10-25 04:35:22 +0100 | [diff] [blame] | 138 | help |
| 139 | This option causes module loading code to try to mmap |
| 140 | module first. If it does not work (for example, |
| 141 | it does not work for compressed modules), module will be read |
| 142 | (and unpacked if needed) into a memory block allocated by malloc. |
| 143 | |
| 144 | The only case when mmap works but malloc does not is when |
| 145 | you are trying to load a big module on a very memory-constrained |
| 146 | machine. Malloc will momentarily need 2x as much memory as mmap. |
| 147 | |
| 148 | Choosing N saves about 250 bytes of code (on 32-bit x86). |
| 149 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 150 | config FEATURE_INSMOD_VERSION_CHECKING |
| 151 | bool "Enable module version checking" |
| 152 | default n |
| 153 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 154 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 155 | help |
| 156 | Support checking of versions for modules. This is used to |
| 157 | ensure that the kernel and module are made for each other. |
| 158 | |
| 159 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
| 160 | bool "Add module symbols to kernel symbol table" |
| 161 | default n |
| 162 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 163 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 164 | help |
| 165 | By adding module symbols to the kernel symbol table, Oops messages |
| 166 | occuring within kernel modules can be properly debugged. By enabling |
| 167 | this feature, module symbols will always be added to the kernel symbol |
Denis Vlasenko | c574100 | 2009-03-05 09:26:17 +0000 | [diff] [blame] | 168 | table for proper debugging support. If you are not interested in |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 169 | Oops messages from kernel modules, say N. |
| 170 | |
| 171 | config FEATURE_INSMOD_LOADINKMEM |
| 172 | bool "In kernel memory optimization (uClinux only)" |
| 173 | default n |
| 174 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 175 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 176 | help |
| 177 | This is a special uClinux only memory optimization that lets insmod |
| 178 | load the specified kernel module directly into kernel space, reducing |
| 179 | memory usage by preventing the need for two copies of the module |
| 180 | being loaded into memory. |
| 181 | |
| 182 | config FEATURE_INSMOD_LOAD_MAP |
| 183 | bool "Enable insmod load map (-m) option" |
| 184 | default n |
| 185 | depends on FEATURE_2_4_MODULES && INSMOD |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 186 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 187 | help |
| 188 | Enabling this, one would be able to get a load map |
| 189 | output on stdout. This makes kernel module debugging |
| 190 | easier. |
| 191 | If you don't plan to debug kernel modules, you |
| 192 | don't need this option. |
| 193 | |
| 194 | config FEATURE_INSMOD_LOAD_MAP_FULL |
| 195 | bool "Symbols in load map" |
| 196 | default y |
| 197 | depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 198 | select PLATFORM_LINUX |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 199 | help |
| 200 | Without this option, -m will only output section |
| 201 | load map. With this option, -m will also output |
| 202 | symbols load map. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 203 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 204 | config FEATURE_CHECK_TAINTED_MODULE |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 205 | bool "Support tainted module checking with new kernels" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 206 | default y |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 207 | depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 208 | select PLATFORM_LINUX |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 209 | help |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 210 | Support checking for tainted modules. These are usually binary |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 211 | only modules that will make the linux-kernel list ignore your |
| 212 | support request. |
Glenn L McGrath | 759d7ec | 2003-09-03 00:42:58 +0000 | [diff] [blame] | 213 | This option is required to support GPLONLY modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 214 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 215 | config FEATURE_MODUTILS_ALIAS |
| 216 | bool "Support for module.aliases file" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 217 | default y |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 218 | depends on DEPMOD || MODPROBE |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 219 | select PLATFORM_LINUX |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 220 | help |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 221 | Generate and parse modules.alias containing aliases for bus |
| 222 | identifiers: |
| 223 | alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 224 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 225 | and aliases for logical modules names e.g.: |
| 226 | alias padlock_aes aes |
| 227 | alias aes_i586 aes |
| 228 | alias aes_generic aes |
Bernhard Reutner-Fischer | 9474830 | 2008-05-27 08:41:32 +0000 | [diff] [blame] | 229 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 230 | Say Y if unsure. |
| 231 | |
| 232 | config FEATURE_MODUTILS_SYMBOLS |
| 233 | bool "Support for module.symbols file" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 234 | default y |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 235 | depends on DEPMOD || MODPROBE |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 236 | select PLATFORM_LINUX |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 237 | help |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 238 | Generate and parse modules.symbols containing aliases for |
| 239 | symbol_request() kernel calls, such as: |
| 240 | alias symbol:usb_sg_init usbcore |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 241 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 242 | Say Y if unsure. |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 243 | |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 244 | config DEFAULT_MODULES_DIR |
| 245 | string "Default directory containing modules" |
| 246 | default "/lib/modules" |
Lauri Kasanen | f646400 | 2010-06-26 13:41:35 +0300 | [diff] [blame] | 247 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 248 | help |
| 249 | Directory that contains kernel modules. |
| 250 | Defaults to "/lib/modules" |
| 251 | |
| 252 | config DEFAULT_DEPMOD_FILE |
| 253 | string "Default name of modules.dep" |
| 254 | default "modules.dep" |
Lauri Kasanen | f646400 | 2010-06-26 13:41:35 +0300 | [diff] [blame] | 255 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 256 | help |
| 257 | Filename that contains kernel modules dependencies. |
| 258 | Defaults to "modules.dep" |
| 259 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 260 | endmenu |