diff options
| author | Ron Yorston <rmy@pobox.com> | 2017-02-08 20:09:29 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2017-02-08 20:09:29 +0000 |
| commit | 373275a708bafb88fa4f0519de2166154f44fed9 (patch) | |
| tree | 4587b4fd3f695e0f3705b2a217e199f3144df931 /modutils/Config.src | |
| parent | b74b2619779b1deb903b7766261807df1e9b1f7f (diff) | |
| parent | c2b18583a3df06aeecf535c3cea6856aa1f2e205 (diff) | |
| download | busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.gz busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.bz2 busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'modutils/Config.src')
| -rw-r--r-- | modutils/Config.src | 90 |
1 files changed, 48 insertions, 42 deletions
diff --git a/modutils/Config.src b/modutils/Config.src index 84ff34a08..5f0b0cec4 100644 --- a/modutils/Config.src +++ b/modutils/Config.src | |||
| @@ -8,9 +8,11 @@ menu "Linux Module Utilities" | |||
| 8 | config MODPROBE_SMALL | 8 | config MODPROBE_SMALL |
| 9 | bool "Simplified modutils" | 9 | bool "Simplified modutils" |
| 10 | default y | 10 | default y |
| 11 | select PLATFORM_LINUX | ||
| 12 | help | 11 | help |
| 13 | Simplified modutils. | 12 | Build smaller (~1.5 kbytes), simplified module tools. |
| 13 | |||
| 14 | This option by itself does not enable any applets - | ||
| 15 | you need to select applets individually below. | ||
| 14 | 16 | ||
| 15 | With this option modprobe does not require modules.dep file | 17 | With this option modprobe does not require modules.dep file |
| 16 | and does not use /etc/modules.conf file. | 18 | and does not use /etc/modules.conf file. |
| @@ -31,47 +33,38 @@ config MODPROBE_SMALL | |||
| 31 | Additional module parameters can be stored in | 33 | Additional module parameters can be stored in |
| 32 | /etc/modules/$module_name files. | 34 | /etc/modules/$module_name files. |
| 33 | 35 | ||
| 34 | Apart from modprobe, other utilities are also provided: | ||
| 35 | - insmod is an alias to modprobe | ||
| 36 | - rmmod is an alias to modprobe -r | ||
| 37 | - depmod generates modules.dep.bb | ||
| 38 | |||
| 39 | INSERT | 36 | INSERT |
| 40 | 37 | ||
| 41 | comment "Options common to multiple modutils" | 38 | comment "Options common to multiple modutils" |
| 42 | 39 | ||
| 40 | config FEATURE_CMDLINE_MODULE_OPTIONS | ||
| 41 | bool "Accept module options on modprobe command line" | ||
| 42 | default y | ||
| 43 | depends on INSMOD || MODPROBE | ||
| 44 | help | ||
| 45 | Allow insmod and modprobe take module options from the applets' | ||
| 46 | command line. | ||
| 47 | |||
| 48 | config FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED | ||
| 49 | bool "Skip loading of already loaded modules" | ||
| 50 | default y | ||
| 51 | depends on MODPROBE_SMALL && (DEPMOD || INSMOD || MODPROBE) | ||
| 52 | help | ||
| 53 | Check if the module is already loaded. | ||
| 54 | |||
| 43 | config FEATURE_2_4_MODULES | 55 | config FEATURE_2_4_MODULES |
| 44 | bool "Support version 2.2/2.4 Linux kernels" | 56 | bool "Support version 2.2/2.4 Linux kernels" |
| 45 | default n | 57 | default n |
| 46 | depends on INSMOD || RMMOD || LSMOD | 58 | depends on (INSMOD || LSMOD || MODPROBE || RMMOD) && !MODPROBE_SMALL |
| 47 | select PLATFORM_LINUX | ||
| 48 | help | 59 | help |
| 49 | Support module loading for 2.2.x and 2.4.x Linux kernels. | 60 | Support module loading for 2.2.x and 2.4.x Linux kernels. |
| 50 | This increases size considerably. Say N unless you plan | 61 | This increases size considerably. Say N unless you plan |
| 51 | to run ancient kernels. | 62 | to run ancient kernels. |
| 52 | 63 | ||
| 53 | config FEATURE_INSMOD_TRY_MMAP | ||
| 54 | bool "Try to load module from a mmap'ed area" | ||
| 55 | default n | ||
| 56 | depends on INSMOD || MODPROBE_SMALL | ||
| 57 | select PLATFORM_LINUX | ||
| 58 | help | ||
| 59 | This option causes module loading code to try to mmap | ||
| 60 | module first. If it does not work (for example, | ||
| 61 | it does not work for compressed modules), module will be read | ||
| 62 | (and unpacked if needed) into a memory block allocated by malloc. | ||
| 63 | |||
| 64 | The only case when mmap works but malloc does not is when | ||
| 65 | you are trying to load a big module on a very memory-constrained | ||
| 66 | machine. Malloc will momentarily need 2x as much memory as mmap. | ||
| 67 | |||
| 68 | Choosing N saves about 250 bytes of code (on 32-bit x86). | ||
| 69 | |||
| 70 | config FEATURE_INSMOD_VERSION_CHECKING | 64 | config FEATURE_INSMOD_VERSION_CHECKING |
| 71 | bool "Enable module version checking" | 65 | bool "Enable module version checking" |
| 72 | default n | 66 | default n |
| 73 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) | 67 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 74 | select PLATFORM_LINUX | ||
| 75 | help | 68 | help |
| 76 | Support checking of versions for modules. This is used to | 69 | Support checking of versions for modules. This is used to |
| 77 | ensure that the kernel and module are made for each other. | 70 | ensure that the kernel and module are made for each other. |
| @@ -80,7 +73,6 @@ config FEATURE_INSMOD_KSYMOOPS_SYMBOLS | |||
| 80 | bool "Add module symbols to kernel symbol table" | 73 | bool "Add module symbols to kernel symbol table" |
| 81 | default n | 74 | default n |
| 82 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) | 75 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 83 | select PLATFORM_LINUX | ||
| 84 | help | 76 | help |
| 85 | By adding module symbols to the kernel symbol table, Oops messages | 77 | By adding module symbols to the kernel symbol table, Oops messages |
| 86 | occuring within kernel modules can be properly debugged. By enabling | 78 | occuring within kernel modules can be properly debugged. By enabling |
| @@ -92,7 +84,6 @@ config FEATURE_INSMOD_LOADINKMEM | |||
| 92 | bool "In kernel memory optimization (uClinux only)" | 84 | bool "In kernel memory optimization (uClinux only)" |
| 93 | default n | 85 | default n |
| 94 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) | 86 | depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) |
| 95 | select PLATFORM_LINUX | ||
| 96 | help | 87 | help |
| 97 | This is a special uClinux only memory optimization that lets insmod | 88 | This is a special uClinux only memory optimization that lets insmod |
| 98 | load the specified kernel module directly into kernel space, reducing | 89 | load the specified kernel module directly into kernel space, reducing |
| @@ -103,7 +94,6 @@ config FEATURE_INSMOD_LOAD_MAP | |||
| 103 | bool "Enable insmod load map (-m) option" | 94 | bool "Enable insmod load map (-m) option" |
| 104 | default n | 95 | default n |
| 105 | depends on FEATURE_2_4_MODULES && INSMOD | 96 | depends on FEATURE_2_4_MODULES && INSMOD |
| 106 | select PLATFORM_LINUX | ||
| 107 | help | 97 | help |
| 108 | Enabling this, one would be able to get a load map | 98 | Enabling this, one would be able to get a load map |
| 109 | output on stdout. This makes kernel module debugging | 99 | output on stdout. This makes kernel module debugging |
| @@ -114,8 +104,7 @@ config FEATURE_INSMOD_LOAD_MAP | |||
| 114 | config FEATURE_INSMOD_LOAD_MAP_FULL | 104 | config FEATURE_INSMOD_LOAD_MAP_FULL |
| 115 | bool "Symbols in load map" | 105 | bool "Symbols in load map" |
| 116 | default y | 106 | default y |
| 117 | depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL | 107 | depends on FEATURE_INSMOD_LOAD_MAP |
| 118 | select PLATFORM_LINUX | ||
| 119 | help | 108 | help |
| 120 | Without this option, -m will only output section | 109 | Without this option, -m will only output section |
| 121 | load map. With this option, -m will also output | 110 | load map. With this option, -m will also output |
| @@ -125,18 +114,32 @@ config FEATURE_CHECK_TAINTED_MODULE | |||
| 125 | bool "Support tainted module checking with new kernels" | 114 | bool "Support tainted module checking with new kernels" |
| 126 | default y | 115 | default y |
| 127 | depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL | 116 | depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL |
| 128 | select PLATFORM_LINUX | ||
| 129 | help | 117 | help |
| 130 | Support checking for tainted modules. These are usually binary | 118 | Support checking for tainted modules. These are usually binary |
| 131 | only modules that will make the linux-kernel list ignore your | 119 | only modules that will make the linux-kernel list ignore your |
| 132 | support request. | 120 | support request. |
| 133 | This option is required to support GPLONLY modules. | 121 | This option is required to support GPLONLY modules. |
| 134 | 122 | ||
| 123 | config FEATURE_INSMOD_TRY_MMAP | ||
| 124 | bool "Try to load module from a mmap'ed area" | ||
| 125 | default n | ||
| 126 | depends on (INSMOD || MODPROBE) && !MODPROBE_SMALL | ||
| 127 | help | ||
| 128 | This option causes module loading code to try to mmap | ||
| 129 | module first. If it does not work (for example, | ||
| 130 | it does not work for compressed modules), module will be read | ||
| 131 | (and unpacked if needed) into a memory block allocated by malloc. | ||
| 132 | |||
| 133 | The only case when mmap works but malloc does not is when | ||
| 134 | you are trying to load a big module on a very memory-constrained | ||
| 135 | machine. Malloc will momentarily need 2x as much memory as mmap. | ||
| 136 | |||
| 137 | Choosing N saves about 250 bytes of code (on 32-bit x86). | ||
| 138 | |||
| 135 | config FEATURE_MODUTILS_ALIAS | 139 | config FEATURE_MODUTILS_ALIAS |
| 136 | bool "Support for module.aliases file" | 140 | bool "Support module.aliases file" |
| 137 | default y | 141 | default y |
| 138 | depends on DEPMOD || MODPROBE | 142 | depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL |
| 139 | select PLATFORM_LINUX | ||
| 140 | help | 143 | help |
| 141 | Generate and parse modules.alias containing aliases for bus | 144 | Generate and parse modules.alias containing aliases for bus |
| 142 | identifiers: | 145 | identifiers: |
| @@ -150,10 +153,9 @@ config FEATURE_MODUTILS_ALIAS | |||
| 150 | Say Y if unsure. | 153 | Say Y if unsure. |
| 151 | 154 | ||
| 152 | config FEATURE_MODUTILS_SYMBOLS | 155 | config FEATURE_MODUTILS_SYMBOLS |
| 153 | bool "Support for module.symbols file" | 156 | bool "Support module.symbols file" |
| 154 | default y | 157 | default y |
| 155 | depends on DEPMOD || MODPROBE | 158 | depends on (DEPMOD || MODPROBE) && !MODPROBE_SMALL |
| 156 | select PLATFORM_LINUX | ||
| 157 | help | 159 | help |
| 158 | Generate and parse modules.symbols containing aliases for | 160 | Generate and parse modules.symbols containing aliases for |
| 159 | symbol_request() kernel calls, such as: | 161 | symbol_request() kernel calls, such as: |
| @@ -164,7 +166,7 @@ config FEATURE_MODUTILS_SYMBOLS | |||
| 164 | config DEFAULT_MODULES_DIR | 166 | config DEFAULT_MODULES_DIR |
| 165 | string "Default directory containing modules" | 167 | string "Default directory containing modules" |
| 166 | default "/lib/modules" | 168 | default "/lib/modules" |
| 167 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO | 169 | depends on DEPMOD || MODPROBE || MODINFO |
| 168 | help | 170 | help |
| 169 | Directory that contains kernel modules. | 171 | Directory that contains kernel modules. |
| 170 | Defaults to "/lib/modules" | 172 | Defaults to "/lib/modules" |
| @@ -172,9 +174,13 @@ config DEFAULT_MODULES_DIR | |||
| 172 | config DEFAULT_DEPMOD_FILE | 174 | config DEFAULT_DEPMOD_FILE |
| 173 | string "Default name of modules.dep" | 175 | string "Default name of modules.dep" |
| 174 | default "modules.dep" | 176 | default "modules.dep" |
| 175 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO | 177 | depends on DEPMOD || MODPROBE || MODINFO |
| 176 | help | 178 | help |
| 177 | Filename that contains kernel modules dependencies. | 179 | Filename that contains kernel modules dependencies. |
| 178 | Defaults to "modules.dep" | 180 | Defaults to "modules.dep". |
| 181 | If you configured the "simplified modutils" (MODPROBE_SMALL), a | ||
| 182 | ".bb" suffix will be added after this name. Do not specify ".bb" | ||
| 183 | here unless you intend your depmod or modprobe to work on | ||
| 184 | "modules.dep.bb.bb" or such. | ||
| 179 | 185 | ||
| 180 | endmenu | 186 | endmenu |
