From: Felix Fietkau Date: Fri, 26 Feb 2010 22:45:54 +0000 (+0000) Subject: add support for marking specific kernel module packages as potentially being required... X-Git-Tag: v19.07.0-rc1~31561 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=93489b721eacdaddbabe5156b16574aa42c231f0;p=openwrt%2Fstaging%2Fhauke.git add support for marking specific kernel module packages as potentially being required for mounting the rootfs (patch by cshore) SVN-Revision: 19878 --- diff --git a/include/kernel.mk b/include/kernel.mk index 480b9682ce..1ca2312824 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -70,6 +70,9 @@ define ModuleAutoLoad add_module() { \ mkdir -p $(2)/etc/modules.d; \ ( \ + [ "$$$$$$$$3" = "1" ] && { \ + echo '# May be required for rootfs' ; \ + } ; \ for mod in $$$$$$$$2; do \ getvar mod; \ done \ @@ -154,7 +157,7 @@ $(call KernelPackage/$(1)/config) endef define AutoLoad - add_module $(1) "$(2)"; + add_module $(1) "$(2)" $(3); endef ifdef DUMP