2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 BLOCK_MENU:=Block Devices
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)
18 define KernelPackage/aoe/description
19 Kernel support for ATA over Ethernet
22 $(eval $(call KernelPackage,aoe))
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)
30 FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
31 AUTOLOAD:=$(call AutoLoad,21,libata,1)
34 $(eval $(call KernelPackage,ata-core))
38 SUBMENU:=$(BLOCK_MENU)
39 DEPENDS+=kmod-ata-core $(1)
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)
51 AUTOLOAD:=$(call AutoLoad,41,ahci,1)
53 $(call AddDepends/ata)
56 define KernelPackage/ata-ahci/description
57 Support for AHCI Serial ATA controllers.
60 $(eval $(call KernelPackage,ata-ahci))
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)
71 define KernelPackage/ata-artop/description
72 PATA support for ARTOP 6210/6260 host controllers.
75 $(eval $(call KernelPackage,ata-artop))
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)
86 define KernelPackage/ata-marvell-sata/description
87 SATA support for marvell chipsets
90 $(eval $(call KernelPackage,ata-marvell-sata))
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)
101 $(eval $(call KernelPackage,ata-nvidia-sata))
104 define KernelPackage/ata-pdc202xx-old
105 SUBMENU:=$(BLOCK_MENU)
106 TITLE:=Older Promise PATA controller support
107 DEPENDS:=kmod-ata-core
111 FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
112 AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
115 define KernelPackage/ata-pdc202xx-old/description
116 This option enables support for the Promise 20246, 20262, 20263,
117 20265 and 20267 adapters.
120 $(eval $(call KernelPackage,ata-pdc202xx-old))
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)
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.
136 $(eval $(call KernelPackage,ata-piix))
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)
147 define KernelPackage/ata-sil/description
148 Support for Silicon Image Serial ATA controllers.
151 $(eval $(call KernelPackage,ata-sil))
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)
162 define KernelPackage/ata-sil24/description
163 Support for Silicon Image 3124/3132 Serial ATA controllers.
166 $(eval $(call KernelPackage,ata-sil24))
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)
176 define KernelPackage/ata-sis/description
177 Support for SIS Serial ATA controllers.
180 $(eval $(call KernelPackage,ata-sis))
183 define KernelPackage/ata-via-sata
184 TITLE:=VIA SATA support
185 KCONFIG:=CONFIG_SATA_VIA
186 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
187 AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
188 $(call AddDepends/ata)
191 define KernelPackage/ata-via-sata/description
192 This option enables support for VIA Serial ATA.
195 $(eval $(call KernelPackage,ata-via-sata))
198 define KernelPackage/block2mtd
199 SUBMENU:=$(BLOCK_MENU)
200 TITLE:=Block device MTD emulation
201 KCONFIG:=CONFIG_MTD_BLOCK2MTD
202 FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
205 $(eval $(call KernelPackage,block2mtd))
208 define KernelPackage/dm
209 SUBMENU:=$(BLOCK_MENU)
211 # All the "=n" are unnecessary, they're only there
212 # to stop the config from asking the question.
213 # MIRROR is M because I've needed it for pvmove.
215 CONFIG_BLK_DEV_MD=n \
219 CONFIG_DM_MULTIPATH=n \
221 CONFIG_DM_SNAPSHOT=n \
222 CONFIG_DM_LOG_USERSPACE=n \
227 FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
228 AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
231 define KernelPackage/dm/description
232 Kernel module necessary for LVM2 support
235 $(eval $(call KernelPackage,dm))
238 define KernelPackage/md-mod
239 SUBMENU:=$(BLOCK_MENU)
243 CONFIG_BLK_DEV_MD=m \
244 CONFIG_MD_AUTODETECT=y \
246 FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
247 AUTOLOAD:=$(call AutoLoad,27,md-mod)
250 define KernelPackage/md-mod/description
251 Kernel RAID md module (md-mod.ko).
252 You will need to select at least one RAID level module below.
255 $(eval $(call KernelPackage,md-mod))
258 define KernelPackage/md/Depends
259 SUBMENU:=$(BLOCK_MENU)
260 DEPENDS:=kmod-md-mod $(1)
264 define KernelPackage/md-linear
265 $(call KernelPackage/md/Depends,)
266 TITLE:=RAID Linear Module
267 KCONFIG:=CONFIG_MD_LINEAR
268 FILES:=$(LINUX_DIR)/drivers/md/linear.ko
269 AUTOLOAD:=$(call AutoLoad,28,linear)
272 define KernelPackage/md-linear/description
273 RAID "Linear" or "Append" driver module (linear.ko)
276 $(eval $(call KernelPackage,md-linear))
279 define KernelPackage/md-raid0
280 $(call KernelPackage/md/Depends,)
282 KCONFIG:=CONFIG_MD_RAID0
283 FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
284 AUTOLOAD:=$(call AutoLoad,28,raid0)
287 define KernelPackage/md-raid0/description
288 RAID Level 0 (Striping) driver module (raid0.ko)
291 $(eval $(call KernelPackage,md-raid0))
294 define KernelPackage/md-raid1
295 $(call KernelPackage/md/Depends,)
297 KCONFIG:=CONFIG_MD_RAID1
298 FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
299 AUTOLOAD:=$(call AutoLoad,28,raid1)
302 define KernelPackage/md-raid1/description
303 RAID Level 1 (Mirroring) driver (raid1.ko)
306 $(eval $(call KernelPackage,md-raid1))
309 define KernelPackage/md-raid10
310 $(call KernelPackage/md/Depends,)
312 KCONFIG:=CONFIG_MD_RAID10
313 FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
314 AUTOLOAD:=$(call AutoLoad,28,raid10)
317 define KernelPackage/md-raid10/description
318 RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
321 $(eval $(call KernelPackage,md-raid10))
324 define KernelPackage/md-raid456
325 $(call KernelPackage/md/Depends,)
326 TITLE:=RAID Level 456 Driver
330 CONFIG_ASYNC_MEMCPY \
333 CONFIG_ASYNC_RAID6_RECOV \
334 CONFIG_ASYNC_RAID6_TEST=n \
337 CONFIG_MULTICORE_RAID456=n
339 $(LINUX_DIR)/crypto/xor.ko \
340 $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
341 $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
342 $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
343 $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
344 $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
345 $(LINUX_DIR)/drivers/md/raid456.ko
346 # Additional files with kernel-dependent locations or presence
347 # For Linux >= 2.6.36
348 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)), 1)
350 $(LINUX_DIR)/lib/raid6/raid6_pq.ko
354 $(LINUX_DIR)/drivers/md/raid6_pq.ko
356 AUTOLOAD:=$(call AutoLoad,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456)
359 define KernelPackage/md-raid456/description
360 RAID Level 4,5,6 kernel module (raid456.ko)
362 Includes the following modules required by
373 $(eval $(call KernelPackage,md-raid456))
376 define KernelPackage/md-multipath
377 $(call KernelPackage/md/Depends,)
378 TITLE:=MD Multipath Module
379 KCONFIG:=CONFIG_MD_MULTIPATH
380 FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
381 AUTOLOAD:=$(call AutoLoad,29,multipath)
384 define KernelPackage/md-multipath/description
385 Multipath driver module (multipath.ko)
388 $(eval $(call KernelPackage,md-multipath))
391 define KernelPackage/ide-core
392 SUBMENU:=$(BLOCK_MENU)
393 TITLE:=IDE (ATA/ATAPI) device support
394 DEPENDS:=@PCI_SUPPORT
398 CONFIG_BLK_DEV_IDEDISK \
400 CONFIG_IDE_GD_ATA=y \
401 CONFIG_IDE_GD_ATAPI=n \
402 CONFIG_IDEPCI_PCIBUS_ORDER=y \
403 CONFIG_BLK_DEV_IDEDMA_PCI=y \
404 CONFIG_BLK_DEV_IDEPCI=y
406 $(LINUX_DIR)/drivers/ide/ide-core.ko \
407 $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
409 $(call AutoLoad,20,ide-core,1) \
410 $(call AutoLoad,40,ide-gd_mod,1)
413 define KernelPackage/ide-core/description
414 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
420 $(eval $(call KernelPackage,ide-core))
423 define AddDepends/ide
424 SUBMENU:=$(BLOCK_MENU)
425 DEPENDS+=kmod-ide-core $(1)
429 define KernelPackage/ide-generic
430 SUBMENU:=$(BLOCK_MENU)
431 DEPENDS:=@PCI_SUPPORT
432 TITLE:=Kernel support for generic PCI IDE chipsets
433 KCONFIG:=CONFIG_BLK_DEV_GENERIC
434 FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
435 AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
436 $(call AddDepends/ide)
439 $(eval $(call KernelPackage,ide-generic))
442 define KernelPackage/ide-generic-old
443 SUBMENU:=$(BLOCK_MENU)
444 TITLE:=Kernel support for generic (legacy) IDE chipsets
445 KCONFIG:=CONFIG_IDE_GENERIC
446 FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
447 AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
448 $(call AddDepends/ide)
451 $(eval $(call KernelPackage,ide-generic-old))
454 define KernelPackage/ide-aec62xx
455 TITLE:=Acard AEC62xx IDE driver
456 DEPENDS:=@PCI_SUPPORT
457 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
458 FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
459 AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
460 $(call AddDepends/ide)
463 define KernelPackage/ide-aec62xx/description
464 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
467 $(eval $(call KernelPackage,ide-aec62xx,1))
470 define KernelPackage/ide-pdc202xx
471 TITLE:=Promise PDC202xx IDE driver
472 DEPENDS:=@PCI_SUPPORT
473 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
474 FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
475 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
476 $(call AddDepends/ide)
479 define KernelPackage/ide-pdc202xx/description
480 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
484 $(eval $(call KernelPackage,ide-pdc202xx))
487 define KernelPackage/ide-it821x
488 TITLE:=ITE IT821x IDE driver
489 DEPENDS:=@PCI_SUPPORT
490 KCONFIG:=CONFIG_BLK_DEV_IT821X
491 FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
492 AUTOLOAD:=$(call AutoLoad,30,it821x,1)
493 $(call AddDepends/ide)
496 define KernelPackage/ide-it821x/description
497 Kernel module for the ITE IDE821x IDE controllers.
500 $(eval $(call KernelPackage,ide-it821x))
503 define KernelPackage/cs5535
504 TITLE:=NSC/AMD CS5535 chipset support
506 KCONFIG:=CONFIG_BLK_DEV_CS5535
507 FILES=$(LINUX_DIR)/drivers/ide/cs5535.ko
508 AUTOLOAD:=$(call AutoLoad,30,cs5535,1)
509 $(call AddDepends/ide)
512 define KernelPackage/cs5535/description
513 Kernel module for the NSC/AMD CS5535 companion chip
516 $(eval $(call KernelPackage,cs5535))
519 define KernelPackage/cs5536
520 TITLE:=AMD CS5536 chipset support
522 KCONFIG:=CONFIG_BLK_DEV_CS5536
523 FILES=$(LINUX_DIR)/drivers/ide/cs5536.ko
524 AUTOLOAD:=$(call AutoLoad,30,cs5536,1)
525 $(call AddDepends/ide)
528 define KernelPackage/cs5536/description
529 Kernel module for the AMD CS5536 Geode LX companion chip
532 $(eval $(call KernelPackage,cs5536))
535 define KernelPackage/pata-cs5535
536 TITLE:=CS5535 PATA support
537 DEPENDS:=@TARGET_x86 @PCI_SUPPORT
538 KCONFIG:=CONFIG_PATA_CS5535
539 FILES=$(LINUX_DIR)/drivers/ata/pata_cs5535.ko
540 AUTOLOAD:=$(call AutoLoad,30,pata_cs5535,1)
541 $(call AddDepends/ata)
544 define KernelPackage/pata-cs5535/description
545 Kernel module for the NSC/AMD CS5535 companion chip
548 $(eval $(call KernelPackage,pata-cs5535))
551 define KernelPackage/pata-cs5536
552 TITLE:=CS5536 PATA support
553 DEPENDS:=@TARGET_x86 @PCI_SUPPORT
554 KCONFIG:=CONFIG_PATA_CS5536
555 FILES=$(LINUX_DIR)/drivers/ata/pata_cs5536.ko
556 AUTOLOAD:=$(call AutoLoad,30,pata_cs5536,1)
557 $(call AddDepends/ata)
560 define KernelPackage/pata-cs5536/description
561 Kernel module for the AMD CS5536 Geode LX companion chip
564 $(eval $(call KernelPackage,pata-cs5536))
567 define KernelPackage/libsas
568 SUBMENU:=$(BLOCK_MENU)
569 TITLE:=SAS Domain Transport Attributes
571 KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
572 CONFIG_SCSI_SAS_ATTRS \
573 CONFIG_SCSI_SAS_ATA=y \
574 CONFIG_SCSI_SAS_HOST_SMP=y \
575 CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
577 $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
578 $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
579 AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
582 define KernelPackage/libsas/description
583 SAS Domain Transport Attributes support.
586 $(eval $(call KernelPackage,libsas,1))
589 define KernelPackage/loop
590 SUBMENU:=$(BLOCK_MENU)
591 TITLE:=Loopback device support
593 CONFIG_BLK_DEV_LOOP \
594 CONFIG_BLK_DEV_CRYPTOLOOP=n
595 FILES:=$(LINUX_DIR)/drivers/block/loop.ko
596 AUTOLOAD:=$(call AutoLoad,30,loop)
599 define KernelPackage/loop/description
600 Kernel module for loopback device support
603 $(eval $(call KernelPackage,loop))
606 define KernelPackage/mvsas
607 SUBMENU:=$(BLOCK_MENU)
608 TITLE:=Marvell 88SE6440 SAS/SATA driver
609 DEPENDS:=@TARGET_x86 +kmod-libsas
610 KCONFIG:=CONFIG_SCSI_MVSAS
611 ifneq ($(CONFIG_LINUX_2_6_30),)
612 FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.ko
614 FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
616 AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
619 define KernelPackage/mvsas/description
620 Kernel support for the Marvell SAS SCSI adapters
623 $(eval $(call KernelPackage,mvsas))
626 define KernelPackage/nbd
627 SUBMENU:=$(BLOCK_MENU)
628 TITLE:=Network block device support
629 KCONFIG:=CONFIG_BLK_DEV_NBD
630 FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
631 AUTOLOAD:=$(call AutoLoad,30,nbd)
634 define KernelPackage/nbd/description
635 Kernel module for network block device support
638 $(eval $(call KernelPackage,nbd))
641 define KernelPackage/scsi-core
642 SUBMENU:=$(BLOCK_MENU)
643 TITLE:=SCSI device support
648 $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
649 $(LINUX_DIR)/drivers/scsi/sd_mod.ko
650 AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
653 $(eval $(call KernelPackage,scsi-core))
656 define KernelPackage/scsi-generic
657 SUBMENU:=$(BLOCK_MENU)
658 TITLE:=Kernel support for SCSI generic
659 DEPENDS:=+kmod-scsi-core
663 $(LINUX_DIR)/drivers/scsi/sg.ko
664 AUTOLOAD:=$(call AutoLoad,65,sg)
667 $(eval $(call KernelPackage,scsi-generic))
670 define KernelPackage/scsi-cdrom
671 SUBMENU:=$(BLOCK_MENU)
672 TITLE:=Kernel support for CD / DVD drives
673 DEPENDS:=+kmod-scsi-core
676 CONFIG_BLK_DEV_SR_VENDOR=n
678 $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
679 $(LINUX_DIR)/drivers/scsi/sr_mod.ko
680 AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
683 $(eval $(call KernelPackage,scsi-cdrom))