summaryrefslogtreecommitdiff
path: root/package/kernel/modules/block.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2011-04-09 15:59:03 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2011-04-09 15:59:03 +0000
commit0a637d604bbd440d70e138020b5b5ce6a660d897 (patch)
tree17d6865687762f9d4ddb10f9f55b3a371f8b92d5 /package/kernel/modules/block.mk
parent3ae4dec6b2457d6b831a61a8b7c9babfb9c8c81f (diff)
downloadmtk-20170518-0a637d604bbd440d70e138020b5b5ce6a660d897.zip
mtk-20170518-0a637d604bbd440d70e138020b5b5ce6a660d897.tar.gz
mtk-20170518-0a637d604bbd440d70e138020b5b5ce6a660d897.tar.bz2
kernel: add scsi cdrom support
This closes #9125. SVN-Revision: 26548
Diffstat (limited to 'package/kernel/modules/block.mk')
-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 21af7e5..8037449 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))
+