blob: 44b1d91348acbb48d02d73d85fb7eed014c8b201 [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
Bernhard Reutner-Fischer55e547e2008-05-26 12:01:49 +00008config DEPMOD
9 bool "depmod"
10 default n
11 help
12 depmod generates modules.dep (FIXME: elaborate)
13
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000014config INSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000015 bool "insmod"
16 default n
17 help
Eric Andersene5642112003-07-14 19:37:08 +000018 insmod is used to load specified modules in the running kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000019
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000020config FEATURE_INSMOD_VERSION_CHECKING
Rob Landley762bb622005-12-11 20:20:05 +000021 bool "Module version checking"
Eric Andersenc9f20d92002-12-05 08:41:41 +000022 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000023 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000024 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +000025 Support checking of versions for modules. This is used to
26 ensure that the kernel and module are made for each other.
Eric Andersenc9f20d92002-12-05 08:41:41 +000027
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000028config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
Rob Landley762bb622005-12-11 20:20:05 +000029 bool "Add module symbols to kernel symbol table"
Eric Andersen889dd202003-01-23 04:48:34 +000030 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000031 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersen889dd202003-01-23 04:48:34 +000032 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +000033 By adding module symbols to the kernel symbol table, Oops messages
Eric Andersen889dd202003-01-23 04:48:34 +000034 occuring within kernel modules can be properly debugged. By enabling
Eric Andersenc7bda1c2004-03-15 08:29:22 +000035 this feature, module symbols will always be added to the kernel symbol
Eric Andersen889dd202003-01-23 04:48:34 +000036 table for properly debugging support. If you are not interested in
37 Oops messages from kernel modules, say N.
38
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000039config FEATURE_INSMOD_LOADINKMEM
Rob Landley762bb622005-12-11 20:20:05 +000040 bool "In kernel memory optimization (uClinux only)"
Eric Andersenc9f20d92002-12-05 08:41:41 +000041 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000042 depends on INSMOD && FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000043 help
Eric Andersenb24da332003-07-22 10:16:58 +000044 This is a special uClinux only memory optimization that lets insmod
45 load the specified kernel module directly into kernel space, reducing
46 memory usage by preventing the need for two copies of the module
47 being loaded into memory.
Eric Andersenc9f20d92002-12-05 08:41:41 +000048
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000049config FEATURE_INSMOD_LOAD_MAP
Rob Landley762bb622005-12-11 20:20:05 +000050 bool "Enable load map (-m) option"
Eric Andersenbe65c352003-01-23 04:57:35 +000051 default n
Denis Vlasenkocba9ef52006-10-10 21:00:47 +000052 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_MODULES )
Eric Andersenbe65c352003-01-23 04:57:35 +000053 help
54 Enabling this, one would be able to get a load map
55 output on stdout. This makes kernel module debugging
56 easier.
57 If you don't plan to debug kernel modules, you
58 don't need this option.
59
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000060config FEATURE_INSMOD_LOAD_MAP_FULL
Rob Landley762bb622005-12-11 20:20:05 +000061 bool "Symbols in load map"
Eric Andersenbe65c352003-01-23 04:57:35 +000062 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063 depends on FEATURE_INSMOD_LOAD_MAP
Eric Andersenbe65c352003-01-23 04:57:35 +000064 help
65 Without this option, -m will only output section
Eric Andersenc7bda1c2004-03-15 08:29:22 +000066 load map. With this option, -m will also output
Eric Andersene7047882003-12-11 01:42:13 +000067 symbols load map.
Eric Andersenbe65c352003-01-23 04:57:35 +000068
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069config RMMOD
Rob Landley762bb622005-12-11 20:20:05 +000070 bool "rmmod"
71 default n
72 help
73 rmmod is used to unload specified modules from the kernel.
74
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000075config LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000076 bool "lsmod"
77 default n
78 help
Eric Andersen65e20a32003-07-05 07:52:35 +000079 lsmod is used to display a list of loaded modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +000080
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000082 bool "Pretty output for 2.6.x Linux kernels"
Rob Landley15d3f7f2005-05-04 00:25:49 +000083 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000084 depends on LSMOD
Rob Landley15d3f7f2005-05-04 00:25:49 +000085 help
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000086 This option makes output format of lsmod adjusted to
Rob Landley4f653602005-05-04 23:55:06 +000087 the format of module-init-tools for Linux kernel 2.6.
Rob Landley15d3f7f2005-05-04 00:25:49 +000088
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000089config MODPROBE
Eric Andersenc9f20d92002-12-05 08:41:41 +000090 bool "modprobe"
91 default n
92 help
Mike Frysingerfa6c4842006-05-26 01:48:17 +000093 Handle the loading of modules, and their dependencies on a high
Eric Andersene5642112003-07-14 19:37:08 +000094 level.
Eric Andersenc9f20d92002-12-05 08:41:41 +000095
Rob Landley762bb622005-12-11 20:20:05 +000096 Note that in the state, modprobe does not understand multiple
97 module options from the configuration file. See option below.
Rob Landley79e1cab2005-11-15 00:08:29 +000098
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000099config FEATURE_MODPROBE_MULTIPLE_OPTIONS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000100 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000101 prompt "Multiple options parsing"
Rob Landley79e1cab2005-11-15 00:08:29 +0000102 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000103 depends on MODPROBE
Rob Landley79e1cab2005-11-15 00:08:29 +0000104 help
105 Allow modprobe to understand more than one option to pass to
106 modules.
Rob Landley762bb622005-12-11 20:20:05 +0000107
Rob Landley79e1cab2005-11-15 00:08:29 +0000108 This is a WIP, while waiting for a common argument parsing
109 common amongst all BB applets (shell, modprobe, etc...) and
110 adds around 600 bytes on x86, 700 bytes on ARM. The code is
111 biggish and uggly, but just works.
Rob Landley762bb622005-12-11 20:20:05 +0000112
Rob Landley79e1cab2005-11-15 00:08:29 +0000113 Saying Y here is not a bad idea if you're not that short
114 on storage capacity.
115
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000116config FEATURE_MODPROBE_FANCY_ALIAS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000117 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000118 prompt "Fancy alias parsing"
Rob Landleybf30c692006-07-20 17:36:18 +0000119 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000120 depends on MODPROBE && FEATURE_2_6_MODULES
Rob Landleybf30c692006-07-20 17:36:18 +0000121 help
122 Say 'y' here to enable parsing of aliases with underscore/dash
123 mismatch between module name and file name, along with bus-specific
124 aliases (such as pci:... or usb:... aliases).
125
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +0000126config FEATURE_MODPROBE_BLACKLIST
127 bool
128 prompt "Blacklist support"
129 default n
130 depends on MODPROBE && FEATURE_2_6_MODULES
131 help
132 Say 'y' here to enable support for the 'blacklist' command in
133 modprobe.conf. This prevents the alias resolver to resolve
134 blacklisted modules. This is useful if you want to prevent your
135 hardware autodetection scripts to load modules like evdev, frame
136 buffer drivers etc.
137
Rob Landley762bb622005-12-11 20:20:05 +0000138comment "Options common to multiple modutils"
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000139 depends on INSMOD || RMMOD || MODPROBE || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000140
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000141config FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000142 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000143 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000144 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000145 depends on INSMOD || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000146 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000147 Support checking for tainted modules. These are usually binary
148 only modules that will make the linux-kernel list ignore your
149 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000150 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000151
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000152config FEATURE_2_4_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000153 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000154 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000155 default y
Denis Vlasenko997aa112006-10-14 11:12:20 +0000156 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000157 help
158 Support module loading for 2.2.x and 2.4.x Linux kernels.
159
Bernhard Reutner-Fischer94748302008-05-27 08:41:32 +0000160 Note:
161 This is automatically enabled if 2.6 modules are not enabled.
162
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000163config FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000164 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000165 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000166 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000167 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000168 help
169 Support module loading for newer 2.6.x Linux kernels.
170
171
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000172config FEATURE_QUERY_MODULE_INTERFACE
Rob Landley762bb622005-12-11 20:20:05 +0000173 bool
174 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000175 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000176
Eric Andersenc9f20d92002-12-05 08:41:41 +0000177
178endmenu
179