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_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-marvell-sata
94 TITLE
:=Marvell Serial ATA support
95 KCONFIG
:=CONFIG_SATA_MV
96 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_mv.ko
97 AUTOLOAD
:=$(call AutoLoad
,41,sata_mv
,1)
98 $(call AddDepends
/ata
)
101 define KernelPackage
/ata-marvell-sata
/description
102 SATA support for marvell chipsets
105 $(eval
$(call KernelPackage
,ata-marvell-sata
))
108 define KernelPackage
/ata-nvidia-sata
109 TITLE
:=Nvidia Serial ATA support
110 KCONFIG
:=CONFIG_SATA_NV
111 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_nv.ko
112 AUTOLOAD
:=$(call AutoLoad
,41,sata_nv
,1)
113 $(call AddDepends
/ata
)
116 $(eval
$(call KernelPackage
,ata-nvidia-sata
))
119 define KernelPackage
/ata-pdc202xx-old
120 TITLE
:=Older Promise PATA controller support
124 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.ko
125 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
126 $(call AddDepends
/ata
)
129 define KernelPackage
/ata-pdc202xx-old
/description
130 This option enables support for the Promise
20246, 20262, 20263,
131 20265 and
20267 adapters
134 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
137 define KernelPackage
/ata-piix
138 TITLE
:=Intel PIIX PATA
/SATA support
139 KCONFIG
:=CONFIG_ATA_PIIX
140 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.ko
141 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
142 $(call AddDepends
/ata
)
145 define KernelPackage
/ata-piix
/description
146 SATA support for Intel ICH5
/6/7/8 series host controllers and
147 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers
150 $(eval
$(call KernelPackage
,ata-piix
))
153 define KernelPackage
/ata-sil
154 TITLE
:=Silicon Image SATA support
155 KCONFIG
:=CONFIG_SATA_SIL
156 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.ko
157 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
158 $(call AddDepends
/ata
)
161 define KernelPackage
/ata-sil
/description
162 Support for Silicon Image Serial ATA controllers
165 $(eval
$(call KernelPackage
,ata-sil
))
168 define KernelPackage
/ata-sil24
169 TITLE
:=Silicon Image
3124/3132 SATA support
170 KCONFIG
:=CONFIG_SATA_SIL24
171 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.ko
172 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
173 $(call AddDepends
/ata
)
176 define KernelPackage
/ata-sil24
/description
177 Support for Silicon Image
3124/3132 Serial ATA controllers
180 $(eval
$(call KernelPackage
,ata-sil24
))
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
/dax
209 SUBMENU
:=$(BLOCK_MENU
)
210 TITLE
:=DAX
: direct access to differentiated memory
212 FILES
:=$(LINUX_DIR
)/drivers
/dax
/dax.ko
215 $(eval
$(call KernelPackage
,dax
))
218 define KernelPackage
/dm
219 SUBMENU
:=$(BLOCK_MENU
)
221 DEPENDS
:=+kmod-crypto-manager
+kmod-dax
222 # All the "=n" are unnecessary, they're only there
223 # to stop the config from asking the question.
224 # MIRROR is M because I've needed it for pvmove.
226 CONFIG_BLK_DEV_MD
=n \
230 CONFIG_DM_LOG_WRITES
=n \
231 CONFIG_DM_MQ_DEFAULT
=n \
232 CONFIG_DM_MULTIPATH
=n \
234 CONFIG_DM_SNAPSHOT
=n \
235 CONFIG_DM_LOG_USERSPACE
=n \
241 $(LINUX_DIR
)/drivers
/md
/dm-mod.ko \
242 $(LINUX_DIR
)/drivers
/md
/dm-crypt.ko \
243 $(LINUX_DIR
)/drivers
/md
/dm-log.ko \
244 $(LINUX_DIR
)/drivers
/md
/dm-mirror.ko \
245 $(LINUX_DIR
)/drivers
/md
/dm-region-hash.ko
246 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
)
249 define KernelPackage
/dm
/description
250 Kernel module necessary for LVM2 support
253 $(eval
$(call KernelPackage
,dm
))
255 define KernelPackage
/dm-raid
256 SUBMENU
:=$(BLOCK_MENU
)
257 TITLE
:=LVM2 raid support
258 DEPENDS
:=+kmod-dm
+kmod-md-mod \
259 +kmod-md-raid0
+kmod-md-raid1
+kmod-md-raid10
+kmod-md-raid456
262 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-raid.ko
263 AUTOLOAD
:=$(call AutoLoad
,31,dm-raid
)
266 define KernelPackage
/dm-raid
/description
267 Kernel module necessary for LVM2 raid support
270 $(eval
$(call KernelPackage
,dm-raid
))
273 define KernelPackage
/iscsi-initiator
274 SUBMENU
:=$(BLOCK_MENU
)
275 TITLE
:=iSCSI Initiator over TCP
/IP
276 DEPENDS
:=+kmod-scsi-core
+kmod-crypto-hash
279 CONFIG_SCSI_LOWLEVEL \
281 CONFIG_SCSI_ISCSI_ATTRS
283 $(LINUX_DIR
)/drivers
/scsi
/iscsi_tcp.ko \
284 $(LINUX_DIR
)/drivers
/scsi
/libiscsi.ko \
285 $(LINUX_DIR
)/drivers
/scsi
/libiscsi_tcp.ko \
286 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_iscsi.ko
287 AUTOLOAD
:=$(call AutoProbe
,libiscsi libiscsi_tcp scsi_transport_iscsi iscsi_tcp
)
290 define KernelPackage
/iscsi-initiator
/description
291 The iSCSI Driver provides a host with the ability to access storage through an
292 IP network. The driver uses the iSCSI protocol to transport SCSI requests and
293 responses over a TCP
/IP network between the host
(the
"initiator") and
"targets".
296 $(eval
$(call KernelPackage
,iscsi-initiator
))
299 define KernelPackage
/md-mod
300 SUBMENU
:=$(BLOCK_MENU
)
304 CONFIG_BLK_DEV_MD
=m \
305 CONFIG_MD_AUTODETECT
=y \
307 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.ko
308 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
311 define KernelPackage
/md-mod
/description
312 Kernel RAID md module
(md-mod.ko
).
313 You will need to select at least one RAID level module below.
316 $(eval
$(call KernelPackage
,md-mod
))
319 define KernelPackage
/md
/Depends
320 SUBMENU
:=$(BLOCK_MENU
)
321 DEPENDS
:=kmod-md-mod
$(1)
325 define KernelPackage
/md-linear
326 $(call KernelPackage
/md
/Depends
,)
327 TITLE
:=RAID Linear Module
328 KCONFIG
:=CONFIG_MD_LINEAR
329 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.ko
330 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
333 define KernelPackage
/md-linear
/description
334 RAID
"Linear" or
"Append" driver module
(linear.ko
)
337 $(eval
$(call KernelPackage
,md-linear
))
340 define KernelPackage
/md-raid0
341 $(call KernelPackage
/md
/Depends
,)
343 KCONFIG
:=CONFIG_MD_RAID0
344 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.ko
345 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
348 define KernelPackage
/md-raid0
/description
349 RAID Level
0 (Striping
) driver module
(raid0.ko
)
352 $(eval
$(call KernelPackage
,md-raid0
))
355 define KernelPackage
/md-raid1
356 $(call KernelPackage
/md
/Depends
,)
358 KCONFIG
:=CONFIG_MD_RAID1
359 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.ko
360 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
363 define KernelPackage
/md-raid1
/description
364 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
367 $(eval
$(call KernelPackage
,md-raid1
))
370 define KernelPackage
/md-raid10
371 $(call KernelPackage
/md
/Depends
,)
373 KCONFIG
:=CONFIG_MD_RAID10
374 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.ko
375 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
378 define KernelPackage
/md-raid10
/description
379 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
382 $(eval
$(call KernelPackage
,md-raid10
))
385 define KernelPackage
/md-raid456
386 $(call KernelPackage
/md
/Depends
,+kmod-lib-raid6
+kmod-lib-xor
+kmod-lib-crc32c
)
387 TITLE
:=RAID Level
456 Driver
390 CONFIG_ASYNC_MEMCPY \
393 CONFIG_ASYNC_RAID6_RECOV \
394 CONFIG_ASYNC_RAID6_TEST
=n \
396 CONFIG_MULTICORE_RAID456
=n
398 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.ko \
399 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.ko \
400 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.ko \
401 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.ko \
402 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.ko \
403 $(LINUX_DIR
)/drivers
/md
/raid456.ko
404 AUTOLOAD
:=$(call AutoLoad
,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456
)
407 define KernelPackage
/md-raid456
/description
408 RAID Level
4,5,6 kernel module
(raid456.ko
)
410 Includes the following modules required by
421 $(eval
$(call KernelPackage
,md-raid456
))
424 define KernelPackage
/md-multipath
425 $(call KernelPackage
/md
/Depends
,)
426 TITLE
:=MD Multipath Module
427 KCONFIG
:=CONFIG_MD_MULTIPATH
428 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.ko
429 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
432 define KernelPackage
/md-multipath
/description
433 Multipath driver module
(multipath.ko
)
436 $(eval
$(call KernelPackage
,md-multipath
))
439 define KernelPackage
/libsas
440 SUBMENU
:=$(BLOCK_MENU
)
442 TITLE
:=SAS Domain Transport Attributes
443 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
444 CONFIG_SCSI_SAS_ATTRS \
445 CONFIG_SCSI_SAS_ATA
=y \
446 CONFIG_SCSI_SAS_HOST_SMP
=y \
447 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
449 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.ko \
450 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.ko
451 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
454 define KernelPackage
/libsas
/description
455 SAS Domain Transport Attributes support
458 $(eval
$(call KernelPackage
,libsas
,1))
461 define KernelPackage
/loop
462 SUBMENU
:=$(BLOCK_MENU
)
463 TITLE
:=Loopback device support
465 CONFIG_BLK_DEV_LOOP \
466 CONFIG_BLK_DEV_CRYPTOLOOP
=n
467 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.ko
468 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
471 define KernelPackage
/loop
/description
472 Kernel module for loopback device support
475 $(eval
$(call KernelPackage
,loop
))
478 define KernelPackage
/mvsas
479 SUBMENU
:=$(BLOCK_MENU
)
480 TITLE
:=Marvell
88SE6440 SAS
/SATA driver
481 DEPENDS
:=@TARGET_x86
+kmod-libsas
484 CONFIG_SCSI_MVSAS_TASKLET
=n
485 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
486 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
489 define KernelPackage
/mvsas
/description
490 Kernel support for the Marvell SAS SCSI adapters
493 $(eval
$(call KernelPackage
,mvsas
))
496 define KernelPackage
/nbd
497 SUBMENU
:=$(BLOCK_MENU
)
498 TITLE
:=Network block device support
499 KCONFIG
:=CONFIG_BLK_DEV_NBD
500 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
501 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
504 define KernelPackage
/nbd
/description
505 Kernel module for network block device support
508 $(eval
$(call KernelPackage
,nbd
))
511 define KernelPackage
/scsi-core
512 SUBMENU
:=$(BLOCK_MENU
)
513 TITLE
:=SCSI device support
518 $(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko \
519 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
520 AUTOLOAD
:=$(call AutoLoad
,40,scsi_mod sd_mod
,1)
523 $(eval
$(call KernelPackage
,scsi-core
))
526 define KernelPackage
/scsi-generic
527 SUBMENU
:=$(BLOCK_MENU
)
528 TITLE
:=Kernel support for SCSI generic
529 DEPENDS
:=+kmod-scsi-core
533 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
534 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
537 $(eval
$(call KernelPackage
,scsi-generic
))
540 define KernelPackage
/scsi-cdrom
541 SUBMENU
:=$(BLOCK_MENU
)
542 TITLE
:=Kernel support for CD
/ DVD drives
543 DEPENDS
:=+kmod-scsi-core
546 CONFIG_BLK_DEV_SR_VENDOR
=n
548 $(LINUX_DIR
)/drivers
/cdrom
/cdrom.ko \
549 $(LINUX_DIR
)/drivers
/scsi
/sr_mod.ko
550 AUTOLOAD
:=$(call AutoLoad
,45,sr_mod
)
553 $(eval
$(call KernelPackage
,scsi-cdrom
))
556 define KernelPackage
/scsi-tape
557 SUBMENU
:=$(BLOCK_MENU
)
558 TITLE
:=Kernel support for scsi tape drives
559 DEPENDS
:=+kmod-scsi-core
563 $(LINUX_DIR
)/drivers
/scsi
/st.ko
564 AUTOLOAD
:=$(call AutoLoad
,45,st
)
567 $(eval
$(call KernelPackage
,scsi-tape
))