summaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-12-23 15:12:27 +0100
committerDenys Vlasenko2016-12-23 15:13:16 +0100
commita1cd0d9849946e0627484ec6b6435837c853a113 (patch)
tree23c7c643bd0af2859beff3876bdbaa20953bdb5f /modutils/modprobe.c
parentce3a98a222a2191ef4a22e90c49a51dfa7279e07 (diff)
downloadbusybox-a1cd0d9849946e0627484ec6b6435837c853a113.zip
busybox-a1cd0d9849946e0627484ec6b6435837c853a113.tar.gz
modprobe-small: make applets individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index d404ef9..09e3de6 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -9,8 +9,7 @@
*/
//config:config MODPROBE
//config: bool "modprobe"
-//config: default n
-//config: depends on !MODPROBE_SMALL
+//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Handle the loading of modules, and their dependencies on a high
@@ -18,8 +17,8 @@
//config:
//config:config FEATURE_MODPROBE_BLACKLIST
//config: bool "Blacklist support"
-//config: default n
-//config: depends on MODPROBE
+//config: default y
+//config: depends on MODPROBE && !MODPROBE_SMALL
//config: select PLATFORM_LINUX
//config: help
//config: Say 'y' here to enable support for the 'blacklist' command in
@@ -28,9 +27,11 @@
//config: hardware autodetection scripts to load modules like evdev, frame
//config: buffer drivers etc.
-//applet:IF_MODPROBE(APPLET(modprobe, BB_DIR_SBIN, BB_SUID_DROP))
+//applet:IF_MODPROBE(IF_NOT_MODPROBE_SMALL(APPLET(modprobe, BB_DIR_SBIN, BB_SUID_DROP)))
+//kbuild:ifneq ($(CONFIG_MODPROBE_SMALL),y)
//kbuild:lib-$(CONFIG_MODPROBE) += modprobe.o modutils.o
+//kbuild:endif
#include "libbb.h"
#include "modutils.h"