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 | |
Denys Vlasenko | 326edc3 | 2016-12-22 14:36:49 +0100 | [diff] [blame] | 8 | config MODPROBE_SMALL |
| 9 | bool "Simplified modutils" |
| 10 | default y |
Denys Vlasenko | 326edc3 | 2016-12-22 14:36:49 +0100 | [diff] [blame] | 11 | help |
Denys Vlasenko | dc7637d | 2017-02-01 01:22:37 +0100 | [diff] [blame] | 12 | Build smaller (~1.5 kbytes), simplified module tools. |
| 13 | |
| 14 | This option by itself does not enable any applets - |
| 15 | you need to select applets individually below. |
Denys Vlasenko | 326edc3 | 2016-12-22 14:36:49 +0100 | [diff] [blame] | 16 | |
| 17 | With this option modprobe does not require modules.dep file |
| 18 | and does not use /etc/modules.conf file. |
| 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 | |
| 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 | |
| 33 | Additional module parameters can be stored in |
| 34 | /etc/modules/$module_name files. |
| 35 | |
Pascal Bellard | 22bdf90 | 2010-06-06 04:55:13 +0200 | [diff] [blame] | 36 | INSERT |
| 37 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 38 | comment "Options common to multiple modutils" |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 39 | |
Kang-Che Sung | b1d6a2c | 2017-01-31 21:09:17 +0800 | [diff] [blame] | 40 | config FEATURE_CMDLINE_MODULE_OPTIONS |
| 41 | bool "Accept module options on modprobe command line" |
| 42 | default y |
| 43 | depends on INSMOD || MODPROBE |
| 44 | help |
| 45 | Allow insmod and modprobe take module options from the applets' |
| 46 | command line. |
| 47 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 48 | config FEATURE_2_4_MODULES |
| 49 | bool "Support version 2.2/2.4 Linux kernels" |
| 50 | default n |
Kang-Che Sung | 065e988 | 2017-01-30 19:14:50 +0100 | [diff] [blame] | 51 | depends on (INSMOD || RMMOD || LSMOD) && !MODPROBE_SMALL |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 52 | help |
| 53 | Support module loading for 2.2.x and 2.4.x Linux kernels. |
| 54 | This increases size considerably. Say N unless you plan |
| 55 | to run ancient kernels. |
| 56 | |
Denys Vlasenko | 77c066e | 2009-10-25 04:35:22 +0100 | [diff] [blame] | 57 | config FEATURE_INSMOD_TRY_MMAP |
| 58 | bool "Try to load module from a mmap'ed area" |
| 59 | default n |
Kang-Che Sung | 065e988 | 2017-01-30 19:14:50 +0100 | [diff] [blame] | 60 | depends on INSMOD && !MODPROBE_SMALL |
Denys Vlasenko | 77c066e | 2009-10-25 04:35:22 +0100 | [diff] [blame] | 61 | help |
| 62 | This option causes module loading code to try to mmap |
| 63 | module first. If it does not work (for example, |
| 64 | it does not work for compressed modules), module will be read |
| 65 | (and unpacked if needed) into a memory block allocated by malloc. |
| 66 | |
| 67 | The only case when mmap works but malloc does not is when |
| 68 | you are trying to load a big module on a very memory-constrained |
| 69 | machine. Malloc will momentarily need 2x as much memory as mmap. |
| 70 | |
| 71 | Choosing N saves about 250 bytes of code (on 32-bit x86). |
| 72 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 73 | config FEATURE_INSMOD_VERSION_CHECKING |
| 74 | bool "Enable module version checking" |
| 75 | default n |
| 76 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 77 | help |
| 78 | Support checking of versions for modules. This is used to |
| 79 | ensure that the kernel and module are made for each other. |
| 80 | |
| 81 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
| 82 | bool "Add module symbols to kernel symbol table" |
| 83 | default n |
| 84 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 85 | help |
| 86 | By adding module symbols to the kernel symbol table, Oops messages |
| 87 | occuring within kernel modules can be properly debugged. By enabling |
| 88 | this feature, module symbols will always be added to the kernel symbol |
Denis Vlasenko | c574100 | 2009-03-05 09:26:17 +0000 | [diff] [blame] | 89 | table for proper debugging support. If you are not interested in |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 90 | Oops messages from kernel modules, say N. |
| 91 | |
| 92 | config FEATURE_INSMOD_LOADINKMEM |
| 93 | bool "In kernel memory optimization (uClinux only)" |
| 94 | default n |
| 95 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 96 | help |
| 97 | This is a special uClinux only memory optimization that lets insmod |
| 98 | load the specified kernel module directly into kernel space, reducing |
| 99 | memory usage by preventing the need for two copies of the module |
| 100 | being loaded into memory. |
| 101 | |
| 102 | config FEATURE_INSMOD_LOAD_MAP |
| 103 | bool "Enable insmod load map (-m) option" |
| 104 | default n |
| 105 | depends on FEATURE_2_4_MODULES && INSMOD |
| 106 | help |
| 107 | Enabling this, one would be able to get a load map |
| 108 | output on stdout. This makes kernel module debugging |
| 109 | easier. |
| 110 | If you don't plan to debug kernel modules, you |
| 111 | don't need this option. |
| 112 | |
| 113 | config FEATURE_INSMOD_LOAD_MAP_FULL |
| 114 | bool "Symbols in load map" |
| 115 | default y |
| 116 | depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL |
| 117 | help |
| 118 | Without this option, -m will only output section |
| 119 | load map. With this option, -m will also output |
| 120 | symbols load map. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 121 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 122 | config FEATURE_CHECK_TAINTED_MODULE |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 123 | bool "Support tainted module checking with new kernels" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 124 | default y |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 125 | depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 126 | help |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 127 | Support checking for tainted modules. These are usually binary |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 128 | only modules that will make the linux-kernel list ignore your |
| 129 | support request. |
Glenn L McGrath | 759d7ec | 2003-09-03 00:42:58 +0000 | [diff] [blame] | 130 | This option is required to support GPLONLY modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 131 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 132 | config FEATURE_MODUTILS_ALIAS |
Denys Vlasenko | f560422 | 2017-01-10 14:58:54 +0100 | [diff] [blame] | 133 | bool "Support module.aliases file" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 134 | default y |
Kang-Che Sung | 065e988 | 2017-01-30 19:14:50 +0100 | [diff] [blame] | 135 | depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 136 | help |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 137 | Generate and parse modules.alias containing aliases for bus |
| 138 | identifiers: |
| 139 | alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 140 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 141 | and aliases for logical modules names e.g.: |
| 142 | alias padlock_aes aes |
| 143 | alias aes_i586 aes |
| 144 | alias aes_generic aes |
Bernhard Reutner-Fischer | 9474830 | 2008-05-27 08:41:32 +0000 | [diff] [blame] | 145 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 146 | Say Y if unsure. |
| 147 | |
| 148 | config FEATURE_MODUTILS_SYMBOLS |
Denys Vlasenko | f560422 | 2017-01-10 14:58:54 +0100 | [diff] [blame] | 149 | bool "Support module.symbols file" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 150 | default y |
Kang-Che Sung | 065e988 | 2017-01-30 19:14:50 +0100 | [diff] [blame] | 151 | depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 152 | help |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 153 | Generate and parse modules.symbols containing aliases for |
| 154 | symbol_request() kernel calls, such as: |
| 155 | alias symbol:usb_sg_init usbcore |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 156 | |
Denis Vlasenko | ba1315d | 2008-09-13 14:59:38 +0000 | [diff] [blame] | 157 | Say Y if unsure. |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 158 | |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 159 | config DEFAULT_MODULES_DIR |
| 160 | string "Default directory containing modules" |
| 161 | default "/lib/modules" |
Kang-Che Sung | 4ae658f | 2017-02-05 19:02:34 +0100 | [diff] [blame^] | 162 | depends on DEPMOD || MODPROBE || MODINFO |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 163 | help |
| 164 | Directory that contains kernel modules. |
| 165 | Defaults to "/lib/modules" |
| 166 | |
| 167 | config DEFAULT_DEPMOD_FILE |
| 168 | string "Default name of modules.dep" |
| 169 | default "modules.dep" |
Kang-Che Sung | 4ae658f | 2017-02-05 19:02:34 +0100 | [diff] [blame^] | 170 | depends on DEPMOD || MODPROBE || MODINFO |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 171 | help |
| 172 | Filename that contains kernel modules dependencies. |
Kang-Che Sung | 4ae658f | 2017-02-05 19:02:34 +0100 | [diff] [blame^] | 173 | Defaults to "modules.dep". |
| 174 | If you configured the "simplified modutils" (MODPROBE_SMALL), a |
| 175 | ".bb" suffix will be added after this name. Do not specify ".bb" |
| 176 | here unless you intend your depmod or modprobe to work on |
| 177 | "modules.dep.bb.bb" or such. |
Denis Vlasenko | e35af56 | 2009-01-31 14:22:24 +0000 | [diff] [blame] | 178 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 179 | endmenu |