summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-09 15:59:03 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-09 15:59:03 +0000
commitbdb465749d0bc1d806cc3d678b8f5c0766f1a810 (patch)
tree4dddc878b66b592bdebf0561c57dd476edac5aca
parentd2bb507b50ac1fe76a6a42706b5bd1b6aed703ec (diff)
kernel: add scsi cdrom support
This closes #9125. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26548 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/modules/block.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/kernel/modules/block.mk b/package/kernel/modules/block.mk
index 21af7e524..8037449c0 100644
--- a/package/kernel/modules/block.mk
+++ b/package/kernel/modules/block.mk
@@ -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))
+