blob: e3538081ea8cf16996bd4334e13f21d1c19c61a3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001# DO NOT EDIT. This file is generated from Config.src
2#
3# For a description of the syntax of this configuration file,
4# see docs/Kconfig-language.txt.
5#
6
7menu "Linux Module Utilities"
8
9config BUSYBOX_CONFIG_MODPROBE_SMALL
10 bool "Simplified modutils"
11 default BUSYBOX_DEFAULT_MODPROBE_SMALL
12 help
13 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.
17
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
37config BUSYBOX_CONFIG_DEPMOD
38 bool "depmod (27 kb)"
39 default BUSYBOX_DEFAULT_DEPMOD
40 help
41 depmod generates modules.dep (and potentially modules.alias
42 and modules.symbols) that contain dependency information
43 for modprobe.
44config BUSYBOX_CONFIG_INSMOD
45 bool "insmod (22 kb)"
46 default BUSYBOX_DEFAULT_INSMOD
47 help
48 insmod is used to load specified modules in the running kernel.
49config BUSYBOX_CONFIG_LSMOD
50 bool "lsmod (1.9 kb)"
51 default BUSYBOX_DEFAULT_LSMOD
52 help
53 lsmod is used to display a list of loaded modules.
54
55config BUSYBOX_CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT
56 bool "Pretty output"
57 default BUSYBOX_DEFAULT_FEATURE_LSMOD_PRETTY_2_6_OUTPUT
58 depends on BUSYBOX_CONFIG_LSMOD && !BUSYBOX_CONFIG_MODPROBE_SMALL
59 help
60 This option makes output format of lsmod adjusted to
61 the format of module-init-tools for Linux kernel 2.6.
62 Increases size somewhat.
63config BUSYBOX_CONFIG_MODINFO
64 bool "modinfo (24 kb)"
65 default BUSYBOX_DEFAULT_MODINFO
66 help
67 Show information about a Linux Kernel module
68config BUSYBOX_CONFIG_MODPROBE
69 bool "modprobe (28 kb)"
70 default BUSYBOX_DEFAULT_MODPROBE
71 help
72 Handle the loading of modules, and their dependencies on a high
73 level.
74
75config BUSYBOX_CONFIG_FEATURE_MODPROBE_BLACKLIST
76 bool "Blacklist support"
77 default BUSYBOX_DEFAULT_FEATURE_MODPROBE_BLACKLIST
78 depends on BUSYBOX_CONFIG_MODPROBE && !BUSYBOX_CONFIG_MODPROBE_SMALL
79 help
80 Say 'y' here to enable support for the 'blacklist' command in
81 modprobe.conf. This prevents the alias resolver to resolve
82 blacklisted modules. This is useful if you want to prevent your
83 hardware autodetection scripts to load modules like evdev, frame
84 buffer drivers etc.
85config BUSYBOX_CONFIG_RMMOD
86 bool "rmmod (3.3 kb)"
87 default BUSYBOX_DEFAULT_RMMOD
88 help
89 rmmod is used to unload specified modules from the kernel.
90
91comment "Options common to multiple modutils"
92
93config BUSYBOX_CONFIG_FEATURE_CMDLINE_MODULE_OPTIONS
94 bool "Accept module options on modprobe command line"
95 default BUSYBOX_DEFAULT_FEATURE_CMDLINE_MODULE_OPTIONS
96 depends on BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE
97 help
98 Allow insmod and modprobe take module options from the applets'
99 command line.
100
101config BUSYBOX_CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
102 bool "Skip loading of already loaded modules"
103 default BUSYBOX_DEFAULT_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
104 depends on BUSYBOX_CONFIG_MODPROBE_SMALL && (BUSYBOX_CONFIG_DEPMOD || BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE)
105 help
106 Check if the module is already loaded.
107
108config BUSYBOX_CONFIG_FEATURE_2_4_MODULES
109 bool "Support version 2.2/2.4 Linux kernels"
110 default BUSYBOX_DEFAULT_FEATURE_2_4_MODULES
111 depends on (BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_LSMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_RMMOD) && !BUSYBOX_CONFIG_MODPROBE_SMALL
112 help
113 Support module loading for 2.2.x and 2.4.x Linux kernels.
114 This increases size considerably. Say N unless you plan
115 to run ancient kernels.
116
117config BUSYBOX_CONFIG_FEATURE_INSMOD_VERSION_CHECKING
118 bool "Enable module version checking"
119 default BUSYBOX_DEFAULT_FEATURE_INSMOD_VERSION_CHECKING
120 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && (BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE)
121 help
122 Support checking of versions for modules. This is used to
123 ensure that the kernel and module are made for each other.
124
125config BUSYBOX_CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS
126 bool "Add module symbols to kernel symbol table"
127 default BUSYBOX_DEFAULT_FEATURE_INSMOD_KSYMOOPS_SYMBOLS
128 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && (BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE)
129 help
130 By adding module symbols to the kernel symbol table, Oops messages
131 occurring within kernel modules can be properly debugged. By enabling
132 this feature, module symbols will always be added to the kernel symbol
133 table for proper debugging support. If you are not interested in
134 Oops messages from kernel modules, say N.
135
136config BUSYBOX_CONFIG_FEATURE_INSMOD_LOADINKMEM
137 bool "In kernel memory optimization (uClinux only)"
138 default BUSYBOX_DEFAULT_FEATURE_INSMOD_LOADINKMEM
139 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && (BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE)
140 help
141 This is a special uClinux only memory optimization that lets insmod
142 load the specified kernel module directly into kernel space, reducing
143 memory usage by preventing the need for two copies of the module
144 being loaded into memory.
145
146config BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP
147 bool "Enable insmod load map (-m) option"
148 default BUSYBOX_DEFAULT_FEATURE_INSMOD_LOAD_MAP
149 depends on BUSYBOX_CONFIG_FEATURE_2_4_MODULES && BUSYBOX_CONFIG_INSMOD
150 help
151 Enabling this, one would be able to get a load map
152 output on stdout. This makes kernel module debugging
153 easier.
154 If you don't plan to debug kernel modules, you
155 don't need this option.
156
157config BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL
158 bool "Symbols in load map"
159 default BUSYBOX_DEFAULT_FEATURE_INSMOD_LOAD_MAP_FULL
160 depends on BUSYBOX_CONFIG_FEATURE_INSMOD_LOAD_MAP
161 help
162 Without this option, -m will only output section
163 load map. With this option, -m will also output
164 symbols load map.
165
166config BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE
167 bool "Support tainted module checking with new kernels"
168 default BUSYBOX_DEFAULT_FEATURE_CHECK_TAINTED_MODULE
169 depends on (BUSYBOX_CONFIG_LSMOD || BUSYBOX_CONFIG_FEATURE_2_4_MODULES) && !BUSYBOX_CONFIG_MODPROBE_SMALL
170 help
171 Support checking for tainted modules. These are usually binary
172 only modules that will make the linux-kernel list ignore your
173 support request.
174 This option is required to support GPLONLY modules.
175
176config BUSYBOX_CONFIG_FEATURE_INSMOD_TRY_MMAP
177 bool "Try to load module from a mmap'ed area"
178 default BUSYBOX_DEFAULT_FEATURE_INSMOD_TRY_MMAP
179 depends on (BUSYBOX_CONFIG_INSMOD || BUSYBOX_CONFIG_MODPROBE) && !BUSYBOX_CONFIG_MODPROBE_SMALL
180 help
181 This option causes module loading code to try to mmap
182 module first. If it does not work (for example,
183 it does not work for compressed modules), module will be read
184 (and unpacked if needed) into a memory block allocated by malloc.
185
186 The only case when mmap works but malloc does not is when
187 you are trying to load a big module on a very memory-constrained
188 machine. Malloc will momentarily need 2x as much memory as mmap.
189
190 Choosing N saves about 250 bytes of code (on 32-bit x86).
191
192config BUSYBOX_CONFIG_FEATURE_MODUTILS_ALIAS
193 bool "Support module.aliases file"
194 default BUSYBOX_DEFAULT_FEATURE_MODUTILS_ALIAS
195 depends on (BUSYBOX_CONFIG_DEPMOD || BUSYBOX_CONFIG_MODPROBE) && !BUSYBOX_CONFIG_MODPROBE_SMALL
196 help
197 Generate and parse modules.alias containing aliases for bus
198 identifiers:
199 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
200
201 and aliases for logical modules names e.g.:
202 alias padlock_aes aes
203 alias aes_i586 aes
204 alias aes_generic aes
205
206 Say Y if unsure.
207
208config BUSYBOX_CONFIG_FEATURE_MODUTILS_SYMBOLS
209 bool "Support module.symbols file"
210 default BUSYBOX_DEFAULT_FEATURE_MODUTILS_SYMBOLS
211 depends on (BUSYBOX_CONFIG_DEPMOD || BUSYBOX_CONFIG_MODPROBE) && !BUSYBOX_CONFIG_MODPROBE_SMALL
212 help
213 Generate and parse modules.symbols containing aliases for
214 symbol_request() kernel calls, such as:
215 alias symbol:usb_sg_init usbcore
216
217 Say Y if unsure.
218
219config BUSYBOX_CONFIG_DEFAULT_MODULES_DIR
220 string "Default directory containing modules"
221 default BUSYBOX_DEFAULT_DEFAULT_MODULES_DIR
222 depends on BUSYBOX_CONFIG_DEPMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_MODINFO
223 help
224 Directory that contains kernel modules.
225 Defaults to "/lib/modules"
226
227config BUSYBOX_CONFIG_DEFAULT_DEPMOD_FILE
228 string "Default name of modules.dep"
229 default BUSYBOX_DEFAULT_DEFAULT_DEPMOD_FILE
230 depends on BUSYBOX_CONFIG_DEPMOD || BUSYBOX_CONFIG_MODPROBE || BUSYBOX_CONFIG_MODINFO
231 help
232 Filename that contains kernel modules dependencies.
233 Defaults to "modules.dep".
234 If you configured the "simplified modutils" (MODPROBE_SMALL), a
235 ".bb" suffix will be added after this name. Do not specify ".bb"
236 here unless you intend your depmod or modprobe to work on
237 "modules.dep.bb.bb" or such.
238
239endmenu