diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-22 14:36:49 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-22 14:36:49 +0100 |
| commit | 326edc3e375d6d5be205d4b1592211bf15e33bcd (patch) | |
| tree | 09de5f15a633a45709298979f0d216afe553b81c | |
| parent | 2166952ec393b9a8f890a12951c812c47fdfd457 (diff) | |
| download | busybox-w32-326edc3e375d6d5be205d4b1592211bf15e33bcd.tar.gz busybox-w32-326edc3e375d6d5be205d4b1592211bf15e33bcd.tar.bz2 busybox-w32-326edc3e375d6d5be205d4b1592211bf15e33bcd.zip | |
Tweak some config defaults; fix MODPROBE_SMALL ordering in "make config"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rwxr-xr-x | include/applets.h.sh | 8 | ||||
| -rw-r--r-- | init/init.c | 2 | ||||
| -rw-r--r-- | modutils/Config.src | 31 | ||||
| -rw-r--r-- | modutils/modprobe-small.c | 34 | ||||
| -rw-r--r-- | shell/ash.c | 5 |
5 files changed, 41 insertions, 39 deletions
diff --git a/include/applets.h.sh b/include/applets.h.sh index bab4e0d72..be8b92404 100755 --- a/include/applets.h.sh +++ b/include/applets.h.sh | |||
| @@ -6,9 +6,6 @@ | |||
| 6 | # CONFIG_applet names | 6 | # CONFIG_applet names |
| 7 | grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ | 7 | grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ |
| 8 | | grep -v MODPROBE_SMALL \ | 8 | | grep -v MODPROBE_SMALL \ |
| 9 | | sed 's/BB_SYSCTL/SYSCTL/' \ | ||
| 10 | | sed 's/TEST1/[/' \ | ||
| 11 | | sed 's/TEST2/[[/' \ | ||
| 12 | | sort | uniq \ | 9 | | sort | uniq \ |
| 13 | >applets_APP1 | 10 | >applets_APP1 |
| 14 | 11 | ||
| @@ -17,8 +14,11 @@ grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \ | |||
| 17 | | grep -v '^bash$' \ | 14 | | grep -v '^bash$' \ |
| 18 | | grep -v '^sh$' \ | 15 | | grep -v '^sh$' \ |
| 19 | | tr a-z A-Z \ | 16 | | tr a-z A-Z \ |
| 17 | | sed 's/^SYSCTL$/BB_SYSCTL/' \ | ||
| 18 | | sed 's/^\[\[$/TEST1/' \ | ||
| 19 | | sed 's/^\[$/TEST2/' \ | ||
| 20 | | sort | uniq \ | 20 | | sort | uniq \ |
| 21 | >applets_APP2 | 21 | >applets_APP2 |
| 22 | 22 | ||
| 23 | diff -u applets_APP1 applets_APP2 >applets_APP.diff | 23 | diff -u applets_APP1 applets_APP2 >applets_APP.diff |
| 24 | rm applets_APP1 applets_APP2 | 24 | #rm applets_APP1 applets_APP2 |
diff --git a/init/init.c b/init/init.c index 0813d1b5f..08cfa2f8c 100644 --- a/init/init.c +++ b/init/init.c | |||
| @@ -83,7 +83,7 @@ | |||
| 83 | //config: | 83 | //config: |
| 84 | //config:config FEATURE_INIT_COREDUMPS | 84 | //config:config FEATURE_INIT_COREDUMPS |
| 85 | //config: bool "Support dumping core for child processes (debugging only)" | 85 | //config: bool "Support dumping core for child processes (debugging only)" |
| 86 | //config: default y | 86 | //config: default n # not Y because this is a debug option |
| 87 | //config: depends on INIT || LINUXRC | 87 | //config: depends on INIT || LINUXRC |
| 88 | //config: help | 88 | //config: help |
| 89 | //config: If this option is enabled and the file /.init_enable_core | 89 | //config: If this option is enabled and the file /.init_enable_core |
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 @@ | |||
| 5 | 5 | ||
| 6 | menu "Linux Module Utilities" | 6 | menu "Linux Module Utilities" |
| 7 | 7 | ||
| 8 | config MODPROBE_SMALL | ||
| 9 | bool "Simplified modutils" | ||
| 10 | default y | ||
| 11 | select PLATFORM_LINUX | ||
| 12 | help | ||
| 13 | Simplified modutils. | ||
| 14 | |||
| 15 | With this option modprobe does not require modules.dep file | ||
| 16 | and does not use /etc/modules.conf file. | ||
| 17 | It scans module files in /lib/modules/`uname -r` and | ||
| 18 | determines dependencies and module alias names on the fly. | ||
| 19 | This may make module loading slower, most notably | ||
| 20 | when one needs to load module by alias (this requires | ||
| 21 | scanning through module _bodies_). | ||
| 22 | |||
| 23 | At the first attempt to load a module by alias modprobe | ||
| 24 | will try to generate modules.dep.bb file in order to speed up | ||
| 25 | future loads by alias. Failure to do so (read-only /lib/modules, | ||
| 26 | etc) is not reported, and future modprobes will be slow too. | ||
| 27 | |||
| 28 | NB: modules.dep.bb file format is not compatible | ||
| 29 | with modules.dep file as created/used by standard module tools. | ||
| 30 | |||
| 31 | Additional module parameters can be stored in | ||
| 32 | /etc/modules/$module_name files. | ||
| 33 | |||
| 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 | |||
| 8 | INSERT | 39 | INSERT |
| 9 | 40 | ||
| 10 | comment "Options common to multiple modutils" | 41 | 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 @@ | |||
| 7 | * | 7 | * |
| 8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
| 9 | */ | 9 | */ |
| 10 | //config:config MODPROBE_SMALL | 10 | |
| 11 | //config: bool "Simplified modutils" | 11 | /* config MODPROBE_SMALL is defined in Config.src to ensure better "make config" order */ |
| 12 | //config: default y | 12 | |
| 13 | //config: select PLATFORM_LINUX | ||
| 14 | //config: help | ||
| 15 | //config: Simplified modutils. | ||
| 16 | //config: | ||
| 17 | //config: With this option modprobe does not require modules.dep file | ||
| 18 | //config: and does not use /etc/modules.conf file. | ||
| 19 | //config: It scans module files in /lib/modules/`uname -r` and | ||
| 20 | //config: determines dependencies and module alias names on the fly. | ||
| 21 | //config: This may make module loading slower, most notably | ||
| 22 | //config: when one needs to load module by alias (this requires | ||
| 23 | //config: scanning through module _bodies_). | ||
| 24 | //config: | ||
| 25 | //config: At the first attempt to load a module by alias modprobe | ||
| 26 | //config: will try to generate modules.dep.bb file in order to speed up | ||
| 27 | //config: future loads by alias. Failure to do so (read-only /lib/modules, | ||
| 28 | //config: etc) is not reported, and future modprobes will be slow too. | ||
| 29 | //config: | ||
| 30 | //config: NB: modules.dep.bb file format is not compatible | ||
| 31 | //config: with modules.dep file as created/used by standard module tools. | ||
| 32 | //config: | ||
| 33 | //config: Additional module parameters can be stored in | ||
| 34 | //config: /etc/modules/$module_name files. | ||
| 35 | //config: | ||
| 36 | //config: Apart from modprobe, other utilities are also provided: | ||
| 37 | //config: - insmod is an alias to modprobe | ||
| 38 | //config: - rmmod is an alias to modprobe -r | ||
| 39 | //config: - depmod generates modules.dep.bb | ||
| 40 | //config: | ||
| 41 | //config:config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE | 13 | //config:config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE |
| 42 | //config: bool "Accept module options on modprobe command line" | 14 | //config: bool "Accept module options on modprobe command line" |
| 43 | //config: default y | 15 | //config: default y |
diff --git a/shell/ash.c b/shell/ash.c index 802626d4e..89339182e 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -117,7 +117,7 @@ | |||
| 117 | //config: | 117 | //config: |
| 118 | //config:config ASH_INTERNAL_GLOB | 118 | //config:config ASH_INTERNAL_GLOB |
| 119 | //config: bool "Use internal glob() implementation" | 119 | //config: bool "Use internal glob() implementation" |
| 120 | //config: default n | 120 | //config: default y # Y is bigger, but because of uclibc glob() bug, let Y be default for now |
| 121 | //config: depends on ASH | 121 | //config: depends on ASH |
| 122 | //config: help | 122 | //config: help |
| 123 | //config: Do not use glob() function from libc, use internal implementation. | 123 | //config: Do not use glob() function from libc, use internal implementation. |
| @@ -218,11 +218,10 @@ | |||
| 218 | //config: | 218 | //config: |
| 219 | //config:config ASH_MAIL | 219 | //config:config ASH_MAIL |
| 220 | //config: bool "Check for new mail on interactive shells" | 220 | //config: bool "Check for new mail on interactive shells" |
| 221 | //config: default n | 221 | //config: default y |
| 222 | //config: depends on ASH | 222 | //config: depends on ASH |
| 223 | //config: help | 223 | //config: help |
| 224 | //config: Enable "check for new mail" function in the ash shell. | 224 | //config: Enable "check for new mail" function in the ash shell. |
| 225 | //config: | ||
| 226 | 225 | ||
| 227 | //applet:IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP)) | 226 | //applet:IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP)) |
| 228 | //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, sh)) | 227 | //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, sh)) |
