blob: cf46b086387653cb1e6d37b2f83a5ca27be050dd [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 Landley79e1cab2005-11-15 00:08:29 +000094 bool "Multiple options parsing"
95 default y
96 depends on CONFIG_MODPROBE
97 help
98 Allow modprobe to understand more than one option to pass to
99 modules.
Rob Landley762bb622005-12-11 20:20:05 +0000100
Rob Landley79e1cab2005-11-15 00:08:29 +0000101 This is a WIP, while waiting for a common argument parsing
102 common amongst all BB applets (shell, modprobe, etc...) and
103 adds around 600 bytes on x86, 700 bytes on ARM. The code is
104 biggish and uggly, but just works.
Rob Landley762bb622005-12-11 20:20:05 +0000105
Rob Landley79e1cab2005-11-15 00:08:29 +0000106 Saying Y here is not a bad idea if you're not that short
107 on storage capacity.
108
Rob Landley762bb622005-12-11 20:20:05 +0000109comment "Options common to multiple modutils"
110 depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE || CONFIG_LSMOD
Eric Andersenc9f20d92002-12-05 08:41:41 +0000111
112config CONFIG_FEATURE_CHECK_TAINTED_MODULE
Rob Landley762bb622005-12-11 20:20:05 +0000113 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000114 bool "Support tainted module checking with new kernels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000115 default y
116 depends on CONFIG_INSMOD || CONFIG_LSMOD
117 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000118 Support checking for tainted modules. These are usually binary
119 only modules that will make the linux-kernel list ignore your
120 support request.
Glenn L McGrath759d7ec2003-09-03 00:42:58 +0000121 This option is required to support GPLONLY modules.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122
Rob Landley762bb622005-12-11 20:20:05 +0000123config CONFIG_FEATURE_2_4_MODULES
124 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000125 bool "Support version 2.2.x to 2.4.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000126 default y
127 depends on CONFIG_INSMOD || CONFIG_RMMOD
128 help
129 Support module loading for 2.2.x and 2.4.x Linux kernels.
130
131config CONFIG_FEATURE_2_6_MODULES
132 # Simulate indentation
Rob Landley2ec922e2006-04-13 23:22:16 +0000133 bool "Support version 2.6.x Linux kernels"
Rob Landley762bb622005-12-11 20:20:05 +0000134 default y
135 depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE
136 help
137 Support module loading for newer 2.6.x Linux kernels.
138
139
140config CONFIG_FEATURE_QUERY_MODULE_INTERFACE
141 bool
142 default y
143 depends on CONFIG_FEATURE_2_4_MODULES && !CONFIG_FEATURE_2_6_MODULES
144
Eric Andersenc9f20d92002-12-05 08:41:41 +0000145
146endmenu
147