blob: c5e596d1dbc80c7ebc033d8fa905faf9b686a1a3 [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config INSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000014config 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000017 depends on INSMOD && 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000022config 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000025 depends on INSMOD && 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000033config 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000036 depends on INSMOD && 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000043config 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
Denis Vlasenkocba9ef52006-10-10 21:00:47 +000046 depends on INSMOD && ( FEATURE_2_4_MODULES || FEATURE_2_6_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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000054config 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000057 depends on FEATURE_INSMOD_LOAD_MAP
Eric Andersenbe65c352003-01-23 04:57:35 +000058 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config RMMOD
Rob Landley762bb622005-12-11 20:20:05 +000064 bool "rmmod"
65 default n
66 help
67 rmmod is used to unload specified modules from the kernel.
68
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069config LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +000070 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000075config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000076 bool "Pretty output for 2.6.x Linux kernels"
Rob Landley15d3f7f2005-05-04 00:25:49 +000077 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000078 depends on 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000083config MODPROBE
Eric Andersenc9f20d92002-12-05 08:41:41 +000084 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000093config FEATURE_MODPROBE_MULTIPLE_OPTIONS
Mike Frysinger11353ae2007-01-24 14:34:35 +000094 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +000095 prompt "Multiple options parsing"
Rob Landley79e1cab2005-11-15 00:08:29 +000096 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +000097 depends on MODPROBE
Rob Landley79e1cab2005-11-15 00:08:29 +000098 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000110config FEATURE_MODPROBE_FANCY_ALIAS
Mike Frysinger11353ae2007-01-24 14:34:35 +0000111 bool
Denis Vlasenko9305cdd2008-05-13 02:43:27 +0000112 prompt "Fancy alias parsing"
Rob Landleybf30c692006-07-20 17:36:18 +0000113 default y
Mike Frysinger11353ae2007-01-24 14:34:35 +0000114 depends on MODPROBE && FEATURE_2_6_MODULES
Rob Landleybf30c692006-07-20 17:36:18 +0000115 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
Denis Vlasenko9ddc8d52008-05-18 14:39:43 +0000120config FEATURE_MODPROBE_BLACKLIST
121 bool
122 prompt "Blacklist support"
123 default n
124 depends on MODPROBE && FEATURE_2_6_MODULES
125 help
126 Say 'y' here to enable support for the 'blacklist' command in
127 modprobe.conf. This prevents the alias resolver to resolve
128 blacklisted modules. This is useful if you want to prevent your
129 hardware autodetection scripts to load modules like evdev, frame
130 buffer drivers etc.
131
Rob Landley762bb622005-12-11 20:20:05 +0000132comment "Options common to multiple modutils"
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000133 depends on INSMOD || RMMOD || MODPROBE || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000134
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000135config FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000136 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000137 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000138 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000139 depends on INSMOD || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000140 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000141 Support checking for tainted modules. These are usually binary
142 only modules that will make the linux-kernel list ignore your
143 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000144 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000145
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000146config FEATURE_2_4_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000147 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000148 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000149 default y
Denis Vlasenko997aa112006-10-14 11:12:20 +0000150 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000151 help
152 Support module loading for 2.2.x and 2.4.x Linux kernels.
153
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000154config FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000155 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000156 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000157 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000158 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000159 help
160 Support module loading for newer 2.6.x Linux kernels.
161
162
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000163config FEATURE_QUERY_MODULE_INTERFACE
Rob Landley762bb622005-12-11 20:20:05 +0000164 bool
165 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000166 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000167
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168
169endmenu
170