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||TARGET_sunxi
+kmod-scsi-core
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
36 $(eval
$(call KernelPackage
,ata-core
))
40 SUBMENU
:=$(BLOCK_MENU
)
41 DEPENDS
+=+kmod-ata-core
$(1)
45 define KernelPackage
/ata-ahci
46 TITLE
:=AHCI Serial ATA support
47 KCONFIG
:=CONFIG_SATA_AHCI
49 $(LINUX_DIR
)/drivers
/ata
/ahci.ko
50 AUTOLOAD
:=$(call AutoLoad
,41,libahci ahci
,1)
51 $(call AddDepends
/ata
)
54 define KernelPackage
/ata-ahci
/description
55 Support for AHCI Serial ATA controllers
58 $(eval
$(call KernelPackage
,ata-ahci
))
61 define KernelPackage
/ata-ahci-platform
62 TITLE
:=AHCI Serial ATA Platform support
63 KCONFIG
:=CONFIG_SATA_AHCI_PLATFORM
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_layerscape||TARGET_sunxi
)
71 define KernelPackage
/ata-ahci-platform
/description
72 Platform support for AHCI Serial ATA controllers
75 $(eval
$(call KernelPackage
,ata-ahci-platform
))
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
)
86 define KernelPackage
/ata-artop
/description
87 PATA support for ARTOP
6210/6260 host controllers
90 $(eval
$(call KernelPackage
,ata-artop
))
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 TITLE
:=Older Promise PATA controller support
109 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.ko
110 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
111 $(call AddDepends
/ata
)
114 define KernelPackage
/ata-pdc202xx-old
/description
115 This option enables support for the Promise
20246, 20262, 20263,
116 20265 and
20267 adapters
119 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
122 define KernelPackage
/ata-piix
123 TITLE
:=Intel PIIX PATA
/SATA support
124 KCONFIG
:=CONFIG_ATA_PIIX
125 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.ko
126 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
127 $(call AddDepends
/ata
)
130 define KernelPackage
/ata-piix
/description
131 SATA support for Intel ICH5
/6/7/8 series host controllers and
132 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers
135 $(eval
$(call KernelPackage
,ata-piix
))
138 define KernelPackage
/ata-sil
139 TITLE
:=Silicon Image SATA support
140 KCONFIG
:=CONFIG_SATA_SIL
141 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.ko
142 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
143 $(call AddDepends
/ata
)
146 define KernelPackage
/ata-sil
/description
147 Support for Silicon Image Serial ATA controllers
150 $(eval
$(call KernelPackage
,ata-sil
))
153 define KernelPackage
/ata-sil24
154 TITLE
:=Silicon Image
3124/3132 SATA support
155 KCONFIG
:=CONFIG_SATA_SIL24
156 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.ko
157 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
158 $(call AddDepends
/ata
)
161 define KernelPackage
/ata-sil24
/description
162 Support for Silicon Image
3124/3132 Serial ATA controllers
165 $(eval
$(call KernelPackage
,ata-sil24
))
168 define KernelPackage
/ata-via-sata
169 TITLE
:=VIA SATA support
170 KCONFIG
:=CONFIG_SATA_VIA
171 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_via.ko
172 AUTOLOAD
:=$(call AutoLoad
,41,sata_via
,1)
173 $(call AddDepends
/ata
)
176 define KernelPackage
/ata-via-sata
/description
177 This option enables support for VIA Serial ATA
180 $(eval
$(call KernelPackage
,ata-via-sata
))
183 define KernelPackage
/block2mtd
184 SUBMENU
:=$(BLOCK_MENU
)
185 TITLE
:=Block device MTD emulation
186 KCONFIG
:=CONFIG_MTD_BLOCK2MTD
187 FILES
:=$(LINUX_DIR
)/drivers
/mtd
/devices
/block2mtd.ko
190 $(eval
$(call KernelPackage
,block2mtd
))
193 define KernelPackage
/dax
194 SUBMENU
:=$(BLOCK_MENU
)
195 TITLE
:=DAX
: direct access to differentiated memory
197 FILES
:=$(LINUX_DIR
)/drivers
/dax
/dax.ko
200 $(eval
$(call KernelPackage
,dax
))
203 define KernelPackage
/dm
204 SUBMENU
:=$(BLOCK_MENU
)
206 DEPENDS
:=+kmod-crypto-manager
+kmod-dax
+KERNEL_KEYS
:kmod-keys-encrypted
207 # All the "=n" are unnecessary, they're only there
208 # to stop the config from asking the question.
209 # MIRROR is M because I've needed it for pvmove.
211 CONFIG_BLK_DEV_MD
=n \
215 CONFIG_DM_LOG_WRITES
=n \
216 CONFIG_DM_MQ_DEFAULT
=n \
217 CONFIG_DM_MULTIPATH
=n \
219 CONFIG_DM_SNAPSHOT
=n \
220 CONFIG_DM_LOG_USERSPACE
=n \
226 $(LINUX_DIR
)/drivers
/md
/dm-mod.ko \
227 $(LINUX_DIR
)/drivers
/md
/dm-crypt.ko \
228 $(LINUX_DIR
)/drivers
/md
/dm-log.ko \
229 $(LINUX_DIR
)/drivers
/md
/dm-mirror.ko \
230 $(LINUX_DIR
)/drivers
/md
/dm-region-hash.ko
231 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
,1)
234 define KernelPackage
/dm
/description
235 Kernel module necessary for LVM2 support
238 $(eval
$(call KernelPackage
,dm
))
240 define KernelPackage
/dm-raid
241 SUBMENU
:=$(BLOCK_MENU
)
242 TITLE
:=LVM2 raid support
243 DEPENDS
:=+kmod-dm
+kmod-md-mod \
244 +kmod-md-raid0
+kmod-md-raid1
+kmod-md-raid10
+kmod-md-raid456
247 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-raid.ko
248 AUTOLOAD
:=$(call AutoLoad
,31,dm-raid
)
251 define KernelPackage
/dm-raid
/description
252 Kernel module necessary for LVM2 raid support
255 $(eval
$(call KernelPackage
,dm-raid
))
258 define KernelPackage
/iscsi-initiator
259 SUBMENU
:=$(BLOCK_MENU
)
260 TITLE
:=iSCSI Initiator over TCP
/IP
261 DEPENDS
:=+kmod-scsi-core
+kmod-crypto-hash
264 CONFIG_SCSI_LOWLEVEL
=y \
266 CONFIG_SCSI_ISCSI_ATTRS
=y
268 $(LINUX_DIR
)/drivers
/scsi
/iscsi_tcp.ko \
269 $(LINUX_DIR
)/drivers
/scsi
/libiscsi.ko \
270 $(LINUX_DIR
)/drivers
/scsi
/libiscsi_tcp.ko \
271 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_iscsi.ko
272 AUTOLOAD
:=$(call AutoProbe
,libiscsi libiscsi_tcp scsi_transport_iscsi iscsi_tcp
)
275 define KernelPackage
/iscsi-initiator
/description
276 The iSCSI Driver provides a host with the ability to access storage through an
277 IP network. The driver uses the iSCSI protocol to transport SCSI requests and
278 responses over a TCP
/IP network between the host
(the
"initiator") and
"targets".
281 $(eval
$(call KernelPackage
,iscsi-initiator
))
284 define KernelPackage
/md-mod
285 SUBMENU
:=$(BLOCK_MENU
)
289 CONFIG_BLK_DEV_MD
=m \
290 CONFIG_MD_AUTODETECT
=y \
292 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.ko
293 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
296 define KernelPackage
/md-mod
/description
297 Kernel RAID md module
(md-mod.ko
).
298 You will need to select at least one RAID level module below.
301 $(eval
$(call KernelPackage
,md-mod
))
304 define KernelPackage
/md
/Depends
305 SUBMENU
:=$(BLOCK_MENU
)
306 DEPENDS
:=kmod-md-mod
$(1)
310 define KernelPackage
/md-linear
311 $(call KernelPackage
/md
/Depends
,)
312 TITLE
:=RAID Linear Module
313 KCONFIG
:=CONFIG_MD_LINEAR
314 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.ko
315 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
318 define KernelPackage
/md-linear
/description
319 RAID
"Linear" or
"Append" driver module
(linear.ko
)
322 $(eval
$(call KernelPackage
,md-linear
))
325 define KernelPackage
/md-raid0
326 $(call KernelPackage
/md
/Depends
,)
328 KCONFIG
:=CONFIG_MD_RAID0
329 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.ko
330 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
333 define KernelPackage
/md-raid0
/description
334 RAID Level
0 (Striping
) driver module
(raid0.ko
)
337 $(eval
$(call KernelPackage
,md-raid0
))
340 define KernelPackage
/md-raid1
341 $(call KernelPackage
/md
/Depends
,)
343 KCONFIG
:=CONFIG_MD_RAID1
344 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.ko
345 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
348 define KernelPackage
/md-raid1
/description
349 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
352 $(eval
$(call KernelPackage
,md-raid1
))
355 define KernelPackage
/md-raid10
356 $(call KernelPackage
/md
/Depends
,)
358 KCONFIG
:=CONFIG_MD_RAID10
359 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.ko
360 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
363 define KernelPackage
/md-raid10
/description
364 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
367 $(eval
$(call KernelPackage
,md-raid10
))
370 define KernelPackage
/md-raid456
371 $(call KernelPackage
/md
/Depends
,+kmod-lib-raid6
+kmod-lib-xor
+kmod-lib-crc32c
)
372 TITLE
:=RAID Level
456 Driver
375 CONFIG_ASYNC_MEMCPY \
378 CONFIG_ASYNC_RAID6_RECOV \
379 CONFIG_ASYNC_RAID6_TEST
=n \
381 CONFIG_MULTICORE_RAID456
=n
383 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.ko \
384 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.ko \
385 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.ko \
386 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.ko \
387 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.ko \
388 $(LINUX_DIR
)/drivers
/md
/raid456.ko
389 AUTOLOAD
:=$(call AutoLoad
,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456
)
392 define KernelPackage
/md-raid456
/description
393 RAID Level
4,5,6 kernel module
(raid456.ko
)
395 Includes the following modules required by
406 $(eval
$(call KernelPackage
,md-raid456
))
409 define KernelPackage
/md-multipath
410 $(call KernelPackage
/md
/Depends
,)
411 TITLE
:=MD Multipath Module
412 KCONFIG
:=CONFIG_MD_MULTIPATH
413 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.ko
414 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
417 define KernelPackage
/md-multipath
/description
418 Multipath driver module
(multipath.ko
)
421 $(eval
$(call KernelPackage
,md-multipath
))
424 define KernelPackage
/libsas
425 SUBMENU
:=$(BLOCK_MENU
)
427 TITLE
:=SAS Domain Transport Attributes
428 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
429 CONFIG_SCSI_SAS_ATTRS \
430 CONFIG_SCSI_SAS_ATA
=y \
431 CONFIG_SCSI_SAS_HOST_SMP
=y \
432 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
434 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.ko \
435 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.ko
436 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
439 define KernelPackage
/libsas
/description
440 SAS Domain Transport Attributes support
443 $(eval
$(call KernelPackage
,libsas
,1))
446 define KernelPackage
/loop
447 SUBMENU
:=$(BLOCK_MENU
)
448 TITLE
:=Loopback device support
450 CONFIG_BLK_DEV_LOOP \
451 CONFIG_BLK_DEV_CRYPTOLOOP
=n
452 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.ko
453 AUTOLOAD
:=$(call AutoLoad
,30,loop
,1)
456 define KernelPackage
/loop
/description
457 Kernel module for loopback device support
460 $(eval
$(call KernelPackage
,loop
))
463 define KernelPackage
/mvsas
464 SUBMENU
:=$(BLOCK_MENU
)
465 TITLE
:=Marvell
88SE6440 SAS
/SATA driver
466 DEPENDS
:=@TARGET_x86
+kmod-libsas
469 CONFIG_SCSI_MVSAS_TASKLET
=n
470 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
471 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
474 define KernelPackage
/mvsas
/description
475 Kernel support for the Marvell SAS SCSI adapters
478 $(eval
$(call KernelPackage
,mvsas
))
481 define KernelPackage
/nbd
482 SUBMENU
:=$(BLOCK_MENU
)
483 TITLE
:=Network block device support
484 KCONFIG
:=CONFIG_BLK_DEV_NBD
485 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
486 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
489 define KernelPackage
/nbd
/description
490 Kernel module for network block device support
493 $(eval
$(call KernelPackage
,nbd
))
496 define KernelPackage
/nvme
497 SUBMENU
:=$(BLOCK_MENU
)
498 TITLE
:=NVM Express block device
499 DEPENDS
:=@PCI_SUPPORT
502 CONFIG_BLK_DEV_NVME \
503 CONFIG_NVME_MULTIPATH
=n \
506 $(LINUX_DIR
)/drivers
/nvme
/host
/nvme-core.ko \
507 $(LINUX_DIR
)/drivers
/nvme
/host
/nvme.ko
508 AUTOLOAD
:=$(call AutoLoad
,30,nvme-core nvme
)
511 define KernelPackage
/nvme
/description
512 Kernel module for NVM Express solid state drives directly
513 connected to the PCI or PCI Express bus.
516 $(eval
$(call KernelPackage
,nvme
))
519 define KernelPackage
/scsi-core
520 SUBMENU
:=$(BLOCK_MENU
)
521 TITLE
:=SCSI device support
527 $(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko \
528 $(LINUX_DIR
)/drivers
/scsi
/scsi_common.ko \
529 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
530 AUTOLOAD
:=$(call AutoLoad
,40,scsi_mod scsi_common sd_mod
,1)
533 $(eval
$(call KernelPackage
,scsi-core
))
536 define KernelPackage
/scsi-generic
537 SUBMENU
:=$(BLOCK_MENU
)
538 TITLE
:=Kernel support for SCSI generic
539 DEPENDS
:=+kmod-scsi-core
543 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
544 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
547 $(eval
$(call KernelPackage
,scsi-generic
))
550 define KernelPackage
/cdrom
551 TITLE
:=Kernel library module for CD
/ DVD drives
552 KCONFIG
:=CONFIG_CDROM
554 FILES
:=$(LINUX_DIR
)/drivers
/cdrom
/cdrom.ko
557 $(eval
$(call KernelPackage
,cdrom
))
560 define KernelPackage
/scsi-cdrom
561 SUBMENU
:=$(BLOCK_MENU
)
562 TITLE
:=Kernel support for CD
/ DVD drives
563 DEPENDS
:=+kmod-scsi-core
+kmod-cdrom
566 CONFIG_BLK_DEV_SR_VENDOR
=n
567 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/sr_mod.ko
568 AUTOLOAD
:=$(call AutoLoad
,45,sr_mod
)
571 $(eval
$(call KernelPackage
,scsi-cdrom
))
574 define KernelPackage
/scsi-tape
575 SUBMENU
:=$(BLOCK_MENU
)
576 TITLE
:=Kernel support for scsi tape drives
577 DEPENDS
:=+kmod-scsi-core
581 $(LINUX_DIR
)/drivers
/scsi
/st.ko
582 AUTOLOAD
:=$(call AutoLoad
,45,st
)
585 $(eval
$(call KernelPackage
,scsi-tape
))
587 define KernelPackage
/iosched-bfq
588 SUBMENU
:=$(BLOCK_MENU
)
589 TITLE
:=Kernel support for BFQ I
/O scheduler
592 CONFIG_BFQ_GROUP_IOSCHED
=y \
593 CONFIG_BFQ_CGROUP_DEBUG
=n
595 $(LINUX_DIR
)/block
/bfq.ko
596 AUTOLOAD
:=$(call AutoLoad
,10,bfq
)
599 $(eval
$(call KernelPackage
,iosched-bfq
))