[3320] | 1 | #
|
---|
| 2 | # For a description of the syntax of this configuration file,
|
---|
| 3 | # see scripts/kbuild/config-language.txt.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | menu "Linux Module Utilities"
|
---|
| 7 | depends on PLATFORM_LINUX
|
---|
| 8 |
|
---|
| 9 | INSERT
|
---|
| 10 |
|
---|
| 11 | config MODPROBE_SMALL
|
---|
| 12 | bool "Simplified modutils"
|
---|
| 13 | default y
|
---|
| 14 | help
|
---|
| 15 | Simplified modutils.
|
---|
| 16 |
|
---|
| 17 | With this option modprobe does not require modules.dep file
|
---|
| 18 | and does not use /etc/modules.conf file.
|
---|
| 19 | It scans module files in /lib/modules/`uname -r` and
|
---|
| 20 | determines dependencies and module alias names on the fly.
|
---|
| 21 | This may make module loading slower, most notably
|
---|
| 22 | when one needs to load module by alias (this requires
|
---|
| 23 | scanning through module _bodies_).
|
---|
| 24 |
|
---|
| 25 | At the first attempt to load a module by alias modprobe
|
---|
| 26 | will try to generate modules.dep.bb file in order to speed up
|
---|
| 27 | future loads by alias. Failure to do so (read-only /lib/modules,
|
---|
| 28 | etc) is not reported, and future modprobes will be slow too.
|
---|
| 29 |
|
---|
| 30 | NB: modules.dep.bb file format is not compatible
|
---|
| 31 | with modules.dep file as created/used by standard module tools.
|
---|
| 32 |
|
---|
| 33 | Additional module parameters can be stored in
|
---|
| 34 | /etc/modules/$module_name files.
|
---|
| 35 |
|
---|
| 36 | Apart from modprobe, other utilities are also provided:
|
---|
| 37 | - insmod is an alias to modprobe
|
---|
| 38 | - rmmod is an alias to modprobe -r
|
---|
| 39 | - depmod generates modules.dep.bb
|
---|
| 40 |
|
---|
| 41 | As of 2008-07, this code is experimental. It is 14kb smaller
|
---|
| 42 | than "non-small" modutils.
|
---|
| 43 |
|
---|
| 44 | config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
|
---|
| 45 | bool "Accept module options on modprobe command line"
|
---|
| 46 | default y
|
---|
| 47 | depends on MODPROBE_SMALL
|
---|
| 48 | help
|
---|
| 49 | Allow insmod and modprobe take module options from command line.
|
---|
| 50 |
|
---|
| 51 | config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED
|
---|
| 52 | bool "Skip loading of already loaded modules"
|
---|
| 53 | default y
|
---|
| 54 | depends on MODPROBE_SMALL
|
---|
| 55 | help
|
---|
| 56 | Check if the module is already loaded.
|
---|
| 57 |
|
---|
| 58 | config INSMOD
|
---|
| 59 | bool "insmod"
|
---|
| 60 | default n
|
---|
| 61 | depends on !MODPROBE_SMALL
|
---|
| 62 | help
|
---|
| 63 | insmod is used to load specified modules in the running kernel.
|
---|
| 64 |
|
---|
| 65 | config RMMOD
|
---|
| 66 | bool "rmmod"
|
---|
| 67 | default n
|
---|
| 68 | depends on !MODPROBE_SMALL
|
---|
| 69 | help
|
---|
| 70 | rmmod is used to unload specified modules from the kernel.
|
---|
| 71 |
|
---|
| 72 | config LSMOD
|
---|
| 73 | bool "lsmod"
|
---|
| 74 | default n
|
---|
| 75 | depends on !MODPROBE_SMALL
|
---|
| 76 | help
|
---|
| 77 | lsmod is used to display a list of loaded modules.
|
---|
| 78 |
|
---|
| 79 | config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
|
---|
| 80 | bool "Pretty output"
|
---|
| 81 | default n
|
---|
| 82 | depends on LSMOD
|
---|
| 83 | help
|
---|
| 84 | This option makes output format of lsmod adjusted to
|
---|
| 85 | the format of module-init-tools for Linux kernel 2.6.
|
---|
| 86 | Increases size somewhat.
|
---|
| 87 |
|
---|
| 88 | config MODPROBE
|
---|
| 89 | bool "modprobe"
|
---|
| 90 | default n
|
---|
| 91 | depends on !MODPROBE_SMALL
|
---|
| 92 | help
|
---|
| 93 | Handle the loading of modules, and their dependencies on a high
|
---|
| 94 | level.
|
---|
| 95 |
|
---|
| 96 | config FEATURE_MODPROBE_BLACKLIST
|
---|
| 97 | bool "Blacklist support"
|
---|
| 98 | default n
|
---|
| 99 | depends on MODPROBE
|
---|
| 100 | help
|
---|
| 101 | Say 'y' here to enable support for the 'blacklist' command in
|
---|
| 102 | modprobe.conf. This prevents the alias resolver to resolve
|
---|
| 103 | blacklisted modules. This is useful if you want to prevent your
|
---|
| 104 | hardware autodetection scripts to load modules like evdev, frame
|
---|
| 105 | buffer drivers etc.
|
---|
| 106 |
|
---|
| 107 | config DEPMOD
|
---|
| 108 | bool "depmod"
|
---|
| 109 | default n
|
---|
| 110 | depends on !MODPROBE_SMALL
|
---|
| 111 | help
|
---|
| 112 | depmod generates modules.dep (and potentially modules.alias
|
---|
| 113 | and modules.symbols) that contain dependency information
|
---|
| 114 | for modprobe.
|
---|
| 115 |
|
---|
| 116 | comment "Options common to multiple modutils"
|
---|
| 117 |
|
---|
| 118 | config FEATURE_2_4_MODULES
|
---|
| 119 | bool "Support version 2.2/2.4 Linux kernels"
|
---|
| 120 | default n
|
---|
| 121 | depends on INSMOD || RMMOD || LSMOD
|
---|
| 122 | help
|
---|
| 123 | Support module loading for 2.2.x and 2.4.x Linux kernels.
|
---|
| 124 | This increases size considerably. Say N unless you plan
|
---|
| 125 | to run ancient kernels.
|
---|
| 126 |
|
---|
| 127 | config FEATURE_INSMOD_TRY_MMAP
|
---|
| 128 | bool "Try to load module from a mmap'ed area"
|
---|
| 129 | default n
|
---|
| 130 | depends on INSMOD || MODPROBE_SMALL
|
---|
| 131 | help
|
---|
| 132 | This option causes module loading code to try to mmap
|
---|
| 133 | module first. If it does not work (for example,
|
---|
| 134 | it does not work for compressed modules), module will be read
|
---|
| 135 | (and unpacked if needed) into a memory block allocated by malloc.
|
---|
| 136 |
|
---|
| 137 | The only case when mmap works but malloc does not is when
|
---|
| 138 | you are trying to load a big module on a very memory-constrained
|
---|
| 139 | machine. Malloc will momentarily need 2x as much memory as mmap.
|
---|
| 140 |
|
---|
| 141 | Choosing N saves about 250 bytes of code (on 32-bit x86).
|
---|
| 142 |
|
---|
| 143 | config FEATURE_INSMOD_VERSION_CHECKING
|
---|
| 144 | bool "Enable module version checking"
|
---|
| 145 | default n
|
---|
| 146 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
|
---|
| 147 | help
|
---|
| 148 | Support checking of versions for modules. This is used to
|
---|
| 149 | ensure that the kernel and module are made for each other.
|
---|
| 150 |
|
---|
| 151 | config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
|
---|
| 152 | bool "Add module symbols to kernel symbol table"
|
---|
| 153 | default n
|
---|
| 154 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
|
---|
| 155 | help
|
---|
| 156 | By adding module symbols to the kernel symbol table, Oops messages
|
---|
| 157 | occuring within kernel modules can be properly debugged. By enabling
|
---|
| 158 | this feature, module symbols will always be added to the kernel symbol
|
---|
| 159 | table for proper debugging support. If you are not interested in
|
---|
| 160 | Oops messages from kernel modules, say N.
|
---|
| 161 |
|
---|
| 162 | config FEATURE_INSMOD_LOADINKMEM
|
---|
| 163 | bool "In kernel memory optimization (uClinux only)"
|
---|
| 164 | default n
|
---|
| 165 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
|
---|
| 166 | help
|
---|
| 167 | This is a special uClinux only memory optimization that lets insmod
|
---|
| 168 | load the specified kernel module directly into kernel space, reducing
|
---|
| 169 | memory usage by preventing the need for two copies of the module
|
---|
| 170 | being loaded into memory.
|
---|
| 171 |
|
---|
| 172 | config FEATURE_INSMOD_LOAD_MAP
|
---|
| 173 | bool "Enable insmod load map (-m) option"
|
---|
| 174 | default n
|
---|
| 175 | depends on FEATURE_2_4_MODULES && INSMOD
|
---|
| 176 | help
|
---|
| 177 | Enabling this, one would be able to get a load map
|
---|
| 178 | output on stdout. This makes kernel module debugging
|
---|
| 179 | easier.
|
---|
| 180 | If you don't plan to debug kernel modules, you
|
---|
| 181 | don't need this option.
|
---|
| 182 |
|
---|
| 183 | config FEATURE_INSMOD_LOAD_MAP_FULL
|
---|
| 184 | bool "Symbols in load map"
|
---|
| 185 | default y
|
---|
| 186 | depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
|
---|
| 187 | help
|
---|
| 188 | Without this option, -m will only output section
|
---|
| 189 | load map. With this option, -m will also output
|
---|
| 190 | symbols load map.
|
---|
| 191 |
|
---|
| 192 | config FEATURE_CHECK_TAINTED_MODULE
|
---|
| 193 | bool "Support tainted module checking with new kernels"
|
---|
| 194 | default y
|
---|
| 195 | depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
|
---|
| 196 | help
|
---|
| 197 | Support checking for tainted modules. These are usually binary
|
---|
| 198 | only modules that will make the linux-kernel list ignore your
|
---|
| 199 | support request.
|
---|
| 200 | This option is required to support GPLONLY modules.
|
---|
| 201 |
|
---|
| 202 | config FEATURE_MODUTILS_ALIAS
|
---|
| 203 | bool "Support for module.aliases file"
|
---|
| 204 | default y
|
---|
| 205 | depends on DEPMOD || MODPROBE
|
---|
| 206 | help
|
---|
| 207 | Generate and parse modules.alias containing aliases for bus
|
---|
| 208 | identifiers:
|
---|
| 209 | alias pcmcia:m*c*f03fn*pfn*pa*pb*pc*pd* parport_cs
|
---|
| 210 |
|
---|
| 211 | and aliases for logical modules names e.g.:
|
---|
| 212 | alias padlock_aes aes
|
---|
| 213 | alias aes_i586 aes
|
---|
| 214 | alias aes_generic aes
|
---|
| 215 |
|
---|
| 216 | Say Y if unsure.
|
---|
| 217 |
|
---|
| 218 | config FEATURE_MODUTILS_SYMBOLS
|
---|
| 219 | bool "Support for module.symbols file"
|
---|
| 220 | default y
|
---|
| 221 | depends on DEPMOD || MODPROBE
|
---|
| 222 | help
|
---|
| 223 | Generate and parse modules.symbols containing aliases for
|
---|
| 224 | symbol_request() kernel calls, such as:
|
---|
| 225 | alias symbol:usb_sg_init usbcore
|
---|
| 226 |
|
---|
| 227 | Say Y if unsure.
|
---|
| 228 |
|
---|
| 229 | config DEFAULT_MODULES_DIR
|
---|
| 230 | string "Default directory containing modules"
|
---|
| 231 | default "/lib/modules"
|
---|
| 232 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
|
---|
| 233 | help
|
---|
| 234 | Directory that contains kernel modules.
|
---|
| 235 | Defaults to "/lib/modules"
|
---|
| 236 |
|
---|
| 237 | config DEFAULT_DEPMOD_FILE
|
---|
| 238 | string "Default name of modules.dep"
|
---|
| 239 | default "modules.dep"
|
---|
| 240 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO
|
---|
| 241 | help
|
---|
| 242 | Filename that contains kernel modules dependencies.
|
---|
| 243 | Defaults to "modules.dep"
|
---|
| 244 |
|
---|
| 245 | endmenu
|
---|