blob: 6a6956755b7e36518194bcb4c4f6a14076d54bdc [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
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
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
Rob Landleybf30c692006-07-20 17:36:18 +000094 bool
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000095 prompt "Multiple options parsing" if NITPICK
Rob Landley79e1cab2005-11-15 00:08:29 +000096 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +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
Rob Landleybf30c692006-07-20 17:36:18 +0000111 bool
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000112 prompt "Fancy alias parsing" if NITPICK
Rob Landleybf30c692006-07-20 17:36:18 +0000113 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +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
Rob Landley762bb622005-12-11 20:20:05 +0000120comment "Options common to multiple modutils"
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000121 depends on INSMOD || RMMOD || MODPROBE || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000123config 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000127 depends on INSMOD || LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000128 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000134config FEATURE_2_4_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000135 # 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
Denis Vlasenko997aa112006-10-14 11:12:20 +0000138 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000139 help
140 Support module loading for 2.2.x and 2.4.x Linux kernels.
141
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000142config FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000143 # 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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000146 depends on INSMOD || RMMOD || MODPROBE
Rob Landley762bb622005-12-11 20:20:05 +0000147 help
148 Support module loading for newer 2.6.x Linux kernels.
149
150
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000151config FEATURE_QUERY_MODULE_INTERFACE
Rob Landley762bb622005-12-11 20:20:05 +0000152 bool
153 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000154 depends on FEATURE_2_4_MODULES && !FEATURE_2_6_MODULES
Rob Landley762bb622005-12-11 20:20:05 +0000155
Eric Andersenc9f20d92002-12-05 08:41:41 +0000156
157endmenu
158