CC: kernel: kmod-scsi-core: fix load on install
authorJonas Gorski <[email protected]>
Sat, 4 Jul 2015 12:53:57 +0000 (12:53 +0000)
committerJonas Gorski <[email protected]>
Sat, 4 Jul 2015 12:53:57 +0000 (12:53 +0000)
sd_mod depends on scsi_mod, but due to it being an AutoLoad and not
AutoProbe module, it was not loading when installing the package,
causing unknown symbol errors for sd_mod and anything depending on it.

Closes #14927, #18293, #19351.

Backport of r46176.

Signed-off-by: Jonas Gorski <[email protected]>
SVN-Revision: 46177

package/kernel/linux/modules/block.mk

index 2d79e510217ef95c92c62af05eae2d14d6a5d7b1..2e75c713462c0c245f4872670b03478ca120c80b 100644 (file)
@@ -614,9 +614,9 @@ define KernelPackage/scsi-core
        CONFIG_SCSI \
        CONFIG_BLK_DEV_SD
   FILES:= \
-       $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
+       $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
        $(LINUX_DIR)/drivers/scsi/sd_mod.ko
-  AUTOLOAD:=$(call AutoLoad,40,sd_mod,1)
+  AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
 endef
 
 $(eval $(call KernelPackage,scsi-core))