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