oxnas: move target-specific modules into target's modules.mk
[librecmc/librecmc.git] / package / kernel / linux / modules / block.mk
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
8 BLOCK_MENU:=Block Devices
9
10 define KernelPackage/aoe
11   SUBMENU:=$(BLOCK_MENU)
12   TITLE:=ATA over Ethernet support
13   KCONFIG:=CONFIG_ATA_OVER_ETH
14   FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.ko
15   AUTOLOAD:=$(call AutoLoad,30,aoe)
16 endef
17
18 define KernelPackage/aoe/description
19  Kernel support for ATA over Ethernet
20 endef
21
22 $(eval $(call KernelPackage,aoe))
23
24
25 define KernelPackage/ata-core
26   SUBMENU:=$(BLOCK_MENU)
27   TITLE:=Serial and Parallel ATA support
28   DEPENDS:=@PCI_SUPPORT||TARGET_sunxi +kmod-scsi-core
29   KCONFIG:=CONFIG_ATA
30   FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
31 ifneq ($(wildcard $(LINUX_DIR)/drivers/ata/libahci.ko),)
32   FILES+=$(LINUX_DIR)/drivers/ata/libahci.ko
33 endif
34 endef
35
36 $(eval $(call KernelPackage,ata-core))
37
38
39 define AddDepends/ata
40   SUBMENU:=$(BLOCK_MENU)
41   DEPENDS+=kmod-ata-core $(1)
42 endef
43
44
45 define KernelPackage/ata-ahci
46   TITLE:=AHCI Serial ATA support
47   KCONFIG:=CONFIG_SATA_AHCI
48   FILES:= \
49     $(LINUX_DIR)/drivers/ata/ahci.ko
50   AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
51   $(call AddDepends/ata)
52 endef
53
54 define KernelPackage/ata-ahci/description
55  Support for AHCI Serial ATA controllers
56 endef
57
58 $(eval $(call KernelPackage,ata-ahci))
59
60
61 define KernelPackage/ata-ahci-platform
62   TITLE:=AHCI Serial ATA Platform support
63   KCONFIG:=CONFIG_SATA_AHCI_PLATFORM
64   FILES:= \
65     $(LINUX_DIR)/drivers/ata/ahci_platform.ko \
66     $(LINUX_DIR)/drivers/ata/libahci_platform.ko
67   AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_platform,1)
68   $(call AddDepends/ata,@TARGET_ipq806x||TARGET_mvebu||TARGET_sunxi)
69 endef
70
71 define KernelPackage/ata-ahci-platform/description
72  Platform support for AHCI Serial ATA controllers
73 endef
74
75 $(eval $(call KernelPackage,ata-ahci-platform))
76
77
78 define KernelPackage/ata-artop
79   TITLE:=ARTOP 6210/6260 PATA support
80   KCONFIG:=CONFIG_PATA_ARTOP
81   FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
82   AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
83   $(call AddDepends/ata)
84 endef
85
86 define KernelPackage/ata-artop/description
87  PATA support for ARTOP 6210/6260 host controllers
88 endef
89
90 $(eval $(call KernelPackage,ata-artop))
91
92
93 define KernelPackage/ata-imx
94   TITLE:=Freescale i.MX AHCI SATA support
95   DEPENDS:=@TARGET_imx6
96   KCONFIG:=\
97         CONFIG_AHCI_IMX \
98         CONFIG_SATA_AHCI_PLATFORM \
99         CONFIG_PATA_IMX=n
100   FILES:=$(LINUX_DIR)/drivers/ata/ahci_imx.ko
101   AUTOLOAD:=$(call AutoLoad,41,ahci_imx,1)
102   $(call AddDepends/ata)
103 endef
104
105 define KernelPackage/ata-imx/description
106  SATA support for the Freescale i.MX6 SoC's onboard AHCI SATA
107 endef
108
109 $(eval $(call KernelPackage,ata-imx))
110
111
112 define KernelPackage/ata-marvell-sata
113   TITLE:=Marvell Serial ATA support
114   KCONFIG:=CONFIG_SATA_MV
115   FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
116   AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
117   $(call AddDepends/ata)
118 endef
119
120 define KernelPackage/ata-marvell-sata/description
121  SATA support for marvell chipsets
122 endef
123
124 $(eval $(call KernelPackage,ata-marvell-sata))
125
126
127 define KernelPackage/ata-mvebu-ahci
128   TITLE:=Marvell EBU AHCI support
129   DEPENDS:=@TARGET_mvebu +kmod-ata-ahci-platform
130   KCONFIG:=CONFIG_AHCI_MVEBU
131   FILES:=$(LINUX_DIR)/drivers/ata/ahci_mvebu.ko
132   AUTOLOAD:=$(call AutoLoad,41,ahci_mvebu,1)
133   $(call AddDepends/ata)
134 endef
135
136 define KernelPackage/ata-mvebu-ahci/description
137  AHCI support for Marvell EBU SoCs
138 endef
139
140 $(eval $(call KernelPackage,ata-mvebu-ahci))
141
142
143 define KernelPackage/ata-nvidia-sata
144   TITLE:=Nvidia Serial ATA support
145   KCONFIG:=CONFIG_SATA_NV
146   FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
147   AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
148   $(call AddDepends/ata)
149 endef
150
151 $(eval $(call KernelPackage,ata-nvidia-sata))
152
153
154 define KernelPackage/ata-pdc202xx-old
155   SUBMENU:=$(BLOCK_MENU)
156   TITLE:=Older Promise PATA controller support
157   DEPENDS:=kmod-ata-core
158   KCONFIG:= \
159        CONFIG_ATA_SFF=y \
160        CONFIG_PATA_PDC_OLD
161   FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
162   AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
163 endef
164
165 define KernelPackage/ata-pdc202xx-old/description
166  This option enables support for the Promise 20246, 20262, 20263,
167  20265 and 20267 adapters
168 endef
169
170 $(eval $(call KernelPackage,ata-pdc202xx-old))
171
172
173 define KernelPackage/ata-piix
174   TITLE:=Intel PIIX PATA/SATA support
175   KCONFIG:=CONFIG_ATA_PIIX
176   FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
177   AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
178   $(call AddDepends/ata)
179 endef
180
181 define KernelPackage/ata-piix/description
182  SATA support for Intel ICH5/6/7/8 series host controllers and
183  PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
184 endef
185
186 $(eval $(call KernelPackage,ata-piix))
187
188
189 define KernelPackage/ata-sil
190   TITLE:=Silicon Image SATA support
191   KCONFIG:=CONFIG_SATA_SIL
192   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
193   AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
194   $(call AddDepends/ata)
195 endef
196
197 define KernelPackage/ata-sil/description
198  Support for Silicon Image Serial ATA controllers
199 endef
200
201 $(eval $(call KernelPackage,ata-sil))
202
203
204 define KernelPackage/ata-sil24
205   TITLE:=Silicon Image 3124/3132 SATA support
206   KCONFIG:=CONFIG_SATA_SIL24
207   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
208   AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
209   $(call AddDepends/ata)
210 endef
211
212 define KernelPackage/ata-sil24/description
213  Support for Silicon Image 3124/3132 Serial ATA controllers
214 endef
215
216 $(eval $(call KernelPackage,ata-sil24))
217
218
219 define KernelPackage/ata-via-sata
220   TITLE:=VIA SATA support
221   KCONFIG:=CONFIG_SATA_VIA
222   FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
223   AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
224   $(call AddDepends/ata)
225 endef
226
227 define KernelPackage/ata-via-sata/description
228  This option enables support for VIA Serial ATA
229 endef
230
231 $(eval $(call KernelPackage,ata-via-sata))
232
233
234 define KernelPackage/block2mtd
235   SUBMENU:=$(BLOCK_MENU)
236   TITLE:=Block device MTD emulation
237   KCONFIG:=CONFIG_MTD_BLOCK2MTD
238   FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
239 endef
240
241 $(eval $(call KernelPackage,block2mtd))
242
243
244 define KernelPackage/dm
245   SUBMENU:=$(BLOCK_MENU)
246   TITLE:=Device Mapper
247   DEPENDS:=+kmod-crypto-manager
248   # All the "=n" are unnecessary, they're only there
249   # to stop the config from asking the question.
250   # MIRROR is M because I've needed it for pvmove.
251   KCONFIG:= \
252         CONFIG_BLK_DEV_MD=n \
253         CONFIG_DM_DEBUG=n \
254         CONFIG_DM_UEVENT=n \
255         CONFIG_DM_DELAY=n \
256         CONFIG_DM_LOG_WRITES=n \
257         CONFIG_DM_MQ_DEFAULT=n \
258         CONFIG_DM_MULTIPATH=n \
259         CONFIG_DM_ZERO=n \
260         CONFIG_DM_SNAPSHOT=n \
261         CONFIG_DM_LOG_USERSPACE=n \
262         CONFIG_MD=y \
263         CONFIG_BLK_DEV_DM \
264         CONFIG_DM_CRYPT \
265         CONFIG_DM_MIRROR
266   FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
267   AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
268 endef
269
270 define KernelPackage/dm/description
271  Kernel module necessary for LVM2 support
272 endef
273
274 $(eval $(call KernelPackage,dm))
275
276
277 define KernelPackage/md-mod
278   SUBMENU:=$(BLOCK_MENU)
279   TITLE:=MD RAID
280   KCONFIG:= \
281        CONFIG_MD=y \
282        CONFIG_BLK_DEV_MD=m \
283        CONFIG_MD_AUTODETECT=y \
284        CONFIG_MD_FAULTY=n
285   FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
286   AUTOLOAD:=$(call AutoLoad,27,md-mod)
287 endef
288
289 define KernelPackage/md-mod/description
290  Kernel RAID md module (md-mod.ko).
291  You will need to select at least one RAID level module below.
292 endef
293
294 $(eval $(call KernelPackage,md-mod))
295
296
297 define KernelPackage/md/Depends
298   SUBMENU:=$(BLOCK_MENU)
299   DEPENDS:=kmod-md-mod $(1)
300 endef
301
302
303 define KernelPackage/md-linear
304 $(call KernelPackage/md/Depends,)
305   TITLE:=RAID Linear Module
306   KCONFIG:=CONFIG_MD_LINEAR
307   FILES:=$(LINUX_DIR)/drivers/md/linear.ko
308   AUTOLOAD:=$(call AutoLoad,28,linear)
309 endef
310
311 define KernelPackage/md-linear/description
312  RAID "Linear" or "Append" driver module (linear.ko)
313 endef
314
315 $(eval $(call KernelPackage,md-linear))
316
317
318 define KernelPackage/md-raid0
319 $(call KernelPackage/md/Depends,)
320   TITLE:=RAID0 Module
321   KCONFIG:=CONFIG_MD_RAID0
322   FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
323   AUTOLOAD:=$(call AutoLoad,28,raid0)
324 endef
325
326 define KernelPackage/md-raid0/description
327  RAID Level 0 (Striping) driver module (raid0.ko)
328 endef
329
330 $(eval $(call KernelPackage,md-raid0))
331
332
333 define KernelPackage/md-raid1
334 $(call KernelPackage/md/Depends,)
335   TITLE:=RAID1 Module
336   KCONFIG:=CONFIG_MD_RAID1
337   FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
338   AUTOLOAD:=$(call AutoLoad,28,raid1)
339 endef
340
341 define KernelPackage/md-raid1/description
342  RAID Level 1 (Mirroring) driver (raid1.ko)
343 endef
344
345 $(eval $(call KernelPackage,md-raid1))
346
347
348 define KernelPackage/md-raid10
349 $(call KernelPackage/md/Depends,)
350   TITLE:=RAID10 Module
351   KCONFIG:=CONFIG_MD_RAID10
352   FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
353   AUTOLOAD:=$(call AutoLoad,28,raid10)
354 endef
355
356 define KernelPackage/md-raid10/description
357  RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
358 endef
359
360 $(eval $(call KernelPackage,md-raid10))
361
362
363 define KernelPackage/md-raid456
364 $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor +LINUX_4_4:kmod-lib-crc32c)
365   TITLE:=RAID Level 456 Driver
366   KCONFIG:= \
367        CONFIG_ASYNC_CORE \
368        CONFIG_ASYNC_MEMCPY \
369        CONFIG_ASYNC_XOR \
370        CONFIG_ASYNC_PQ \
371        CONFIG_ASYNC_RAID6_RECOV \
372        CONFIG_ASYNC_RAID6_TEST=n \
373        CONFIG_MD_RAID456 \
374        CONFIG_MULTICORE_RAID456=n
375   FILES:= \
376         $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
377         $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
378         $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
379         $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
380         $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
381         $(LINUX_DIR)/drivers/md/raid456.ko
382   AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
383 endef
384
385 define KernelPackage/md-raid456/description
386  RAID Level 4,5,6 kernel module (raid456.ko)
387
388  Includes the following modules required by
389  raid456.ko:
390     xor.ko
391     async_tx.ko
392     async_xor.ko
393     async_memcpy.ko
394     async_pq.ko
395     async_raid5_recov.ko
396     raid6_pq.ko
397 endef
398
399 $(eval $(call KernelPackage,md-raid456))
400
401
402 define KernelPackage/md-multipath
403 $(call KernelPackage/md/Depends,)
404   TITLE:=MD Multipath Module
405   KCONFIG:=CONFIG_MD_MULTIPATH
406   FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
407   AUTOLOAD:=$(call AutoLoad,29,multipath)
408 endef
409
410 define KernelPackage/md-multipath/description
411  Multipath driver module (multipath.ko)
412 endef
413
414 $(eval $(call KernelPackage,md-multipath))
415
416
417 define KernelPackage/ide-core
418   SUBMENU:=$(BLOCK_MENU)
419   TITLE:=IDE (ATA/ATAPI) device support
420   DEPENDS:=@PCI_SUPPORT
421   KCONFIG:= \
422         CONFIG_IDE \
423         CONFIG_BLK_DEV_IDE \
424         CONFIG_BLK_DEV_IDEDISK \
425         CONFIG_IDE_GD \
426         CONFIG_IDE_GD_ATA=y \
427         CONFIG_IDE_GD_ATAPI=n \
428         CONFIG_IDEPCI_PCIBUS_ORDER=y \
429         CONFIG_BLK_DEV_IDEDMA_PCI=y \
430         CONFIG_BLK_DEV_IDEPCI=y
431   FILES:= \
432         $(LINUX_DIR)/drivers/ide/ide-core.ko \
433         $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
434 endef
435
436 define KernelPackage/ide-core/description
437  Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
438  Includes:
439  - ide-core
440  - ide-gd_mod
441 endef
442
443 $(eval $(call KernelPackage,ide-core))
444
445
446 define AddDepends/ide
447   SUBMENU:=$(BLOCK_MENU)
448   DEPENDS+=kmod-ide-core $(1)
449 endef
450
451
452 define KernelPackage/ide-generic
453   SUBMENU:=$(BLOCK_MENU)
454   DEPENDS:=@PCI_SUPPORT
455   TITLE:=Kernel support for generic PCI IDE chipsets
456   KCONFIG:=CONFIG_BLK_DEV_GENERIC
457   FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
458   AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
459   $(call AddDepends/ide)
460 endef
461
462 $(eval $(call KernelPackage,ide-generic))
463
464
465 define KernelPackage/ide-generic-old
466   SUBMENU:=$(BLOCK_MENU)
467   TITLE:=Kernel support for generic (legacy) IDE chipsets
468   KCONFIG:=CONFIG_IDE_GENERIC
469   FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
470   AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
471   $(call AddDepends/ide)
472 endef
473
474 $(eval $(call KernelPackage,ide-generic-old))
475
476
477 define KernelPackage/ide-aec62xx
478   TITLE:=Acard AEC62xx IDE driver
479   DEPENDS:=@PCI_SUPPORT
480   KCONFIG:=CONFIG_BLK_DEV_AEC62XX
481   FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
482   AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
483   $(call AddDepends/ide)
484 endef
485
486 define KernelPackage/ide-aec62xx/description
487  Support for Acard AEC62xx (Artop ATP8xx) IDE controllers
488 endef
489
490 $(eval $(call KernelPackage,ide-aec62xx,1))
491
492
493 define KernelPackage/ide-pdc202xx
494   TITLE:=Promise PDC202xx IDE driver
495   DEPENDS:=@PCI_SUPPORT
496   KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
497   FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
498   AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
499   $(call AddDepends/ide)
500 endef
501
502 define KernelPackage/ide-pdc202xx/description
503  Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
504  controllers.
505 endef
506
507 $(eval $(call KernelPackage,ide-pdc202xx))
508
509
510 define KernelPackage/ide-it821x
511   TITLE:=ITE IT821x IDE driver
512   DEPENDS:=@PCI_SUPPORT
513   KCONFIG:=CONFIG_BLK_DEV_IT821X
514   FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
515   AUTOLOAD:=$(call AutoLoad,30,it821x,1)
516   $(call AddDepends/ide)
517 endef
518
519 define KernelPackage/ide-it821x/description
520  Kernel module for the ITE IDE821x IDE controllers
521 endef
522
523 $(eval $(call KernelPackage,ide-it821x))
524
525
526 define KernelPackage/libsas
527   SUBMENU:=$(BLOCK_MENU)
528   DEPENDS:=@TARGET_x86
529   TITLE:=SAS Domain Transport Attributes
530   KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
531         CONFIG_SCSI_SAS_ATTRS \
532         CONFIG_SCSI_SAS_ATA=y \
533         CONFIG_SCSI_SAS_HOST_SMP=y \
534         CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
535   FILES:= \
536         $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
537         $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
538   AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
539 endef
540
541 define KernelPackage/libsas/description
542  SAS Domain Transport Attributes support
543 endef
544
545 $(eval $(call KernelPackage,libsas,1))
546
547
548 define KernelPackage/loop
549   SUBMENU:=$(BLOCK_MENU)
550   TITLE:=Loopback device support
551   KCONFIG:= \
552         CONFIG_BLK_DEV_LOOP \
553         CONFIG_BLK_DEV_CRYPTOLOOP=n
554   FILES:=$(LINUX_DIR)/drivers/block/loop.ko
555   AUTOLOAD:=$(call AutoLoad,30,loop)
556 endef
557
558 define KernelPackage/loop/description
559  Kernel module for loopback device support
560 endef
561
562 $(eval $(call KernelPackage,loop))
563
564
565 define KernelPackage/mvsas
566   SUBMENU:=$(BLOCK_MENU)
567   TITLE:=Marvell 88SE6440 SAS/SATA driver
568   DEPENDS:=@TARGET_x86 +kmod-libsas
569   KCONFIG:= \
570         CONFIG_SCSI_MVSAS \
571         CONFIG_SCSI_MVSAS_TASKLET=n
572   FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
573   AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
574 endef
575
576 define KernelPackage/mvsas/description
577  Kernel support for the Marvell SAS SCSI adapters
578 endef
579
580 $(eval $(call KernelPackage,mvsas))
581
582
583 define KernelPackage/nbd
584   SUBMENU:=$(BLOCK_MENU)
585   TITLE:=Network block device support
586   KCONFIG:=CONFIG_BLK_DEV_NBD
587   FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
588   AUTOLOAD:=$(call AutoLoad,30,nbd)
589 endef
590
591 define KernelPackage/nbd/description
592  Kernel module for network block device support
593 endef
594
595 $(eval $(call KernelPackage,nbd))
596
597
598 define KernelPackage/scsi-core
599   SUBMENU:=$(BLOCK_MENU)
600   TITLE:=SCSI device support
601   KCONFIG:= \
602         CONFIG_SCSI \
603         CONFIG_BLK_DEV_SD
604   FILES:= \
605         $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
606         $(LINUX_DIR)/drivers/scsi/sd_mod.ko
607   AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
608 endef
609
610 $(eval $(call KernelPackage,scsi-core))
611
612
613 define KernelPackage/scsi-generic
614   SUBMENU:=$(BLOCK_MENU)
615   TITLE:=Kernel support for SCSI generic
616   DEPENDS:=+kmod-scsi-core
617   KCONFIG:= \
618         CONFIG_CHR_DEV_SG
619   FILES:= \
620         $(LINUX_DIR)/drivers/scsi/sg.ko
621   AUTOLOAD:=$(call AutoLoad,65,sg)
622 endef
623
624 $(eval $(call KernelPackage,scsi-generic))
625
626
627 define KernelPackage/scsi-cdrom
628   SUBMENU:=$(BLOCK_MENU)
629   TITLE:=Kernel support for CD / DVD drives
630   DEPENDS:=+kmod-scsi-core
631   KCONFIG:= \
632     CONFIG_BLK_DEV_SR \
633     CONFIG_BLK_DEV_SR_VENDOR=n
634   FILES:= \
635     $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
636     $(LINUX_DIR)/drivers/scsi/sr_mod.ko
637   AUTOLOAD:=$(call AutoLoad,45,sr_mod)
638 endef
639
640 $(eval $(call KernelPackage,scsi-cdrom))
641
642
643 define KernelPackage/scsi-tape
644   SUBMENU:=$(BLOCK_MENU)
645   TITLE:=Kernel support for scsi tape drives
646   DEPENDS:=+kmod-scsi-core
647   KCONFIG:= \
648     CONFIG_CHR_DEV_ST
649   FILES:= \
650     $(LINUX_DIR)/drivers/scsi/st.ko
651   AUTOLOAD:=$(call AutoLoad,45,st)
652 endef
653
654 $(eval $(call KernelPackage,scsi-tape))