88cdcc5786e2e932e6a64845213ec5a01c76aa70
[openwrt.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-oxnas-sata
155   TITLE:=oxnas Serial ATA support
156   KCONFIG:=CONFIG_SATA_OXNAS
157   DEPENDS:=@TARGET_oxnas
158   FILES:=$(LINUX_DIR)/drivers/ata/sata_oxnas.ko
159   AUTOLOAD:=$(call AutoLoad,41,sata_oxnas,1)
160   $(call AddDepends/ata)
161 endef
162
163 define KernelPackage/ata-oxnas-sata/description
164  SATA support for OX934 core found in the OX82x/PLX782x SoCs
165 endef
166
167 $(eval $(call KernelPackage,ata-oxnas-sata))
168
169
170 define KernelPackage/ata-pdc202xx-old
171   SUBMENU:=$(BLOCK_MENU)
172   TITLE:=Older Promise PATA controller support
173   DEPENDS:=kmod-ata-core
174   KCONFIG:= \
175        CONFIG_ATA_SFF=y \
176        CONFIG_PATA_PDC_OLD
177   FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
178   AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
179 endef
180
181 define KernelPackage/ata-pdc202xx-old/description
182  This option enables support for the Promise 20246, 20262, 20263,
183  20265 and 20267 adapters
184 endef
185
186 $(eval $(call KernelPackage,ata-pdc202xx-old))
187
188
189 define KernelPackage/ata-piix
190   TITLE:=Intel PIIX PATA/SATA support
191   KCONFIG:=CONFIG_ATA_PIIX
192   FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
193   AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
194   $(call AddDepends/ata)
195 endef
196
197 define KernelPackage/ata-piix/description
198  SATA support for Intel ICH5/6/7/8 series host controllers and
199  PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
200 endef
201
202 $(eval $(call KernelPackage,ata-piix))
203
204
205 define KernelPackage/ata-sil
206   TITLE:=Silicon Image SATA support
207   KCONFIG:=CONFIG_SATA_SIL
208   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
209   AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
210   $(call AddDepends/ata)
211 endef
212
213 define KernelPackage/ata-sil/description
214  Support for Silicon Image Serial ATA controllers
215 endef
216
217 $(eval $(call KernelPackage,ata-sil))
218
219
220 define KernelPackage/ata-sil24
221   TITLE:=Silicon Image 3124/3132 SATA support
222   KCONFIG:=CONFIG_SATA_SIL24
223   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
224   AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
225   $(call AddDepends/ata)
226 endef
227
228 define KernelPackage/ata-sil24/description
229  Support for Silicon Image 3124/3132 Serial ATA controllers
230 endef
231
232 $(eval $(call KernelPackage,ata-sil24))
233
234
235 define KernelPackage/ata-via-sata
236   TITLE:=VIA SATA support
237   KCONFIG:=CONFIG_SATA_VIA
238   FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
239   AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
240   $(call AddDepends/ata)
241 endef
242
243 define KernelPackage/ata-via-sata/description
244  This option enables support for VIA Serial ATA
245 endef
246
247 $(eval $(call KernelPackage,ata-via-sata))
248
249
250 define KernelPackage/block2mtd
251   SUBMENU:=$(BLOCK_MENU)
252   TITLE:=Block device MTD emulation
253   KCONFIG:=CONFIG_MTD_BLOCK2MTD
254   FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
255 endef
256
257 $(eval $(call KernelPackage,block2mtd))
258
259
260 define KernelPackage/dm
261   SUBMENU:=$(BLOCK_MENU)
262   TITLE:=Device Mapper
263   DEPENDS:=+kmod-crypto-manager
264   # All the "=n" are unnecessary, they're only there
265   # to stop the config from asking the question.
266   # MIRROR is M because I've needed it for pvmove.
267   KCONFIG:= \
268         CONFIG_BLK_DEV_MD=n \
269         CONFIG_DM_DEBUG=n \
270         CONFIG_DM_UEVENT=n \
271         CONFIG_DM_DELAY=n \
272         CONFIG_DM_LOG_WRITES=n \
273         CONFIG_DM_MQ_DEFAULT=n \
274         CONFIG_DM_MULTIPATH=n \
275         CONFIG_DM_ZERO=n \
276         CONFIG_DM_SNAPSHOT=n \
277         CONFIG_DM_LOG_USERSPACE=n \
278         CONFIG_MD=y \
279         CONFIG_BLK_DEV_DM \
280         CONFIG_DM_CRYPT \
281         CONFIG_DM_MIRROR
282   FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
283   AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
284 endef
285
286 define KernelPackage/dm/description
287  Kernel module necessary for LVM2 support
288 endef
289
290 $(eval $(call KernelPackage,dm))
291
292
293 define KernelPackage/md-mod
294   SUBMENU:=$(BLOCK_MENU)
295   TITLE:=MD RAID
296   KCONFIG:= \
297        CONFIG_MD=y \
298        CONFIG_BLK_DEV_MD=m \
299        CONFIG_MD_AUTODETECT=y \
300        CONFIG_MD_FAULTY=n
301   FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
302   AUTOLOAD:=$(call AutoLoad,27,md-mod)
303 endef
304
305 define KernelPackage/md-mod/description
306  Kernel RAID md module (md-mod.ko).
307  You will need to select at least one RAID level module below.
308 endef
309
310 $(eval $(call KernelPackage,md-mod))
311
312
313 define KernelPackage/md/Depends
314   SUBMENU:=$(BLOCK_MENU)
315   DEPENDS:=kmod-md-mod $(1)
316 endef
317
318
319 define KernelPackage/md-linear
320 $(call KernelPackage/md/Depends,)
321   TITLE:=RAID Linear Module
322   KCONFIG:=CONFIG_MD_LINEAR
323   FILES:=$(LINUX_DIR)/drivers/md/linear.ko
324   AUTOLOAD:=$(call AutoLoad,28,linear)
325 endef
326
327 define KernelPackage/md-linear/description
328  RAID "Linear" or "Append" driver module (linear.ko)
329 endef
330
331 $(eval $(call KernelPackage,md-linear))
332
333
334 define KernelPackage/md-raid0
335 $(call KernelPackage/md/Depends,)
336   TITLE:=RAID0 Module
337   KCONFIG:=CONFIG_MD_RAID0
338   FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
339   AUTOLOAD:=$(call AutoLoad,28,raid0)
340 endef
341
342 define KernelPackage/md-raid0/description
343  RAID Level 0 (Striping) driver module (raid0.ko)
344 endef
345
346 $(eval $(call KernelPackage,md-raid0))
347
348
349 define KernelPackage/md-raid1
350 $(call KernelPackage/md/Depends,)
351   TITLE:=RAID1 Module
352   KCONFIG:=CONFIG_MD_RAID1
353   FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
354   AUTOLOAD:=$(call AutoLoad,28,raid1)
355 endef
356
357 define KernelPackage/md-raid1/description
358  RAID Level 1 (Mirroring) driver (raid1.ko)
359 endef
360
361 $(eval $(call KernelPackage,md-raid1))
362
363
364 define KernelPackage/md-raid10
365 $(call KernelPackage/md/Depends,)
366   TITLE:=RAID10 Module
367   KCONFIG:=CONFIG_MD_RAID10
368   FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
369   AUTOLOAD:=$(call AutoLoad,28,raid10)
370 endef
371
372 define KernelPackage/md-raid10/description
373  RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
374 endef
375
376 $(eval $(call KernelPackage,md-raid10))
377
378
379 define KernelPackage/md-raid456
380 $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor)
381   TITLE:=RAID Level 456 Driver
382   KCONFIG:= \
383        CONFIG_ASYNC_CORE \
384        CONFIG_ASYNC_MEMCPY \
385        CONFIG_ASYNC_XOR \
386        CONFIG_ASYNC_PQ \
387        CONFIG_ASYNC_RAID6_RECOV \
388        CONFIG_ASYNC_RAID6_TEST=n \
389        CONFIG_MD_RAID456 \
390        CONFIG_MULTICORE_RAID456=n
391   FILES:= \
392         $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
393         $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
394         $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
395         $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
396         $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
397         $(LINUX_DIR)/drivers/md/raid456.ko
398   AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
399 endef
400
401 define KernelPackage/md-raid456/description
402  RAID Level 4,5,6 kernel module (raid456.ko)
403
404  Includes the following modules required by
405  raid456.ko:
406     xor.ko
407     async_tx.ko
408     async_xor.ko
409     async_memcpy.ko
410     async_pq.ko
411     async_raid5_recov.ko
412     raid6_pq.ko
413 endef
414
415 $(eval $(call KernelPackage,md-raid456))
416
417
418 define KernelPackage/md-multipath
419 $(call KernelPackage/md/Depends,)
420   TITLE:=MD Multipath Module
421   KCONFIG:=CONFIG_MD_MULTIPATH
422   FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
423   AUTOLOAD:=$(call AutoLoad,29,multipath)
424 endef
425
426 define KernelPackage/md-multipath/description
427  Multipath driver module (multipath.ko)
428 endef
429
430 $(eval $(call KernelPackage,md-multipath))
431
432
433 define KernelPackage/ide-core
434   SUBMENU:=$(BLOCK_MENU)
435   TITLE:=IDE (ATA/ATAPI) device support
436   DEPENDS:=@PCI_SUPPORT
437   KCONFIG:= \
438         CONFIG_IDE \
439         CONFIG_BLK_DEV_IDE \
440         CONFIG_BLK_DEV_IDEDISK \
441         CONFIG_IDE_GD \
442         CONFIG_IDE_GD_ATA=y \
443         CONFIG_IDE_GD_ATAPI=n \
444         CONFIG_IDEPCI_PCIBUS_ORDER=y \
445         CONFIG_BLK_DEV_IDEDMA_PCI=y \
446         CONFIG_BLK_DEV_IDEPCI=y
447   FILES:= \
448         $(LINUX_DIR)/drivers/ide/ide-core.ko \
449         $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
450 endef
451
452 define KernelPackage/ide-core/description
453  Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
454  Includes:
455  - ide-core
456  - ide-gd_mod
457 endef
458
459 $(eval $(call KernelPackage,ide-core))
460
461
462 define AddDepends/ide
463   SUBMENU:=$(BLOCK_MENU)
464   DEPENDS+=kmod-ide-core $(1)
465 endef
466
467
468 define KernelPackage/ide-generic
469   SUBMENU:=$(BLOCK_MENU)
470   DEPENDS:=@PCI_SUPPORT
471   TITLE:=Kernel support for generic PCI IDE chipsets
472   KCONFIG:=CONFIG_BLK_DEV_GENERIC
473   FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
474   AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
475   $(call AddDepends/ide)
476 endef
477
478 $(eval $(call KernelPackage,ide-generic))
479
480
481 define KernelPackage/ide-generic-old
482   SUBMENU:=$(BLOCK_MENU)
483   TITLE:=Kernel support for generic (legacy) IDE chipsets
484   KCONFIG:=CONFIG_IDE_GENERIC
485   FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
486   AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
487   $(call AddDepends/ide)
488 endef
489
490 $(eval $(call KernelPackage,ide-generic-old))
491
492
493 define KernelPackage/ide-aec62xx
494   TITLE:=Acard AEC62xx IDE driver
495   DEPENDS:=@PCI_SUPPORT
496   KCONFIG:=CONFIG_BLK_DEV_AEC62XX
497   FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
498   AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
499   $(call AddDepends/ide)
500 endef
501
502 define KernelPackage/ide-aec62xx/description
503  Support for Acard AEC62xx (Artop ATP8xx) IDE controllers
504 endef
505
506 $(eval $(call KernelPackage,ide-aec62xx,1))
507
508
509 define KernelPackage/ide-pdc202xx
510   TITLE:=Promise PDC202xx IDE driver
511   DEPENDS:=@PCI_SUPPORT
512   KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
513   FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
514   AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
515   $(call AddDepends/ide)
516 endef
517
518 define KernelPackage/ide-pdc202xx/description
519  Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
520  controllers.
521 endef
522
523 $(eval $(call KernelPackage,ide-pdc202xx))
524
525
526 define KernelPackage/ide-it821x
527   TITLE:=ITE IT821x IDE driver
528   DEPENDS:=@PCI_SUPPORT
529   KCONFIG:=CONFIG_BLK_DEV_IT821X
530   FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
531   AUTOLOAD:=$(call AutoLoad,30,it821x,1)
532   $(call AddDepends/ide)
533 endef
534
535 define KernelPackage/ide-it821x/description
536  Kernel module for the ITE IDE821x IDE controllers
537 endef
538
539 $(eval $(call KernelPackage,ide-it821x))
540
541
542 define KernelPackage/libsas
543   SUBMENU:=$(BLOCK_MENU)
544   DEPENDS:=@TARGET_x86
545   TITLE:=SAS Domain Transport Attributes
546   KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
547         CONFIG_SCSI_SAS_ATTRS \
548         CONFIG_SCSI_SAS_ATA=y \
549         CONFIG_SCSI_SAS_HOST_SMP=y \
550         CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
551   FILES:= \
552         $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
553         $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
554   AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
555 endef
556
557 define KernelPackage/libsas/description
558  SAS Domain Transport Attributes support
559 endef
560
561 $(eval $(call KernelPackage,libsas,1))
562
563
564 define KernelPackage/loop
565   SUBMENU:=$(BLOCK_MENU)
566   TITLE:=Loopback device support
567   KCONFIG:= \
568         CONFIG_BLK_DEV_LOOP \
569         CONFIG_BLK_DEV_CRYPTOLOOP=n
570   FILES:=$(LINUX_DIR)/drivers/block/loop.ko
571   AUTOLOAD:=$(call AutoLoad,30,loop)
572 endef
573
574 define KernelPackage/loop/description
575  Kernel module for loopback device support
576 endef
577
578 $(eval $(call KernelPackage,loop))
579
580
581 define KernelPackage/mvsas
582   SUBMENU:=$(BLOCK_MENU)
583   TITLE:=Marvell 88SE6440 SAS/SATA driver
584   DEPENDS:=@TARGET_x86 +kmod-libsas
585   KCONFIG:= \
586         CONFIG_SCSI_MVSAS \
587         CONFIG_SCSI_MVSAS_TASKLET=n
588   FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
589   AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
590 endef
591
592 define KernelPackage/mvsas/description
593  Kernel support for the Marvell SAS SCSI adapters
594 endef
595
596 $(eval $(call KernelPackage,mvsas))
597
598
599 define KernelPackage/nbd
600   SUBMENU:=$(BLOCK_MENU)
601   TITLE:=Network block device support
602   KCONFIG:=CONFIG_BLK_DEV_NBD
603   FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
604   AUTOLOAD:=$(call AutoLoad,30,nbd)
605 endef
606
607 define KernelPackage/nbd/description
608  Kernel module for network block device support
609 endef
610
611 $(eval $(call KernelPackage,nbd))
612
613
614 define KernelPackage/scsi-core
615   SUBMENU:=$(BLOCK_MENU)
616   TITLE:=SCSI device support
617   KCONFIG:= \
618         CONFIG_SCSI \
619         CONFIG_BLK_DEV_SD
620   FILES:= \
621         $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
622         $(LINUX_DIR)/drivers/scsi/sd_mod.ko
623   AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
624 endef
625
626 $(eval $(call KernelPackage,scsi-core))
627
628
629 define KernelPackage/scsi-generic
630   SUBMENU:=$(BLOCK_MENU)
631   TITLE:=Kernel support for SCSI generic
632   DEPENDS:=+kmod-scsi-core
633   KCONFIG:= \
634         CONFIG_CHR_DEV_SG
635   FILES:= \
636         $(LINUX_DIR)/drivers/scsi/sg.ko
637   AUTOLOAD:=$(call AutoLoad,65,sg)
638 endef
639
640 $(eval $(call KernelPackage,scsi-generic))
641
642
643 define KernelPackage/scsi-cdrom
644   SUBMENU:=$(BLOCK_MENU)
645   TITLE:=Kernel support for CD / DVD drives
646   DEPENDS:=+kmod-scsi-core
647   KCONFIG:= \
648     CONFIG_BLK_DEV_SR \
649     CONFIG_BLK_DEV_SR_VENDOR=n
650   FILES:= \
651     $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
652     $(LINUX_DIR)/drivers/scsi/sr_mod.ko
653   AUTOLOAD:=$(call AutoLoad,45,sr_mod)
654 endef
655
656 $(eval $(call KernelPackage,scsi-cdrom))
657
658
659 define KernelPackage/scsi-tape
660   SUBMENU:=$(OTHER_MENU)
661   TITLE:=Kernel support for scsi tape drives
662   DEPENDS:=+kmod-scsi-core
663   KCONFIG:= \
664     CONFIG_CHR_DEV_ST
665   FILES:= \
666     $(LINUX_DIR)/drivers/scsi/st.ko
667   AUTOLOAD:=$(call AutoLoad,45,st)
668 endef
669
670 $(eval $(call KernelPackage,scsi-tape))