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