blob: 18829681445399467e16d8a94999221bc29011b4 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
Kartik Agaram43b17b12018-05-31 22:15:55 -07003# see docs/Kconfig-language.txt.
Eric Andersenc9f20d92002-12-05 08:41:41 +00004#
5
Glenn L McGrath1b6dfa72003-03-30 13:57:26 +00006menu "Linux Module Utilities"
Eric Andersenc9f20d92002-12-05 08:41:41 +00007
Denys Vlasenko326edc32016-12-22 14:36:49 +01008config MODPROBE_SMALL
9 bool "Simplified modutils"
10 default y
Denys Vlasenko326edc32016-12-22 14:36:49 +010011 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020012 Build smaller (~1.5 kbytes), simplified module tools.
Denys Vlasenkodc7637d2017-02-01 01:22:37 +010013
Denys Vlasenko72089cf2017-07-21 09:50:55 +020014 This option by itself does not enable any applets -
15 you need to select applets individually below.
Denys Vlasenko326edc32016-12-22 14:36:49 +010016
Denys Vlasenko72089cf2017-07-21 09:50:55 +020017 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_).
Denys Vlasenko326edc32016-12-22 14:36:49 +010024
Denys Vlasenko72089cf2017-07-21 09:50:55 +020025 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.
Denys Vlasenko326edc32016-12-22 14:36:49 +010029
Denys Vlasenko72089cf2017-07-21 09:50:55 +020030 NB: modules.dep.bb file format is not compatible
31 with modules.dep file as created/used by standard module tools.
Denys Vlasenko326edc32016-12-22 14:36:49 +010032
Denys Vlasenko72089cf2017-07-21 09:50:55 +020033 Additional module parameters can be stored in
34 /etc/modules/$module_name files.
Denys Vlasenko326edc32016-12-22 14:36:49 +010035
Pascal Bellard22bdf902010-06-06 04:55:13 +020036INSERT
37
Rob Landley762bb622005-12-11 20:20:05 +000038comment "Options common to multiple modutils"
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000039
Kang-Che Sungb1d6a2c2017-01-31 21:09:17 +080040config FEATURE_CMDLINE_MODULE_OPTIONS
41 bool "Accept module options on modprobe command line"
42 default y
43 depends on INSMOD || MODPROBE
44 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020045 Allow insmod and modprobe take module options from the applets'
46 command line.
Kang-Che Sungb1d6a2c2017-01-31 21:09:17 +080047
Kang-Che Sung415cc422017-02-01 19:43:54 +080048config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
49 bool "Skip loading of already loaded modules"
50 default y
51 depends on MODPROBE_SMALL && (DEPMOD || INSMOD || MODPROBE)
52 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020053 Check if the module is already loaded.
Kang-Che Sung415cc422017-02-01 19:43:54 +080054
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000055config FEATURE_2_4_MODULES
56 bool "Support version 2.2/2.4 Linux kernels"
57 default n
Kang-Che Sung415cc422017-02-01 19:43:54 +080058 depends on (INSMOD || LSMOD || MODPROBE || RMMOD) && !MODPROBE_SMALL
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000059 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020060 Support module loading for 2.2.x and 2.4.x Linux kernels.
61 This increases size considerably. Say N unless you plan
62 to run ancient kernels.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000063
64config FEATURE_INSMOD_VERSION_CHECKING
65 bool "Enable module version checking"
66 default n
67 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
68 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020069 Support checking of versions for modules. This is used to
70 ensure that the kernel and module are made for each other.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000071
72config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
73 bool "Add module symbols to kernel symbol table"
74 default n
75 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
76 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020077 By adding module symbols to the kernel symbol table, Oops messages
78 occurring within kernel modules can be properly debugged. By enabling
79 this feature, module symbols will always be added to the kernel symbol
80 table for proper debugging support. If you are not interested in
81 Oops messages from kernel modules, say N.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000082
83config FEATURE_INSMOD_LOADINKMEM
84 bool "In kernel memory optimization (uClinux only)"
85 default n
86 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
87 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020088 This is a special uClinux only memory optimization that lets insmod
89 load the specified kernel module directly into kernel space, reducing
90 memory usage by preventing the need for two copies of the module
91 being loaded into memory.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000092
93config FEATURE_INSMOD_LOAD_MAP
94 bool "Enable insmod load map (-m) option"
95 default n
96 depends on FEATURE_2_4_MODULES && INSMOD
97 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +020098 Enabling this, one would be able to get a load map
99 output on stdout. This makes kernel module debugging
100 easier.
101 If you don't plan to debug kernel modules, you
102 don't need this option.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000103
104config FEATURE_INSMOD_LOAD_MAP_FULL
105 bool "Symbols in load map"
106 default y
Kang-Che Sung415cc422017-02-01 19:43:54 +0800107 depends on FEATURE_INSMOD_LOAD_MAP
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000108 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200109 Without this option, -m will only output section
110 load map. With this option, -m will also output
111 symbols load map.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000112
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000113config FEATURE_CHECK_TAINTED_MODULE
Rob Landley2ec922e2006-04-13 23:22:16 +0000114 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000115 default y
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000116 depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
Eric Andersenc9f20d92002-12-05 08:41:41 +0000117 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200118 Support checking for tainted modules. These are usually binary
119 only modules that will make the linux-kernel list ignore your
120 support request.
121 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122
Kang-Che Sung415cc422017-02-01 19:43:54 +0800123config FEATURE_INSMOD_TRY_MMAP
124 bool "Try to load module from a mmap'ed area"
125 default n
126 depends on (INSMOD || MODPROBE) && !MODPROBE_SMALL
127 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200128 This option causes module loading code to try to mmap
129 module first. If it does not work (for example,
130 it does not work for compressed modules), module will be read
131 (and unpacked if needed) into a memory block allocated by malloc.
Kang-Che Sung415cc422017-02-01 19:43:54 +0800132
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200133 The only case when mmap works but malloc does not is when
134 you are trying to load a big module on a very memory-constrained
135 machine. Malloc will momentarily need 2x as much memory as mmap.
Kang-Che Sung415cc422017-02-01 19:43:54 +0800136
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200137 Choosing N saves about 250 bytes of code (on 32-bit x86).
Kang-Che Sung415cc422017-02-01 19:43:54 +0800138
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000139config FEATURE_MODUTILS_ALIAS
Denys Vlasenkof5604222017-01-10 14:58:54 +0100140 bool "Support module.aliases file"
Rob Landley762bb622005-12-11 20:20:05 +0000141 default y
Kang-Che Sung065e9882017-01-30 19:14:50 +0100142 depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
Rob Landley762bb622005-12-11 20:20:05 +0000143 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200144 Generate and parse modules.alias containing aliases for bus
145 identifiers:
146 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
Rob Landley762bb622005-12-11 20:20:05 +0000147
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200148 and aliases for logical modules names e.g.:
149 alias padlock_aes aes
150 alias aes_i586 aes
151 alias aes_generic aes
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000152
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200153 Say Y if unsure.
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000154
155config FEATURE_MODUTILS_SYMBOLS
Denys Vlasenkof5604222017-01-10 14:58:54 +0100156 bool "Support module.symbols file"
Rob Landley762bb622005-12-11 20:20:05 +0000157 default y
Kang-Che Sung065e9882017-01-30 19:14:50 +0100158 depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
Rob Landley762bb622005-12-11 20:20:05 +0000159 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200160 Generate and parse modules.symbols containing aliases for
161 symbol_request() kernel calls, such as:
162 alias symbol:usb_sg_init usbcore
Rob Landley762bb622005-12-11 20:20:05 +0000163
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200164 Say Y if unsure.
Rob Landley762bb622005-12-11 20:20:05 +0000165
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000166config DEFAULT_MODULES_DIR
167 string "Default directory containing modules"
168 default "/lib/modules"
Kang-Che Sung4ae658f2017-02-05 19:02:34 +0100169 depends on DEPMOD || MODPROBE || MODINFO
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000170 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200171 Directory that contains kernel modules.
172 Defaults to "/lib/modules"
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000173
174config DEFAULT_DEPMOD_FILE
175 string "Default name of modules.dep"
176 default "modules.dep"
Kang-Che Sung4ae658f2017-02-05 19:02:34 +0100177 depends on DEPMOD || MODPROBE || MODINFO
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000178 help
Denys Vlasenko72089cf2017-07-21 09:50:55 +0200179 Filename that contains kernel modules dependencies.
180 Defaults to "modules.dep".
181 If you configured the "simplified modutils" (MODPROBE_SMALL), a
182 ".bb" suffix will be added after this name. Do not specify ".bb"
183 here unless you intend your depmod or modprobe to work on
184 "modules.dep.bb.bb" or such.
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000185
Eric Andersenc9f20d92002-12-05 08:41:41 +0000186endmenu