blob: 8974fb7958fbce7854385ab9f34cc16965179239 [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
8config CONFIG_INSMOD
9 bool "insmod"
10 default n
11 help
Eric Andersene5642112003-07-14 19:37:08 +000012 insmod is used to load specified modules in the running kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000013
Eric Andersenc9f20d92002-12-05 08:41:41 +000014config CONFIG_FEATURE_INSMOD_VERSION_CHECKING
Rob Landley762bb622005-12-11 20:20:05 +000015 bool "Module version checking"
Eric Andersenc9f20d92002-12-05 08:41:41 +000016 default n
Eric Andersencb3b9b12004-06-22 11:50:52 +000017 depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000018 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +000019 Support checking of versions for modules. This is used to
20 ensure that the kernel and module are made for each other.
Eric Andersenc9f20d92002-12-05 08:41:41 +000021
Eric Andersen889dd202003-01-23 04:48:34 +000022config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS
Rob Landley762bb622005-12-11 20:20:05 +000023 bool "Add module symbols to kernel symbol table"
Eric Andersen889dd202003-01-23 04:48:34 +000024 default n
Eric Andersencb3b9b12004-06-22 11:50:52 +000025 depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES
Eric Andersen889dd202003-01-23 04:48:34 +000026 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +000027 By adding module symbols to the kernel symbol table, Oops messages
Eric Andersen889dd202003-01-23 04:48:34 +000028 occuring within kernel modules can be properly debugged. By enabling
Eric Andersenc7bda1c2004-03-15 08:29:22 +000029 this feature, module symbols will always be added to the kernel symbol
Eric Andersen889dd202003-01-23 04:48:34 +000030 table for properly debugging support. If you are not interested in
31 Oops messages from kernel modules, say N.
32
Eric Andersenc9f20d92002-12-05 08:41:41 +000033config CONFIG_FEATURE_INSMOD_LOADINKMEM
Rob Landley762bb622005-12-11 20:20:05 +000034 bool "In kernel memory optimization (uClinux only)"
Eric Andersenc9f20d92002-12-05 08:41:41 +000035 default n
Eric Andersencb3b9b12004-06-22 11:50:52 +000036 depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES
Eric Andersenc9f20d92002-12-05 08:41:41 +000037 help
Eric Andersenb24da332003-07-22 10:16:58 +000038 This is a special uClinux only memory optimization that lets insmod
39 load the specified kernel module directly into kernel space, reducing
40 memory usage by preventing the need for two copies of the module
41 being loaded into memory.
Eric Andersenc9f20d92002-12-05 08:41:41 +000042
Eric Andersenbe65c352003-01-23 04:57:35 +000043config CONFIG_FEATURE_INSMOD_LOAD_MAP
Rob Landley762bb622005-12-11 20:20:05 +000044 bool "Enable load map (-m) option"
Eric Andersenbe65c352003-01-23 04:57:35 +000045 default n
Eric Andersencb3b9b12004-06-22 11:50:52 +000046 depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES
Eric Andersenbe65c352003-01-23 04:57:35 +000047 help
48 Enabling this, one would be able to get a load map
49 output on stdout. This makes kernel module debugging
50 easier.
51 If you don't plan to debug kernel modules, you
52 don't need this option.
53
54config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL
Rob Landley762bb622005-12-11 20:20:05 +000055 bool "Symbols in load map"
Eric Andersenbe65c352003-01-23 04:57:35 +000056 default y
57 depends on CONFIG_FEATURE_INSMOD_LOAD_MAP
58 help
59 Without this option, -m will only output section
Eric Andersenc7bda1c2004-03-15 08:29:22 +000060 load map. With this option, -m will also output
Eric Andersene7047882003-12-11 01:42:13 +000061 symbols load map.
Eric Andersenbe65c352003-01-23 04:57:35 +000062
Rob Landley762bb622005-12-11 20:20:05 +000063config CONFIG_RMMOD
64 bool "rmmod"
65 default n
66 help
67 rmmod is used to unload specified modules from the kernel.
68
Eric Andersenc9f20d92002-12-05 08:41:41 +000069config CONFIG_LSMOD
70 bool "lsmod"
71 default n
72 help
Eric Andersen65e20a32003-07-05 07:52:35 +000073 lsmod is used to display a list of loaded modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +000074
Rob Landley4f653602005-05-04 23:55:06 +000075config CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Rob Landley762bb622005-12-11 20:20:05 +000076 bool "lsmod pretty output for 2.6.x Linux kernels "
Rob Landley15d3f7f2005-05-04 00:25:49 +000077 default n
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000078 depends on CONFIG_LSMOD
Rob Landley15d3f7f2005-05-04 00:25:49 +000079 help
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000080 This option makes output format of lsmod adjusted to
Rob Landley4f653602005-05-04 23:55:06 +000081 the format of module-init-tools for Linux kernel 2.6.
Rob Landley15d3f7f2005-05-04 00:25:49 +000082
Eric Andersenc9f20d92002-12-05 08:41:41 +000083config CONFIG_MODPROBE
84 bool "modprobe"
85 default n
86 help
Mike Frysingerfa6c4842006-05-26 01:48:17 +000087 Handle the loading of modules, and their dependencies on a high
Eric Andersene5642112003-07-14 19:37:08 +000088 level.
Eric Andersenc9f20d92002-12-05 08:41:41 +000089
Rob Landley762bb622005-12-11 20:20:05 +000090 Note that in the state, modprobe does not understand multiple
91 module options from the configuration file. See option below.
Rob Landley79e1cab2005-11-15 00:08:29 +000092
Rob Landley762bb622005-12-11 20:20:05 +000093config CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS
Rob Landleybf30c692006-07-20 17:36:18 +000094 bool
95 prompt "Multiple options parsing" if CONFIG_NITPICK
Rob Landley79e1cab2005-11-15 00:08:29 +000096 default y
97 depends on CONFIG_MODPROBE
98 help
99 Allow modprobe to understand more than one option to pass to
100 modules.
Rob Landley762bb622005-12-11 20:20:05 +0000101
Rob Landley79e1cab2005-11-15 00:08:29 +0000102 This is a WIP, while waiting for a common argument parsing
103 common amongst all BB applets (shell, modprobe, etc...) and
104 adds around 600 bytes on x86, 700 bytes on ARM. The code is
105 biggish and uggly, but just works.
Rob Landley762bb622005-12-11 20:20:05 +0000106
Rob Landley79e1cab2005-11-15 00:08:29 +0000107 Saying Y here is not a bad idea if you're not that short
108 on storage capacity.
109
Rob Landleybf30c692006-07-20 17:36:18 +0000110config CONFIG_FEATURE_MODPROBE_FANCY_ALIAS
111 bool
112 prompt "Fancy alias parsing" if CONFIG_NITPICK
113 default y
114 depends on CONFIG_MODPROBE && CONFIG_FEATURE_2_6_MODULES
115 help
116 Say 'y' here to enable parsing of aliases with underscore/dash
117 mismatch between module name and file name, along with bus-specific
118 aliases (such as pci:... or usb:... aliases).
119
Rob Landley762bb622005-12-11 20:20:05 +0000120comment "Options common to multiple modutils"
121 depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE || CONFIG_LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122
123config CONFIG_FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000124 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000125 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000126 default y
127 depends on CONFIG_INSMOD || CONFIG_LSMOD
128 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000129 Support checking for tainted modules. These are usually binary
130 only modules that will make the linux-kernel list ignore your
131 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000132 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000133
Rob Landley762bb622005-12-11 20:20:05 +0000134config CONFIG_FEATURE_2_4_MODULES
135 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000136 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000137 default y
138 depends on CONFIG_INSMOD || CONFIG_RMMOD
139 help
140 Support module loading for 2.2.x and 2.4.x Linux kernels.
141
142config CONFIG_FEATURE_2_6_MODULES
143 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000144 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000145 default y
146 depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE
147 help
148 Support module loading for newer 2.6.x Linux kernels.
149
150
151config CONFIG_FEATURE_QUERY_MODULE_INTERFACE
152 bool
153 default y
154 depends on CONFIG_FEATURE_2_4_MODULES && !CONFIG_FEATURE_2_6_MODULES
155
Eric Andersenc9f20d92002-12-05 08:41:41 +0000156
157endmenu
158