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
30 FILES
:=$(LINUX_DIR
)/drivers
/ata
/libata.ko
33 $(eval
$(call KernelPackage
,ata-core
))
37 SUBMENU
:=$(BLOCK_MENU
)
38 DEPENDS
+=kmod-ata-core
$(1)
42 define KernelPackage
/ata-ahci
43 TITLE
:=AHCI Serial ATA support
44 KCONFIG
:=CONFIG_SATA_AHCI
46 $(LINUX_DIR
)/drivers
/ata
/ahci.ko \
47 $(LINUX_DIR
)/drivers
/ata
/libahci.ko
48 AUTOLOAD
:=$(call AutoLoad
,41,libahci ahci
,1)
49 $(call AddDepends
/ata
)
52 define KernelPackage
/ata-ahci
/description
53 Support for AHCI Serial ATA controllers
56 $(eval
$(call KernelPackage
,ata-ahci
))
59 define KernelPackage
/ata-ahci-platform
60 TITLE
:=AHCI Serial ATA Platform support
61 KCONFIG
:=CONFIG_SATA_AHCI_PLATFORM
63 $(LINUX_DIR
)/drivers
/ata
/ahci_platform.ko \
64 $(LINUX_DIR
)/drivers
/ata
/libahci_platform.ko
65 AUTOLOAD
:=$(call AutoLoad
,40,libahci_platform ahci_platform
,1)
66 $(call AddDepends
/ata
,@TARGET_ipq806x||TARGET_mvebu
+kmod-ata-ahci
)
69 define KernelPackage
/ata-ahci-platform
/description
70 Platform support for AHCI Serial ATA controllers
73 $(eval
$(call KernelPackage
,ata-ahci-platform
))
76 define KernelPackage
/ata-artop
77 TITLE
:=ARTOP
6210/6260 PATA support
78 KCONFIG
:=CONFIG_PATA_ARTOP
79 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_artop.ko
80 AUTOLOAD
:=$(call AutoLoad
,41,pata_artop
,1)
81 $(call AddDepends
/ata
)
84 define KernelPackage
/ata-artop
/description
85 PATA support for ARTOP
6210/6260 host controllers
88 $(eval
$(call KernelPackage
,ata-artop
))
91 define KernelPackage
/ata-imx
92 TITLE
:=Freescale i.MX AHCI SATA support
96 CONFIG_SATA_AHCI_PLATFORM \
98 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ahci_imx.ko
99 AUTOLOAD
:=$(call AutoLoad
,41,ahci_imx
,1)
100 $(call AddDepends
/ata
)
103 define KernelPackage
/ata-imx
/description
104 SATA support for the Freescale i.MX6 SoC
's onboard AHCI SATA
107 $(eval $(call KernelPackage,ata-imx))
110 define KernelPackage/ata-marvell-sata
111 TITLE:=Marvell Serial ATA support
112 KCONFIG:=CONFIG_SATA_MV
113 FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
114 AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
115 $(call AddDepends/ata)
118 define KernelPackage/ata-marvell-sata/description
119 SATA support for marvell chipsets
122 $(eval $(call KernelPackage,ata-marvell-sata))
125 define KernelPackage/ata-mvebu-ahci
126 TITLE:=Marvell EBU AHCI support
127 DEPENDS:=@TARGET_mvebu +kmod-ata-ahci-platform
128 KCONFIG:=CONFIG_AHCI_MVEBU
129 FILES:=$(LINUX_DIR)/drivers/ata/ahci_mvebu.ko
130 AUTOLOAD:=$(call AutoLoad,41,ahci_mvebu,1)
131 $(call AddDepends/ata)
134 define KernelPackage/ata-mvebu-ahci/description
135 AHCI support for Marvell EBU SoCs
138 $(eval $(call KernelPackage,ata-mvebu-ahci))
141 define KernelPackage/ata-nvidia-sata
142 TITLE:=Nvidia Serial ATA support
143 KCONFIG:=CONFIG_SATA_NV
144 FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
145 AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
146 $(call AddDepends/ata)
149 $(eval $(call KernelPackage,ata-nvidia-sata))
152 define KernelPackage/ata-oxnas-sata
153 TITLE:=oxnas Serial ATA support
154 KCONFIG:=CONFIG_SATA_OXNAS
155 DEPENDS:=@TARGET_oxnas
156 FILES:=$(LINUX_DIR)/drivers/ata/sata_oxnas.ko
157 AUTOLOAD:=$(call AutoLoad,41,sata_oxnas,1)
158 $(call AddDepends/ata)
161 define KernelPackage/ata-oxnas-sata/description
162 SATA support for OX934 core found in the OX82x/PLX782x SoCs
165 $(eval $(call KernelPackage,ata-oxnas-sata))
168 define KernelPackage/ata-pdc202xx-old
169 SUBMENU:=$(BLOCK_MENU)
170 TITLE:=Older Promise PATA controller support
171 DEPENDS:=kmod-ata-core
175 FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
176 AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
179 define KernelPackage/ata-pdc202xx-old/description
180 This option enables support for the Promise 20246, 20262, 20263,
181 20265 and 20267 adapters
184 $(eval $(call KernelPackage,ata-pdc202xx-old))
187 define KernelPackage/ata-piix
188 TITLE:=Intel PIIX PATA/SATA support
189 KCONFIG:=CONFIG_ATA_PIIX
190 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
191 AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
192 $(call AddDepends/ata)
195 define KernelPackage/ata-piix/description
196 SATA support for Intel ICH5/6/7/8 series host controllers and
197 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
200 $(eval $(call KernelPackage,ata-piix))
203 define KernelPackage/ata-sil
204 TITLE:=Silicon Image SATA support
205 KCONFIG:=CONFIG_SATA_SIL
206 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
207 AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
208 $(call AddDepends/ata)
211 define KernelPackage/ata-sil/description
212 Support for Silicon Image Serial ATA controllers
215 $(eval $(call KernelPackage,ata-sil))
218 define KernelPackage/ata-sil24
219 TITLE:=Silicon Image 3124/3132 SATA support
220 KCONFIG:=CONFIG_SATA_SIL24
221 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
222 AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
223 $(call AddDepends/ata)
226 define KernelPackage/ata-sil24/description
227 Support for Silicon Image 3124/3132 Serial ATA controllers
230 $(eval $(call KernelPackage,ata-sil24))
233 define KernelPackage/ata-via-sata
234 TITLE:=VIA SATA support
235 KCONFIG:=CONFIG_SATA_VIA
236 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
237 AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
238 $(call AddDepends/ata)
241 define KernelPackage/ata-via-sata/description
242 This option enables support for VIA Serial ATA
245 $(eval $(call KernelPackage,ata-via-sata))
248 define KernelPackage/block2mtd
249 SUBMENU:=$(BLOCK_MENU)
250 TITLE:=Block device MTD emulation
251 KCONFIG:=CONFIG_MTD_BLOCK2MTD
252 FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
255 $(eval $(call KernelPackage,block2mtd))
258 define KernelPackage/dm
259 SUBMENU:=$(BLOCK_MENU)
261 DEPENDS:=+kmod-crypto-manager
262 # All the "=n" are unnecessary, they're only there
263 # to stop the config from asking the question.
264 # MIRROR is M because I've needed it for pvmove.
266 CONFIG_BLK_DEV_MD
=n \
270 CONFIG_DM_MULTIPATH
=n \
272 CONFIG_DM_SNAPSHOT
=n \
273 CONFIG_DM_LOG_USERSPACE
=n \
278 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-
*.ko
279 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
)
282 define KernelPackage
/dm
/description
283 Kernel module necessary for LVM2 support
286 $(eval
$(call KernelPackage
,dm
))
289 define KernelPackage
/md-mod
290 SUBMENU
:=$(BLOCK_MENU
)
294 CONFIG_BLK_DEV_MD
=m \
295 CONFIG_MD_AUTODETECT
=y \
297 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.ko
298 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
301 define KernelPackage
/md-mod
/description
302 Kernel RAID md module
(md-mod.ko
).
303 You will need to select at least one RAID level module below.
306 $(eval
$(call KernelPackage
,md-mod
))
309 define KernelPackage
/md
/Depends
310 SUBMENU
:=$(BLOCK_MENU
)
311 DEPENDS
:=kmod-md-mod
$(1)
315 define KernelPackage
/md-linear
316 $(call KernelPackage
/md
/Depends
,)
317 TITLE
:=RAID Linear Module
318 KCONFIG
:=CONFIG_MD_LINEAR
319 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.ko
320 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
323 define KernelPackage
/md-linear
/description
324 RAID
"Linear" or
"Append" driver module
(linear.ko
)
327 $(eval
$(call KernelPackage
,md-linear
))
330 define KernelPackage
/md-raid0
331 $(call KernelPackage
/md
/Depends
,)
333 KCONFIG
:=CONFIG_MD_RAID0
334 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.ko
335 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
338 define KernelPackage
/md-raid0
/description
339 RAID Level
0 (Striping
) driver module
(raid0.ko
)
342 $(eval
$(call KernelPackage
,md-raid0
))
345 define KernelPackage
/md-raid1
346 $(call KernelPackage
/md
/Depends
,)
348 KCONFIG
:=CONFIG_MD_RAID1
349 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.ko
350 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
353 define KernelPackage
/md-raid1
/description
354 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
357 $(eval
$(call KernelPackage
,md-raid1
))
360 define KernelPackage
/md-raid10
361 $(call KernelPackage
/md
/Depends
,)
363 KCONFIG
:=CONFIG_MD_RAID10
364 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.ko
365 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
368 define KernelPackage
/md-raid10
/description
369 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
372 $(eval
$(call KernelPackage
,md-raid10
))
375 define KernelPackage
/md-raid456
376 $(call KernelPackage
/md
/Depends
,+kmod-lib-raid6
+kmod-lib-xor
)
377 TITLE
:=RAID Level
456 Driver
380 CONFIG_ASYNC_MEMCPY \
383 CONFIG_ASYNC_RAID6_RECOV \
384 CONFIG_ASYNC_RAID6_TEST
=n \
386 CONFIG_MULTICORE_RAID456
=n
388 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.ko \
389 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.ko \
390 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.ko \
391 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.ko \
392 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.ko \
393 $(LINUX_DIR
)/drivers
/md
/raid456.ko
394 AUTOLOAD
:=$(call AutoLoad
,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456
)
397 define KernelPackage
/md-raid456
/description
398 RAID Level
4,5,6 kernel module
(raid456.ko
)
400 Includes the following modules required by
411 $(eval
$(call KernelPackage
,md-raid456
))
414 define KernelPackage
/md-multipath
415 $(call KernelPackage
/md
/Depends
,)
416 TITLE
:=MD Multipath Module
417 KCONFIG
:=CONFIG_MD_MULTIPATH
418 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.ko
419 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
422 define KernelPackage
/md-multipath
/description
423 Multipath driver module
(multipath.ko
)
426 $(eval
$(call KernelPackage
,md-multipath
))
429 define KernelPackage
/ide-core
430 SUBMENU
:=$(BLOCK_MENU
)
431 TITLE
:=IDE
(ATA
/ATAPI
) device support
432 DEPENDS
:=@PCI_SUPPORT
436 CONFIG_BLK_DEV_IDEDISK \
438 CONFIG_IDE_GD_ATA
=y \
439 CONFIG_IDE_GD_ATAPI
=n \
440 CONFIG_IDEPCI_PCIBUS_ORDER
=y \
441 CONFIG_BLK_DEV_IDEDMA_PCI
=y \
442 CONFIG_BLK_DEV_IDEPCI
=y
444 $(LINUX_DIR
)/drivers
/ide
/ide-core.ko \
445 $(LINUX_DIR
)/drivers
/ide
/ide-gd_mod.ko
448 define KernelPackage
/ide-core
/description
449 Kernel support for IDE
, useful for usb mass storage devices
(e.g. on WL-HDD
)
455 $(eval
$(call KernelPackage
,ide-core
))
458 define AddDepends
/ide
459 SUBMENU
:=$(BLOCK_MENU
)
460 DEPENDS
+=kmod-ide-core
$(1)
464 define KernelPackage
/ide-generic
465 SUBMENU
:=$(BLOCK_MENU
)
466 DEPENDS
:=@PCI_SUPPORT
467 TITLE
:=Kernel support for generic PCI IDE chipsets
468 KCONFIG
:=CONFIG_BLK_DEV_GENERIC
469 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-pci-generic.ko
470 AUTOLOAD
:=$(call AutoLoad
,30,ide-pci-generic
,1)
471 $(call AddDepends
/ide
)
474 $(eval
$(call KernelPackage
,ide-generic
))
477 define KernelPackage
/ide-generic-old
478 SUBMENU
:=$(BLOCK_MENU
)
479 TITLE
:=Kernel support for generic
(legacy
) IDE chipsets
480 KCONFIG
:=CONFIG_IDE_GENERIC
481 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-generic.ko
482 AUTOLOAD
:=$(call AutoLoad
,30,ide-generic
,1)
483 $(call AddDepends
/ide
)
486 $(eval
$(call KernelPackage
,ide-generic-old
))
489 define KernelPackage
/ide-aec62xx
490 TITLE
:=Acard AEC62xx IDE driver
491 DEPENDS
:=@PCI_SUPPORT
492 KCONFIG
:=CONFIG_BLK_DEV_AEC62XX
493 FILES
:=$(LINUX_DIR
)/drivers
/ide
/aec62xx.ko
494 AUTOLOAD
:=$(call AutoLoad
,30,aec62xx
,1)
495 $(call AddDepends
/ide
)
498 define KernelPackage
/ide-aec62xx
/description
499 Support for Acard AEC62xx
(Artop ATP8xx
) IDE controllers
502 $(eval
$(call KernelPackage
,ide-aec62xx
,1))
505 define KernelPackage
/ide-pdc202xx
506 TITLE
:=Promise PDC202xx IDE driver
507 DEPENDS
:=@PCI_SUPPORT
508 KCONFIG
:=CONFIG_BLK_DEV_PDC202XX_OLD
509 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pdc202xx_old.ko
510 AUTOLOAD
:=$(call AutoLoad
,30,pdc202xx_old
,1)
511 $(call AddDepends
/ide
)
514 define KernelPackage
/ide-pdc202xx
/description
515 Support for the Promise Ultra
33/66/100 (PDC202
{46|
62|
65|
67|
68}) IDE
519 $(eval
$(call KernelPackage
,ide-pdc202xx
))
522 define KernelPackage
/ide-it821x
523 TITLE
:=ITE IT821x IDE driver
524 DEPENDS
:=@PCI_SUPPORT
525 KCONFIG
:=CONFIG_BLK_DEV_IT821X
526 FILES
=$(LINUX_DIR
)/drivers
/ide
/it821x.ko
527 AUTOLOAD
:=$(call AutoLoad
,30,it821x
,1)
528 $(call AddDepends
/ide
)
531 define KernelPackage
/ide-it821x
/description
532 Kernel module for the ITE IDE821x IDE controllers
535 $(eval
$(call KernelPackage
,ide-it821x
))
538 define KernelPackage
/libsas
539 SUBMENU
:=$(BLOCK_MENU
)
541 TITLE
:=SAS Domain Transport Attributes
542 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
543 CONFIG_SCSI_SAS_ATTRS \
544 CONFIG_SCSI_SAS_ATA
=y \
545 CONFIG_SCSI_SAS_HOST_SMP
=y \
546 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
548 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.ko \
549 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.ko
550 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
553 define KernelPackage
/libsas
/description
554 SAS Domain Transport Attributes support
557 $(eval
$(call KernelPackage
,libsas
,1))
560 define KernelPackage
/loop
561 SUBMENU
:=$(BLOCK_MENU
)
562 TITLE
:=Loopback device support
564 CONFIG_BLK_DEV_LOOP \
565 CONFIG_BLK_DEV_CRYPTOLOOP
=n
566 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.ko
567 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
570 define KernelPackage
/loop
/description
571 Kernel module for loopback device support
574 $(eval
$(call KernelPackage
,loop
))
577 define KernelPackage
/mvsas
578 SUBMENU
:=$(BLOCK_MENU
)
579 TITLE
:=Marvell
88SE6440 SAS
/SATA driver
580 DEPENDS
:=@TARGET_x86
+kmod-libsas
583 CONFIG_SCSI_MVSAS_TASKLET
=n
584 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
585 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
588 define KernelPackage
/mvsas
/description
589 Kernel support for the Marvell SAS SCSI adapters
592 $(eval
$(call KernelPackage
,mvsas
))
595 define KernelPackage
/nbd
596 SUBMENU
:=$(BLOCK_MENU
)
597 TITLE
:=Network block device support
598 KCONFIG
:=CONFIG_BLK_DEV_NBD
599 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
600 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
603 define KernelPackage
/nbd
/description
604 Kernel module for network block device support
607 $(eval
$(call KernelPackage
,nbd
))
610 define KernelPackage
/scsi-core
611 SUBMENU
:=$(BLOCK_MENU
)
612 TITLE
:=SCSI device support
617 $(if
$(findstring y
,$(CONFIG_SCSI
)),,$(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko
) \
618 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
619 AUTOLOAD
:=$(call AutoLoad
,40,sd_mod
,1)
622 $(eval
$(call KernelPackage
,scsi-core
))
625 define KernelPackage
/scsi-generic
626 SUBMENU
:=$(BLOCK_MENU
)
627 TITLE
:=Kernel support for SCSI generic
628 DEPENDS
:=+kmod-scsi-core
632 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
633 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
636 $(eval
$(call KernelPackage
,scsi-generic
))
639 define KernelPackage
/scsi-cdrom
640 SUBMENU
:=$(BLOCK_MENU
)
641 TITLE
:=Kernel support for CD
/ DVD drives
642 DEPENDS
:=+kmod-scsi-core
645 CONFIG_BLK_DEV_SR_VENDOR
=n
647 $(LINUX_DIR
)/drivers
/cdrom
/cdrom.ko \
648 $(LINUX_DIR
)/drivers
/scsi
/sr_mod.ko
649 AUTOLOAD
:=$(call AutoLoad
,45,sr_mod
)
652 $(eval
$(call KernelPackage
,scsi-cdrom
))