kernel: add scsi cdrom support
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 9 Apr 2011 15:59:03 +0000 (15:59 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 9 Apr 2011 15:59:03 +0000 (15:59 +0000)
This closes #9125.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26548 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/kernel/modules/block.mk

index 21af7e5..8037449 100644 (file)
@@ -599,6 +599,7 @@ $(eval $(call KernelPackage,scsi-core))
 define KernelPackage/scsi-generic
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Kernel support for SCSI generic
+  DEPENDS:=+!TARGET_x86:kmod-scsi-core
   KCONFIG:= \
        CONFIG_CHR_DEV_SG
   FILES:= \
@@ -607,3 +608,20 @@ define KernelPackage/scsi-generic
 endef
 
 $(eval $(call KernelPackage,scsi-generic))
+
+
+define KernelPackage/scsi-cdrom
+  SUBMENU:=$(BLOCK_MENU)
+  TITLE:=Kernel support for CD / DVD drives
+  DEPENDS:=+!TARGET_x86:kmod-scsi-core
+  KCONFIG:= \
+    CONFIG_BLK_DEV_SR \
+    CONFIG_BLK_DEV_SR_VENDOR=n
+  FILES:= \
+    $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
+    $(LINUX_DIR)/drivers/scsi/sr_mod.ko
+  AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
+endef
+
+$(eval $(call KernelPackage,scsi-cdrom))
+
This page took 0.024466 seconds and 4 git commands to generate.