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