summaryrefslogtreecommitdiff
path: root/modutils/Config.src (plain)
blob: 4227f356a72cc817715ab2ac2a1798169ba694eb
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Linux Module Utilities"
7
8INSERT
9
10comment "Options common to multiple modutils"
11
12config FEATURE_2_4_MODULES
13 bool "Support version 2.2/2.4 Linux kernels"
14 default n
15 depends on INSMOD || RMMOD || LSMOD
16 select PLATFORM_LINUX
17 help
18 Support module loading for 2.2.x and 2.4.x Linux kernels.
19 This increases size considerably. Say N unless you plan
20 to run ancient kernels.
21
22config FEATURE_INSMOD_TRY_MMAP
23 bool "Try to load module from a mmap'ed area"
24 default n
25 depends on INSMOD || MODPROBE_SMALL
26 select PLATFORM_LINUX
27 help
28 This option causes module loading code to try to mmap
29 module first. If it does not work (for example,
30 it does not work for compressed modules), module will be read
31 (and unpacked if needed) into a memory block allocated by malloc.
32
33 The only case when mmap works but malloc does not is when
34 you are trying to load a big module on a very memory-constrained
35 machine. Malloc will momentarily need 2x as much memory as mmap.
36
37 Choosing N saves about 250 bytes of code (on 32-bit x86).
38
39config FEATURE_INSMOD_VERSION_CHECKING
40 bool "Enable module version checking"
41 default n
42 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
43 select PLATFORM_LINUX
44 help
45 Support checking of versions for modules. This is used to
46 ensure that the kernel and module are made for each other.
47
48config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
49 bool "Add module symbols to kernel symbol table"
50 default n
51 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
52 select PLATFORM_LINUX
53 help
54 By adding module symbols to the kernel symbol table, Oops messages
55 occuring within kernel modules can be properly debugged. By enabling
56 this feature, module symbols will always be added to the kernel symbol
57 table for proper debugging support. If you are not interested in
58 Oops messages from kernel modules, say N.
59
60config FEATURE_INSMOD_LOADINKMEM
61 bool "In kernel memory optimization (uClinux only)"
62 default n
63 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
64 select PLATFORM_LINUX
65 help
66 This is a special uClinux only memory optimization that lets insmod
67 load the specified kernel module directly into kernel space, reducing
68 memory usage by preventing the need for two copies of the module
69 being loaded into memory.
70
71config FEATURE_INSMOD_LOAD_MAP
72 bool "Enable insmod load map (-m) option"
73 default n
74 depends on FEATURE_2_4_MODULES && INSMOD
75 select PLATFORM_LINUX
76 help
77 Enabling this, one would be able to get a load map
78 output on stdout. This makes kernel module debugging
79 easier.
80 If you don't plan to debug kernel modules, you
81 don't need this option.
82
83config FEATURE_INSMOD_LOAD_MAP_FULL
84 bool "Symbols in load map"
85 default y
86 depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
87 select PLATFORM_LINUX
88 help
89 Without this option, -m will only output section
90 load map. With this option, -m will also output
91 symbols load map.
92
93config FEATURE_CHECK_TAINTED_MODULE
94 bool "Support tainted module checking with new kernels"
95 default y
96 depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
97 select PLATFORM_LINUX
98 help
99 Support checking for tainted modules. These are usually binary
100 only modules that will make the linux-kernel list ignore your
101 support request.
102 This option is required to support GPLONLY modules.
103
104config FEATURE_MODUTILS_ALIAS
105 bool "Support for module.aliases file"
106 default y
107 depends on DEPMOD || MODPROBE
108 select PLATFORM_LINUX
109 help
110 Generate and parse modules.alias containing aliases for bus
111 identifiers:
112 alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
113
114 and aliases for logical modules names e.g.:
115 alias padlock_aes aes
116 alias aes_i586 aes
117 alias aes_generic aes
118
119 Say Y if unsure.
120
121config FEATURE_MODUTILS_SYMBOLS
122 bool "Support for module.symbols file"
123 default y
124 depends on DEPMOD || MODPROBE
125 select PLATFORM_LINUX
126 help
127 Generate and parse modules.symbols containing aliases for
128 symbol_request() kernel calls, such as:
129 alias symbol:usb_sg_init usbcore
130
131 Say Y if unsure.
132
133config DEFAULT_MODULES_DIR
134 string "Default directory containing modules"
135 default "/lib/modules"
136 depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
137 help
138 Directory that contains kernel modules.
139 Defaults to "/lib/modules"
140
141config DEFAULT_DEPMOD_FILE
142 string "Default name of modules.dep"
143 default "modules.dep"
144 depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
145 help
146 Filename that contains kernel modules dependencies.
147 Defaults to "modules.dep"
148
149endmenu
150