block.mk 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. BLOCK_MENU:=Block Devices
  8. define KernelPackage/aoe
  9. SUBMENU:=$(BLOCK_MENU)
  10. TITLE:=ATA over Ethernet support
  11. KCONFIG:=CONFIG_ATA_OVER_ETH
  12. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.ko
  13. AUTOLOAD:=$(call AutoLoad,30,aoe)
  14. endef
  15. define KernelPackage/aoe/description
  16. Kernel support for ATA over Ethernet
  17. endef
  18. $(eval $(call KernelPackage,aoe))
  19. define KernelPackage/ata-core
  20. SUBMENU:=$(BLOCK_MENU)
  21. TITLE:=Serial and Parallel ATA support
  22. DEPENDS:=@PCI_SUPPORT +kmod-scsi-core
  23. KCONFIG:=CONFIG_ATA
  24. FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
  25. AUTOLOAD:=$(call AutoLoad,21,libata,1)
  26. endef
  27. $(eval $(call KernelPackage,ata-core))
  28. define AddDepends/ata
  29. SUBMENU:=$(BLOCK_MENU)
  30. DEPENDS+=kmod-ata-core $(1)
  31. endef
  32. define KernelPackage/ata-ahci
  33. TITLE:=AHCI Serial ATA support
  34. KCONFIG:=CONFIG_SATA_AHCI
  35. FILES:= \
  36. $(LINUX_DIR)/drivers/ata/ahci.ko \
  37. $(LINUX_DIR)/drivers/ata/libahci.ko
  38. AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
  39. $(call AddDepends/ata)
  40. endef
  41. define KernelPackage/ata-ahci/description
  42. Support for AHCI Serial ATA controllers
  43. endef
  44. $(eval $(call KernelPackage,ata-ahci))
  45. define KernelPackage/ata-artop
  46. TITLE:=ARTOP 6210/6260 PATA support
  47. KCONFIG:=CONFIG_PATA_ARTOP
  48. FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
  49. AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
  50. $(call AddDepends/ata)
  51. endef
  52. define KernelPackage/ata-artop/description
  53. PATA support for ARTOP 6210/6260 host controllers
  54. endef
  55. $(eval $(call KernelPackage,ata-artop))
  56. define KernelPackage/ata-imx
  57. TITLE:=Freescale i.MX AHCI SATA support
  58. DEPENDS:=@TARGET_imx6
  59. KCONFIG:=\
  60. CONFIG_AHCI_IMX \
  61. CONFIG_SATA_AHCI_PLATFORM \
  62. CONFIG_PATA_IMX=n
  63. FILES:=$(LINUX_DIR)/drivers/ata/ahci_imx.ko
  64. AUTOLOAD:=$(call AutoLoad,41,ahci_imx,1)
  65. $(call AddDepends/ata)
  66. endef
  67. define KernelPackage/ata-imx/description
  68. SATA support for the Freescale i.MX6 SoC's onboard AHCI SATA
  69. endef
  70. $(eval $(call KernelPackage,ata-imx))
  71. define KernelPackage/ata-marvell-sata
  72. TITLE:=Marvell Serial ATA support
  73. KCONFIG:=CONFIG_SATA_MV
  74. FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
  75. AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
  76. $(call AddDepends/ata)
  77. endef
  78. define KernelPackage/ata-marvell-sata/description
  79. SATA support for marvell chipsets
  80. endef
  81. $(eval $(call KernelPackage,ata-marvell-sata))
  82. define KernelPackage/ata-nvidia-sata
  83. TITLE:=Nvidia Serial ATA support
  84. KCONFIG:=CONFIG_SATA_NV
  85. FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
  86. AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
  87. $(call AddDepends/ata)
  88. endef
  89. $(eval $(call KernelPackage,ata-nvidia-sata))
  90. define KernelPackage/ata-pdc202xx-old
  91. SUBMENU:=$(BLOCK_MENU)
  92. TITLE:=Older Promise PATA controller support
  93. DEPENDS:=kmod-ata-core
  94. KCONFIG:= \
  95. CONFIG_ATA_SFF=y \
  96. CONFIG_PATA_PDC_OLD
  97. FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
  98. AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
  99. endef
  100. define KernelPackage/ata-pdc202xx-old/description
  101. This option enables support for the Promise 20246, 20262, 20263,
  102. 20265 and 20267 adapters
  103. endef
  104. $(eval $(call KernelPackage,ata-pdc202xx-old))
  105. define KernelPackage/ata-piix
  106. TITLE:=Intel PIIX PATA/SATA support
  107. KCONFIG:=CONFIG_ATA_PIIX
  108. FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
  109. AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
  110. $(call AddDepends/ata)
  111. endef
  112. define KernelPackage/ata-piix/description
  113. SATA support for Intel ICH5/6/7/8 series host controllers and
  114. PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
  115. endef
  116. $(eval $(call KernelPackage,ata-piix))
  117. define KernelPackage/ata-sil
  118. TITLE:=Silicon Image SATA support
  119. KCONFIG:=CONFIG_SATA_SIL
  120. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
  121. AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
  122. $(call AddDepends/ata)
  123. endef
  124. define KernelPackage/ata-sil/description
  125. Support for Silicon Image Serial ATA controllers
  126. endef
  127. $(eval $(call KernelPackage,ata-sil))
  128. define KernelPackage/ata-sil24
  129. TITLE:=Silicon Image 3124/3132 SATA support
  130. KCONFIG:=CONFIG_SATA_SIL24
  131. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
  132. AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
  133. $(call AddDepends/ata)
  134. endef
  135. define KernelPackage/ata-sil24/description
  136. Support for Silicon Image 3124/3132 Serial ATA controllers
  137. endef
  138. $(eval $(call KernelPackage,ata-sil24))
  139. define KernelPackage/ata-via-sata
  140. TITLE:=VIA SATA support
  141. KCONFIG:=CONFIG_SATA_VIA
  142. FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
  143. AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
  144. $(call AddDepends/ata)
  145. endef
  146. define KernelPackage/ata-via-sata/description
  147. This option enables support for VIA Serial ATA
  148. endef
  149. $(eval $(call KernelPackage,ata-via-sata))
  150. define KernelPackage/block2mtd
  151. SUBMENU:=$(BLOCK_MENU)
  152. TITLE:=Block device MTD emulation
  153. KCONFIG:=CONFIG_MTD_BLOCK2MTD
  154. FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
  155. endef
  156. $(eval $(call KernelPackage,block2mtd))
  157. define KernelPackage/dm
  158. SUBMENU:=$(BLOCK_MENU)
  159. TITLE:=Device Mapper
  160. DEPENDS:=+kmod-crypto-manager
  161. # All the "=n" are unnecessary, they're only there
  162. # to stop the config from asking the question.
  163. # MIRROR is M because I've needed it for pvmove.
  164. KCONFIG:= \
  165. CONFIG_BLK_DEV_MD=n \
  166. CONFIG_DM_DEBUG=n \
  167. CONFIG_DM_UEVENT=n \
  168. CONFIG_DM_DELAY=n \
  169. CONFIG_DM_MULTIPATH=n \
  170. CONFIG_DM_ZERO=n \
  171. CONFIG_DM_SNAPSHOT=n \
  172. CONFIG_DM_LOG_USERSPACE=n \
  173. CONFIG_MD=y \
  174. CONFIG_BLK_DEV_DM \
  175. CONFIG_DM_CRYPT \
  176. CONFIG_DM_MIRROR
  177. FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
  178. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
  179. endef
  180. define KernelPackage/dm/description
  181. Kernel module necessary for LVM2 support
  182. endef
  183. $(eval $(call KernelPackage,dm))
  184. define KernelPackage/md-mod
  185. SUBMENU:=$(BLOCK_MENU)
  186. TITLE:=MD RAID
  187. KCONFIG:= \
  188. CONFIG_MD=y \
  189. CONFIG_BLK_DEV_MD=m \
  190. CONFIG_MD_AUTODETECT=y \
  191. CONFIG_MD_FAULTY=n
  192. FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
  193. AUTOLOAD:=$(call AutoLoad,27,md-mod)
  194. endef
  195. define KernelPackage/md-mod/description
  196. Kernel RAID md module (md-mod.ko).
  197. You will need to select at least one RAID level module below.
  198. endef
  199. $(eval $(call KernelPackage,md-mod))
  200. define KernelPackage/md/Depends
  201. SUBMENU:=$(BLOCK_MENU)
  202. DEPENDS:=kmod-md-mod $(1)
  203. endef
  204. define KernelPackage/md-linear
  205. $(call KernelPackage/md/Depends,)
  206. TITLE:=RAID Linear Module
  207. KCONFIG:=CONFIG_MD_LINEAR
  208. FILES:=$(LINUX_DIR)/drivers/md/linear.ko
  209. AUTOLOAD:=$(call AutoLoad,28,linear)
  210. endef
  211. define KernelPackage/md-linear/description
  212. RAID "Linear" or "Append" driver module (linear.ko)
  213. endef
  214. $(eval $(call KernelPackage,md-linear))
  215. define KernelPackage/md-raid0
  216. $(call KernelPackage/md/Depends,)
  217. TITLE:=RAID0 Module
  218. KCONFIG:=CONFIG_MD_RAID0
  219. FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
  220. AUTOLOAD:=$(call AutoLoad,28,raid0)
  221. endef
  222. define KernelPackage/md-raid0/description
  223. RAID Level 0 (Striping) driver module (raid0.ko)
  224. endef
  225. $(eval $(call KernelPackage,md-raid0))
  226. define KernelPackage/md-raid1
  227. $(call KernelPackage/md/Depends,)
  228. TITLE:=RAID1 Module
  229. KCONFIG:=CONFIG_MD_RAID1
  230. FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
  231. AUTOLOAD:=$(call AutoLoad,28,raid1)
  232. endef
  233. define KernelPackage/md-raid1/description
  234. RAID Level 1 (Mirroring) driver (raid1.ko)
  235. endef
  236. $(eval $(call KernelPackage,md-raid1))
  237. define KernelPackage/md-raid10
  238. $(call KernelPackage/md/Depends,)
  239. TITLE:=RAID10 Module
  240. KCONFIG:=CONFIG_MD_RAID10
  241. FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
  242. AUTOLOAD:=$(call AutoLoad,28,raid10)
  243. endef
  244. define KernelPackage/md-raid10/description
  245. RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
  246. endef
  247. $(eval $(call KernelPackage,md-raid10))
  248. define KernelPackage/md-raid456
  249. $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor)
  250. TITLE:=RAID Level 456 Driver
  251. KCONFIG:= \
  252. CONFIG_ASYNC_CORE \
  253. CONFIG_ASYNC_MEMCPY \
  254. CONFIG_ASYNC_XOR \
  255. CONFIG_ASYNC_PQ \
  256. CONFIG_ASYNC_RAID6_RECOV \
  257. CONFIG_ASYNC_RAID6_TEST=n \
  258. CONFIG_MD_RAID456 \
  259. CONFIG_MULTICORE_RAID456=n
  260. FILES:= \
  261. $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
  262. $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
  263. $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
  264. $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
  265. $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
  266. $(LINUX_DIR)/drivers/md/raid456.ko
  267. AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
  268. endef
  269. define KernelPackage/md-raid456/description
  270. RAID Level 4,5,6 kernel module (raid456.ko)
  271. Includes the following modules required by
  272. raid456.ko:
  273. xor.ko
  274. async_tx.ko
  275. async_xor.ko
  276. async_memcpy.ko
  277. async_pq.ko
  278. async_raid5_recov.ko
  279. raid6_pq.ko
  280. endef
  281. $(eval $(call KernelPackage,md-raid456))
  282. define KernelPackage/md-multipath
  283. $(call KernelPackage/md/Depends,)
  284. TITLE:=MD Multipath Module
  285. KCONFIG:=CONFIG_MD_MULTIPATH
  286. FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
  287. AUTOLOAD:=$(call AutoLoad,29,multipath)
  288. endef
  289. define KernelPackage/md-multipath/description
  290. Multipath driver module (multipath.ko)
  291. endef
  292. $(eval $(call KernelPackage,md-multipath))
  293. define KernelPackage/ide-core
  294. SUBMENU:=$(BLOCK_MENU)
  295. TITLE:=IDE (ATA/ATAPI) device support
  296. DEPENDS:=@PCI_SUPPORT
  297. KCONFIG:= \
  298. CONFIG_IDE \
  299. CONFIG_BLK_DEV_IDE \
  300. CONFIG_BLK_DEV_IDEDISK \
  301. CONFIG_IDE_GD \
  302. CONFIG_IDE_GD_ATA=y \
  303. CONFIG_IDE_GD_ATAPI=n \
  304. CONFIG_IDEPCI_PCIBUS_ORDER=y \
  305. CONFIG_BLK_DEV_IDEDMA_PCI=y \
  306. CONFIG_BLK_DEV_IDEPCI=y
  307. FILES:= \
  308. $(LINUX_DIR)/drivers/ide/ide-core.ko \
  309. $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
  310. AUTOLOAD:= \
  311. $(call AutoLoad,20,ide-core,1) \
  312. $(call AutoLoad,40,ide-gd_mod,1)
  313. endef
  314. define KernelPackage/ide-core/description
  315. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  316. Includes:
  317. - ide-core
  318. - ide-gd_mod
  319. endef
  320. $(eval $(call KernelPackage,ide-core))
  321. define AddDepends/ide
  322. SUBMENU:=$(BLOCK_MENU)
  323. DEPENDS+=kmod-ide-core $(1)
  324. endef
  325. define KernelPackage/ide-generic
  326. SUBMENU:=$(BLOCK_MENU)
  327. DEPENDS:=@PCI_SUPPORT
  328. TITLE:=Kernel support for generic PCI IDE chipsets
  329. KCONFIG:=CONFIG_BLK_DEV_GENERIC
  330. FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
  331. AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
  332. $(call AddDepends/ide)
  333. endef
  334. $(eval $(call KernelPackage,ide-generic))
  335. define KernelPackage/ide-generic-old
  336. SUBMENU:=$(BLOCK_MENU)
  337. TITLE:=Kernel support for generic (legacy) IDE chipsets
  338. KCONFIG:=CONFIG_IDE_GENERIC
  339. FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
  340. AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
  341. $(call AddDepends/ide)
  342. endef
  343. $(eval $(call KernelPackage,ide-generic-old))
  344. define KernelPackage/ide-aec62xx
  345. TITLE:=Acard AEC62xx IDE driver
  346. DEPENDS:=@PCI_SUPPORT
  347. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  348. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
  349. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  350. $(call AddDepends/ide)
  351. endef
  352. define KernelPackage/ide-aec62xx/description
  353. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers
  354. endef
  355. $(eval $(call KernelPackage,ide-aec62xx,1))
  356. define KernelPackage/ide-pdc202xx
  357. TITLE:=Promise PDC202xx IDE driver
  358. DEPENDS:=@PCI_SUPPORT
  359. KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
  360. FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
  361. AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
  362. $(call AddDepends/ide)
  363. endef
  364. define KernelPackage/ide-pdc202xx/description
  365. Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
  366. controllers.
  367. endef
  368. $(eval $(call KernelPackage,ide-pdc202xx))
  369. define KernelPackage/ide-it821x
  370. TITLE:=ITE IT821x IDE driver
  371. DEPENDS:=@PCI_SUPPORT
  372. KCONFIG:=CONFIG_BLK_DEV_IT821X
  373. FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
  374. AUTOLOAD:=$(call AutoLoad,30,it821x,1)
  375. $(call AddDepends/ide)
  376. endef
  377. define KernelPackage/ide-it821x/description
  378. Kernel module for the ITE IDE821x IDE controllers
  379. endef
  380. $(eval $(call KernelPackage,ide-it821x))
  381. define KernelPackage/libsas
  382. SUBMENU:=$(BLOCK_MENU)
  383. DEPENDS:=@TARGET_x86
  384. TITLE:=SAS Domain Transport Attributes
  385. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  386. CONFIG_SCSI_SAS_ATTRS \
  387. CONFIG_SCSI_SAS_ATA=y \
  388. CONFIG_SCSI_SAS_HOST_SMP=y \
  389. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  390. FILES:= \
  391. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
  392. $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
  393. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  394. endef
  395. define KernelPackage/libsas/description
  396. SAS Domain Transport Attributes support
  397. endef
  398. $(eval $(call KernelPackage,libsas,1))
  399. define KernelPackage/loop
  400. SUBMENU:=$(BLOCK_MENU)
  401. TITLE:=Loopback device support
  402. KCONFIG:= \
  403. CONFIG_BLK_DEV_LOOP \
  404. CONFIG_BLK_DEV_CRYPTOLOOP=n
  405. FILES:=$(LINUX_DIR)/drivers/block/loop.ko
  406. AUTOLOAD:=$(call AutoLoad,30,loop)
  407. endef
  408. define KernelPackage/loop/description
  409. Kernel module for loopback device support
  410. endef
  411. $(eval $(call KernelPackage,loop))
  412. define KernelPackage/mvsas
  413. SUBMENU:=$(BLOCK_MENU)
  414. TITLE:=Marvell 88SE6440 SAS/SATA driver
  415. DEPENDS:=@TARGET_x86 +kmod-libsas
  416. KCONFIG:= \
  417. CONFIG_SCSI_MVSAS \
  418. CONFIG_SCSI_MVSAS_TASKLET=n
  419. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
  420. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  421. endef
  422. define KernelPackage/mvsas/description
  423. Kernel support for the Marvell SAS SCSI adapters
  424. endef
  425. $(eval $(call KernelPackage,mvsas))
  426. define KernelPackage/nbd
  427. SUBMENU:=$(BLOCK_MENU)
  428. TITLE:=Network block device support
  429. KCONFIG:=CONFIG_BLK_DEV_NBD
  430. FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
  431. AUTOLOAD:=$(call AutoLoad,30,nbd)
  432. endef
  433. define KernelPackage/nbd/description
  434. Kernel module for network block device support
  435. endef
  436. $(eval $(call KernelPackage,nbd))
  437. define KernelPackage/scsi-core
  438. SUBMENU:=$(BLOCK_MENU)
  439. TITLE:=SCSI device support
  440. KCONFIG:= \
  441. CONFIG_SCSI \
  442. CONFIG_BLK_DEV_SD
  443. FILES:= \
  444. $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
  445. $(LINUX_DIR)/drivers/scsi/sd_mod.ko
  446. AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
  447. endef
  448. $(eval $(call KernelPackage,scsi-core))
  449. define KernelPackage/scsi-generic
  450. SUBMENU:=$(BLOCK_MENU)
  451. TITLE:=Kernel support for SCSI generic
  452. DEPENDS:=+kmod-scsi-core
  453. KCONFIG:= \
  454. CONFIG_CHR_DEV_SG
  455. FILES:= \
  456. $(LINUX_DIR)/drivers/scsi/sg.ko
  457. AUTOLOAD:=$(call AutoLoad,65,sg)
  458. endef
  459. $(eval $(call KernelPackage,scsi-generic))
  460. define KernelPackage/scsi-cdrom
  461. SUBMENU:=$(BLOCK_MENU)
  462. TITLE:=Kernel support for CD / DVD drives
  463. DEPENDS:=+kmod-scsi-core
  464. KCONFIG:= \
  465. CONFIG_BLK_DEV_SR \
  466. CONFIG_BLK_DEV_SR_VENDOR=n
  467. FILES:= \
  468. $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
  469. $(LINUX_DIR)/drivers/scsi/sr_mod.ko
  470. AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
  471. endef
  472. $(eval $(call KernelPackage,scsi-cdrom))