Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
Glenn L McGrath | 1b6dfa7 | 2003-03-30 13:57:26 +0000 | [diff] [blame] | 6 | menu "Linux Module Utilities" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 7 | |
| 8 | config CONFIG_INSMOD |
| 9 | bool "insmod" |
| 10 | default n |
| 11 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 12 | insmod is used to load specified modules in the running kernel. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 13 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 14 | config CONFIG_FEATURE_INSMOD_VERSION_CHECKING |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 15 | bool "Module version checking" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 16 | default n |
Eric Andersen | cb3b9b1 | 2004-06-22 11:50:52 +0000 | [diff] [blame] | 17 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 18 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 19 | Support checking of versions for modules. This is used to |
| 20 | ensure that the kernel and module are made for each other. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 21 | |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 22 | config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 23 | bool "Add module symbols to kernel symbol table" |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 24 | default n |
Eric Andersen | cb3b9b1 | 2004-06-22 11:50:52 +0000 | [diff] [blame] | 25 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 26 | help |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 27 | By adding module symbols to the kernel symbol table, Oops messages |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 28 | occuring within kernel modules can be properly debugged. By enabling |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 29 | this feature, module symbols will always be added to the kernel symbol |
Eric Andersen | 889dd20 | 2003-01-23 04:48:34 +0000 | [diff] [blame] | 30 | table for properly debugging support. If you are not interested in |
| 31 | Oops messages from kernel modules, say N. |
| 32 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 33 | config CONFIG_FEATURE_INSMOD_LOADINKMEM |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 34 | bool "In kernel memory optimization (uClinux only)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 35 | default n |
Eric Andersen | cb3b9b1 | 2004-06-22 11:50:52 +0000 | [diff] [blame] | 36 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 37 | help |
Eric Andersen | b24da33 | 2003-07-22 10:16:58 +0000 | [diff] [blame] | 38 | 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 42 | |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 43 | config CONFIG_FEATURE_INSMOD_LOAD_MAP |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 44 | bool "Enable load map (-m) option" |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 45 | default n |
Eric Andersen | cb3b9b1 | 2004-06-22 11:50:52 +0000 | [diff] [blame] | 46 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 47 | 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 | |
| 54 | config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 55 | bool "Symbols in load map" |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 56 | default y |
| 57 | depends on CONFIG_FEATURE_INSMOD_LOAD_MAP |
| 58 | help |
| 59 | Without this option, -m will only output section |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 60 | load map. With this option, -m will also output |
Eric Andersen | e704788 | 2003-12-11 01:42:13 +0000 | [diff] [blame] | 61 | symbols load map. |
Eric Andersen | be65c35 | 2003-01-23 04:57:35 +0000 | [diff] [blame] | 62 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 63 | config CONFIG_RMMOD |
| 64 | bool "rmmod" |
| 65 | default n |
| 66 | help |
| 67 | rmmod is used to unload specified modules from the kernel. |
| 68 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 69 | config CONFIG_LSMOD |
| 70 | bool "lsmod" |
| 71 | default n |
| 72 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 73 | lsmod is used to display a list of loaded modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 74 | |
Rob Landley | 4f65360 | 2005-05-04 23:55:06 +0000 | [diff] [blame] | 75 | config CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 76 | bool "lsmod pretty output for 2.6.x Linux kernels " |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 77 | default n |
Tim Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 78 | depends on CONFIG_LSMOD |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 79 | help |
Tim Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 80 | This option makes output format of lsmod adjusted to |
Rob Landley | 4f65360 | 2005-05-04 23:55:06 +0000 | [diff] [blame] | 81 | the format of module-init-tools for Linux kernel 2.6. |
Rob Landley | 15d3f7f | 2005-05-04 00:25:49 +0000 | [diff] [blame] | 82 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 83 | config CONFIG_MODPROBE |
| 84 | bool "modprobe" |
| 85 | default n |
| 86 | help |
Mike Frysinger | fa6c484 | 2006-05-26 01:48:17 +0000 | [diff] [blame] | 87 | Handle the loading of modules, and their dependencies on a high |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 88 | level. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 89 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 90 | Note that in the state, modprobe does not understand multiple |
| 91 | module options from the configuration file. See option below. |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 92 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 93 | config CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS |
Rob Landley | bf30c69 | 2006-07-20 17:36:18 +0000 | [diff] [blame] | 94 | bool |
| 95 | prompt "Multiple options parsing" if CONFIG_NITPICK |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 96 | default y |
| 97 | depends on CONFIG_MODPROBE |
| 98 | help |
| 99 | Allow modprobe to understand more than one option to pass to |
| 100 | modules. |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 101 | |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 102 | 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 Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 106 | |
Rob Landley | 79e1cab | 2005-11-15 00:08:29 +0000 | [diff] [blame] | 107 | Saying Y here is not a bad idea if you're not that short |
| 108 | on storage capacity. |
| 109 | |
Rob Landley | bf30c69 | 2006-07-20 17:36:18 +0000 | [diff] [blame] | 110 | config 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 Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 120 | comment "Options common to multiple modutils" |
| 121 | depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE || CONFIG_LSMOD |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 122 | |
| 123 | config CONFIG_FEATURE_CHECK_TAINTED_MODULE |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 124 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 125 | bool "Support tainted module checking with new kernels" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 126 | default y |
| 127 | depends on CONFIG_INSMOD || CONFIG_LSMOD |
| 128 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 129 | 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 McGrath | 759d7ec | 2003-09-03 00:42:58 +0000 | [diff] [blame] | 132 | This option is required to support GPLONLY modules. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 133 | |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 134 | config CONFIG_FEATURE_2_4_MODULES |
| 135 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 136 | bool "Support version 2.2.x to 2.4.x Linux kernels" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 137 | 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 | |
| 142 | config CONFIG_FEATURE_2_6_MODULES |
| 143 | # Simulate indentation |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 144 | bool "Support version 2.6.x Linux kernels" |
Rob Landley | 762bb62 | 2005-12-11 20:20:05 +0000 | [diff] [blame] | 145 | 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 | |
| 151 | config 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 Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 156 | |
| 157 | endmenu |
| 158 | |