blob: a9aa639936509e4258e248db3bf35db3e8e4f890 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
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
11 select PLATFORM_LINUX
12 help
Denys Vlasenkodc7637d2017-02-01 01:22:37 +010013 Build smaller (~1.5 kbytes), simplified module tools.
14
15 This option by itself does not enable any applets -
16 you need to select applets individually below.
Denys Vlasenko326edc32016-12-22 14:36:49 +010017
18 With this option modprobe does not require modules.dep file
19 and does not use /etc/modules.conf file.
20 It scans module files in /lib/modules/`uname -r` and
21 determines dependencies and module alias names on the fly.
22 This may make module loading slower, most notably
23 when one needs to load module by alias (this requires
24 scanning through module _bodies_).
25
26 At the first attempt to load a module by alias modprobe
27 will try to generate modules.dep.bb file in order to speed up
28 future loads by alias. Failure to do so (read-only /lib/modules,
29 etc) is not reported, and future modprobes will be slow too.
30
31 NB: modules.dep.bb file format is not compatible
32 with modules.dep file as created/used by standard module tools.
33
34 Additional module parameters can be stored in
35 /etc/modules/$module_name files.
36
Pascal Bellard22bdf902010-06-06 04:55:13 +020037INSERT
38
Rob Landley762bb622005-12-11 20:20:05 +000039comment "Options common to multiple modutils"
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000040
41config FEATURE_2_4_MODULES
42 bool "Support version 2.2/2.4 Linux kernels"
43 default n
Kang-Che Sung065e9882017-01-30 19:14:50 +010044 depends on (INSMOD || RMMOD || LSMOD) && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010045 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000046 help
47 Support module loading for 2.2.x and 2.4.x Linux kernels.
48 This increases size considerably. Say N unless you plan
49 to run ancient kernels.
50
Denys Vlasenko77c066e2009-10-25 04:35:22 +010051config FEATURE_INSMOD_TRY_MMAP
52 bool "Try to load module from a mmap'ed area"
53 default n
Kang-Che Sung065e9882017-01-30 19:14:50 +010054 depends on INSMOD && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010055 select PLATFORM_LINUX
Denys Vlasenko77c066e2009-10-25 04:35:22 +010056 help
57 This option causes module loading code to try to mmap
58 module first. If it does not work (for example,
59 it does not work for compressed modules), module will be read
60 (and unpacked if needed) into a memory block allocated by malloc.
61
62 The only case when mmap works but malloc does not is when
63 you are trying to load a big module on a very memory-constrained
64 machine. Malloc will momentarily need 2x as much memory as mmap.
65
66 Choosing N saves about 250 bytes of code (on 32-bit x86).
67
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000068config FEATURE_INSMOD_VERSION_CHECKING
69 bool "Enable module version checking"
70 default n
71 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010072 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000073 help
74 Support checking of versions for modules. This is used to
75 ensure that the kernel and module are made for each other.
76
77config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
78 bool "Add module symbols to kernel symbol table"
79 default n
80 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010081 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000082 help
83 By adding module symbols to the kernel symbol table, Oops messages
84 occuring within kernel modules can be properly debugged. By enabling
85 this feature, module symbols will always be added to the kernel symbol
Denis Vlasenkoc5741002009-03-05 09:26:17 +000086 table for proper debugging support. If you are not interested in
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000087 Oops messages from kernel modules, say N.
88
89config FEATURE_INSMOD_LOADINKMEM
90 bool "In kernel memory optimization (uClinux only)"
91 default n
92 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010093 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +000094 help
95 This is a special uClinux only memory optimization that lets insmod
96 load the specified kernel module directly into kernel space, reducing
97 memory usage by preventing the need for two copies of the module
98 being loaded into memory.
99
100config FEATURE_INSMOD_LOAD_MAP
101 bool "Enable insmod load map (-m) option"
102 default n
103 depends on FEATURE_2_4_MODULES && INSMOD
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100104 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000105 help
106 Enabling this, one would be able to get a load map
107 output on stdout. This makes kernel module debugging
108 easier.
109 If you don't plan to debug kernel modules, you
110 don't need this option.
111
112config FEATURE_INSMOD_LOAD_MAP_FULL
113 bool "Symbols in load map"
114 default y
115 depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100116 select PLATFORM_LINUX
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000117 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 Andersenc9f20d92002-12-05 08:41:41 +0000121
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000122config FEATURE_CHECK_TAINTED_MODULE
Rob Landley2ec922e2006-04-13 23:22:16 +0000123 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000124 default y
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000125 depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100126 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000127 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000128 Support checking for tainted modules. These are usually binary
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000129 only modules that will make the linux-kernel list ignore your
130 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000131 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000132
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000133config FEATURE_MODUTILS_ALIAS
Denys Vlasenkof5604222017-01-10 14:58:54 +0100134 bool "Support module.aliases file"
Rob Landley762bb622005-12-11 20:20:05 +0000135 default y
Kang-Che Sung065e9882017-01-30 19:14:50 +0100136 depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100137 select PLATFORM_LINUX
Rob Landley762bb622005-12-11 20:20:05 +0000138 help
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000139 Generate and parse modules.alias containing aliases for bus
140 identifiers:
141 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
Rob Landley762bb622005-12-11 20:20:05 +0000142
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000143 and aliases for logical modules names e.g.:
144 alias padlock_aes aes
145 alias aes_i586 aes
146 alias aes_generic aes
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000147
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000148 Say Y if unsure.
149
150config FEATURE_MODUTILS_SYMBOLS
Denys Vlasenkof5604222017-01-10 14:58:54 +0100151 bool "Support module.symbols file"
Rob Landley762bb622005-12-11 20:20:05 +0000152 default y
Kang-Che Sung065e9882017-01-30 19:14:50 +0100153 depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100154 select PLATFORM_LINUX
Rob Landley762bb622005-12-11 20:20:05 +0000155 help
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000156 Generate and parse modules.symbols containing aliases for
157 symbol_request() kernel calls, such as:
158 alias symbol:usb_sg_init usbcore
Rob Landley762bb622005-12-11 20:20:05 +0000159
Denis Vlasenkoba1315d2008-09-13 14:59:38 +0000160 Say Y if unsure.
Rob Landley762bb622005-12-11 20:20:05 +0000161
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000162config DEFAULT_MODULES_DIR
163 string "Default directory containing modules"
164 default "/lib/modules"
Lauri Kasanenf6464002010-06-26 13:41:35 +0300165 depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000166 help
167 Directory that contains kernel modules.
168 Defaults to "/lib/modules"
169
170config DEFAULT_DEPMOD_FILE
171 string "Default name of modules.dep"
172 default "modules.dep"
Lauri Kasanenf6464002010-06-26 13:41:35 +0300173 depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
Denis Vlasenkoe35af562009-01-31 14:22:24 +0000174 help
175 Filename that contains kernel modules dependencies.
176 Defaults to "modules.dep"
177
Eric Andersenc9f20d92002-12-05 08:41:41 +0000178endmenu