Sfoglia il codice sorgente

add support for marking specific kernel module packages as potentially being required for mounting the rootfs (patch by cshore)

SVN-Revision: 19878
Felix Fietkau 15 anni fa
parent
commit
93489b721e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      include/kernel.mk

+ 4 - 1
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