summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-16 04:05:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-16 04:05:13 +0100
commit5b1d047a6451b3505a02a35989e135ac814cd507 (patch)
tree03a514437aba2fe3389061f19f2d84472beae8fb
parent8da0566c68ce4351ed2582bbdcb5c69a11e1f6e6 (diff)
allow to disable kernel module autoloading mechanism, useful when a big defconfig is used
-rw-r--r--package/base-files/Makefile5
-rw-r--r--target/config/Config.in.runtime7
2 files changed, 11 insertions, 1 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index ebfe9c1ee..3b822dc58 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.1
-PKG_RELEASE:= 24
+PKG_RELEASE:= 25
PKG_SECTION:= base/apps
PKG_DESCR:= basic files and scripts
@@ -36,6 +36,9 @@ ifeq ($(ADK_RUNTIME_INIT_SYSTEMD),)
cp ./files/fstab $(IDIR_BASE_FILES)/etc
cp ./files/modules $(IDIR_BASE_FILES)/etc
ln -sf ../proc/mounts $(IDIR_BASE_FILES)/etc/mtab
+ifeq ($(ADK_RUNTIME_LOAD_KERNEL_MODULES),)
+ -rm $(IDIR_BASE_FILES)/etc/init.d/kmod
+endif
ifeq ($(ADK_TARGET_WITH_NETDEVICE),y)
cp ./files/interfaces-dhcp $(IDIR_BASE_FILES)/etc/network/interfaces
cp ./files/rc.netinfo $(IDIR_BASE_FILES)/etc/
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 5e7cc27a6..a91c2c7c2 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -98,6 +98,13 @@ config ADK_RUNTIME_BASE_COREUTILS
endchoice
+config ADK_RUNTIME_LOAD_KERNEL_MODULES
+ bool "load all installed kernel modules on bootup"
+ default y
+ help
+ If you don't want to load all installed kernel modules
+ by default on bootup, disable this option.
+
config ADK_RUNTIME_FIX_PERMISSION
bool "fix permissions for target files (suid bit, ..)"
select ADK_HOST_BUILD_FAKEROOT