aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-22 14:36:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-12-22 14:36:49 +0100
commit326edc3e375d6d5be205d4b1592211bf15e33bcd (patch)
tree09de5f15a633a45709298979f0d216afe553b81c /modutils
parent2166952ec393b9a8f890a12951c812c47fdfd457 (diff)
downloadbusybox-326edc3e375d6d5be205d4b1592211bf15e33bcd.tar.gz
Tweak some config defaults; fix MODPROBE_SMALL ordering in "make config"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils')
-rw-r--r--modutils/Config.src31
-rw-r--r--modutils/modprobe-small.c34
2 files changed, 34 insertions, 31 deletions
diff --git a/modutils/Config.src b/modutils/Config.src
index 4227f356a..84ff34a08 100644
--- a/modutils/Config.src
+++ b/modutils/Config.src
@@ -5,6 +5,37 @@
menu "Linux Module Utilities"
+config MODPROBE_SMALL
+ bool "Simplified modutils"
+ default y
+ select PLATFORM_LINUX
+ help
+ Simplified modutils.
+
+ With this option modprobe does not require modules.dep file
+ and does not use /etc/modules.conf file.
+ It scans module files in /lib/modules/`uname -r` and
+ determines dependencies and module alias names on the fly.
+ This may make module loading slower, most notably
+ when one needs to load module by alias (this requires
+ scanning through module _bodies_).
+
+ At the first attempt to load a module by alias modprobe
+ will try to generate modules.dep.bb file in order to speed up
+ future loads by alias. Failure to do so (read-only /lib/modules,
+ etc) is not reported, and future modprobes will be slow too.
+
+ NB: modules.dep.bb file format is not compatible
+ with modules.dep file as created/used by standard module tools.
+
+ Additional module parameters can be stored in
+ /etc/modules/$module_name files.
+
+ Apart from modprobe, other utilities are also provided:
+ - insmod is an alias to modprobe
+ - rmmod is an alias to modprobe -r
+ - depmod generates modules.dep.bb
+
INSERT
comment "Options common to multiple modutils"
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 51ba42f7a..e3a349b4e 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -7,37 +7,9 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-//config:config MODPROBE_SMALL
-//config: bool "Simplified modutils"
-//config: default y
-//config: select PLATFORM_LINUX
-//config: help
-//config: Simplified modutils.
-//config:
-//config: With this option modprobe does not require modules.dep file
-//config: and does not use /etc/modules.conf file.
-//config: It scans module files in /lib/modules/`uname -r` and
-//config: determines dependencies and module alias names on the fly.
-//config: This may make module loading slower, most notably
-//config: when one needs to load module by alias (this requires
-//config: scanning through module _bodies_).
-//config:
-//config: At the first attempt to load a module by alias modprobe
-//config: will try to generate modules.dep.bb file in order to speed up
-//config: future loads by alias. Failure to do so (read-only /lib/modules,
-//config: etc) is not reported, and future modprobes will be slow too.
-//config:
-//config: NB: modules.dep.bb file format is not compatible
-//config: with modules.dep file as created/used by standard module tools.
-//config:
-//config: Additional module parameters can be stored in
-//config: /etc/modules/$module_name files.
-//config:
-//config: Apart from modprobe, other utilities are also provided:
-//config: - insmod is an alias to modprobe
-//config: - rmmod is an alias to modprobe -r
-//config: - depmod generates modules.dep.bb
-//config:
+
+/* config MODPROBE_SMALL is defined in Config.src to ensure better "make config" order */
+
//config:config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
//config: bool "Accept module options on modprobe command line"
//config: default y