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 SUBMENU
:=$(BLOCK_MENU
)
121 TITLE
:=Older Promise PATA controller support
122 DEPENDS
:=kmod-ata-core
126 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.ko
127 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
130 define KernelPackage
/ata-pdc202xx-old
/description
131 This option enables support for the Promise
20246, 20262, 20263,
132 20265 and
20267 adapters
135 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
138 define KernelPackage
/ata-piix
139 TITLE
:=Intel PIIX PATA
/SATA support
140 KCONFIG
:=CONFIG_ATA_PIIX
141 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.ko
142 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
143 $(call AddDepends
/ata
)
146 define KernelPackage
/ata-piix
/description
147 SATA support for Intel ICH5
/6/7/8 series host controllers and
148 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers
151 $(eval
$(call KernelPackage
,ata-piix
))
154 define KernelPackage
/ata-sil
155 TITLE
:=Silicon Image SATA support
156 KCONFIG
:=CONFIG_SATA_SIL
157 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.ko
158 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
159 $(call AddDepends
/ata
)
162 define KernelPackage
/ata-sil
/description
163 Support for Silicon Image Serial ATA controllers
166 $(eval
$(call KernelPackage
,ata-sil
))
169 define KernelPackage
/ata-sil24
170 TITLE
:=Silicon Image
3124/3132 SATA support
171 KCONFIG
:=CONFIG_SATA_SIL24
172 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.ko
173 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
174 $(call AddDepends
/ata
)
177 define KernelPackage
/ata-sil24
/description
178 Support for Silicon Image
3124/3132 Serial ATA controllers
181 $(eval
$(call KernelPackage
,ata-sil24
))
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
)
192 define KernelPackage
/ata-via-sata
/description
193 This option enables support for VIA Serial ATA
196 $(eval
$(call KernelPackage
,ata-via-sata
))
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
206 $(eval
$(call KernelPackage
,block2mtd
))
209 define KernelPackage
/dax
210 SUBMENU
:=$(BLOCK_MENU
)
211 TITLE
:=DAX
: direct access to differentiated memory
214 FILES
:=$(LINUX_DIR
)/drivers
/dax
/dax.ko
217 $(eval
$(call KernelPackage
,dax
))
220 define KernelPackage
/dm
221 SUBMENU
:=$(BLOCK_MENU
)
223 DEPENDS
:=+kmod-crypto-manager
+LINUX_4_14
:kmod-dax
224 # All the "=n" are unnecessary, they're only there
225 # to stop the config from asking the question.
226 # MIRROR is M because I've needed it for pvmove.
228 CONFIG_BLK_DEV_MD
=n \
232 CONFIG_DM_LOG_WRITES
=n \
233 CONFIG_DM_MQ_DEFAULT
=n \
234 CONFIG_DM_MULTIPATH
=n \
236 CONFIG_DM_SNAPSHOT
=n \
237 CONFIG_DM_LOG_USERSPACE
=n \
242 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-
*.ko
243 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
)
246 define KernelPackage
/dm
/description
247 Kernel module necessary for LVM2 support
250 $(eval
$(call KernelPackage
,dm
))
253 define KernelPackage
/md-mod
254 SUBMENU
:=$(BLOCK_MENU
)
258 CONFIG_BLK_DEV_MD
=m \
259 CONFIG_MD_AUTODETECT
=y \
261 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.ko
262 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
265 define KernelPackage
/md-mod
/description
266 Kernel RAID md module
(md-mod.ko
).
267 You will need to select at least one RAID level module below.
270 $(eval
$(call KernelPackage
,md-mod
))
273 define KernelPackage
/md
/Depends
274 SUBMENU
:=$(BLOCK_MENU
)
275 DEPENDS
:=kmod-md-mod
$(1)
279 define KernelPackage
/md-linear
280 $(call KernelPackage
/md
/Depends
,)
281 TITLE
:=RAID Linear Module
282 KCONFIG
:=CONFIG_MD_LINEAR
283 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.ko
284 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
287 define KernelPackage
/md-linear
/description
288 RAID
"Linear" or
"Append" driver module
(linear.ko
)
291 $(eval
$(call KernelPackage
,md-linear
))
294 define KernelPackage
/md-raid0
295 $(call KernelPackage
/md
/Depends
,)
297 KCONFIG
:=CONFIG_MD_RAID0
298 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.ko
299 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
302 define KernelPackage
/md-raid0
/description
303 RAID Level
0 (Striping
) driver module
(raid0.ko
)
306 $(eval
$(call KernelPackage
,md-raid0
))
309 define KernelPackage
/md-raid1
310 $(call KernelPackage
/md
/Depends
,)
312 KCONFIG
:=CONFIG_MD_RAID1
313 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.ko
314 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
317 define KernelPackage
/md-raid1
/description
318 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
321 $(eval
$(call KernelPackage
,md-raid1
))
324 define KernelPackage
/md-raid10
325 $(call KernelPackage
/md
/Depends
,)
327 KCONFIG
:=CONFIG_MD_RAID10
328 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.ko
329 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
332 define KernelPackage
/md-raid10
/description
333 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
336 $(eval
$(call KernelPackage
,md-raid10
))
339 define KernelPackage
/md-raid456
340 $(call KernelPackage
/md
/Depends
,+kmod-lib-raid6
+kmod-lib-xor
+!LINUX_3_18
:kmod-lib-crc32c
)
341 TITLE
:=RAID Level
456 Driver
344 CONFIG_ASYNC_MEMCPY \
347 CONFIG_ASYNC_RAID6_RECOV \
348 CONFIG_ASYNC_RAID6_TEST
=n \
350 CONFIG_MULTICORE_RAID456
=n
352 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.ko \
353 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.ko \
354 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.ko \
355 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.ko \
356 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.ko \
357 $(LINUX_DIR
)/drivers
/md
/raid456.ko
358 AUTOLOAD
:=$(call AutoLoad
,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456
)
361 define KernelPackage
/md-raid456
/description
362 RAID Level
4,5,6 kernel module
(raid456.ko
)
364 Includes the following modules required by
375 $(eval
$(call KernelPackage
,md-raid456
))
378 define KernelPackage
/md-multipath
379 $(call KernelPackage
/md
/Depends
,)
380 TITLE
:=MD Multipath Module
381 KCONFIG
:=CONFIG_MD_MULTIPATH
382 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.ko
383 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
386 define KernelPackage
/md-multipath
/description
387 Multipath driver module
(multipath.ko
)
390 $(eval
$(call KernelPackage
,md-multipath
))
393 define KernelPackage
/libsas
394 SUBMENU
:=$(BLOCK_MENU
)
396 TITLE
:=SAS Domain Transport Attributes
397 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
398 CONFIG_SCSI_SAS_ATTRS \
399 CONFIG_SCSI_SAS_ATA
=y \
400 CONFIG_SCSI_SAS_HOST_SMP
=y \
401 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
403 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.ko \
404 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.ko
405 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
408 define KernelPackage
/libsas
/description
409 SAS Domain Transport Attributes support
412 $(eval
$(call KernelPackage
,libsas
,1))
415 define KernelPackage
/loop
416 SUBMENU
:=$(BLOCK_MENU
)
417 TITLE
:=Loopback device support
419 CONFIG_BLK_DEV_LOOP \
420 CONFIG_BLK_DEV_CRYPTOLOOP
=n
421 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.ko
422 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
425 define KernelPackage
/loop
/description
426 Kernel module for loopback device support
429 $(eval
$(call KernelPackage
,loop
))
432 define KernelPackage
/mvsas
433 SUBMENU
:=$(BLOCK_MENU
)
434 TITLE
:=Marvell
88SE6440 SAS
/SATA driver
435 DEPENDS
:=@TARGET_x86
+kmod-libsas
438 CONFIG_SCSI_MVSAS_TASKLET
=n
439 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
440 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
443 define KernelPackage
/mvsas
/description
444 Kernel support for the Marvell SAS SCSI adapters
447 $(eval
$(call KernelPackage
,mvsas
))
450 define KernelPackage
/nbd
451 SUBMENU
:=$(BLOCK_MENU
)
452 TITLE
:=Network block device support
453 KCONFIG
:=CONFIG_BLK_DEV_NBD
454 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
455 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
458 define KernelPackage
/nbd
/description
459 Kernel module for network block device support
462 $(eval
$(call KernelPackage
,nbd
))
465 define KernelPackage
/scsi-core
466 SUBMENU
:=$(BLOCK_MENU
)
467 TITLE
:=SCSI device support
472 $(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko \
473 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
474 AUTOLOAD
:=$(call AutoLoad
,40,scsi_mod sd_mod
,1)
477 $(eval
$(call KernelPackage
,scsi-core
))
480 define KernelPackage
/scsi-generic
481 SUBMENU
:=$(BLOCK_MENU
)
482 TITLE
:=Kernel support for SCSI generic
483 DEPENDS
:=+kmod-scsi-core
487 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
488 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
491 $(eval
$(call KernelPackage
,scsi-generic
))
494 define KernelPackage
/scsi-cdrom
495 SUBMENU
:=$(BLOCK_MENU
)
496 TITLE
:=Kernel support for CD
/ DVD drives
497 DEPENDS
:=+kmod-scsi-core
500 CONFIG_BLK_DEV_SR_VENDOR
=n
502 $(LINUX_DIR
)/drivers
/cdrom
/cdrom.ko \
503 $(LINUX_DIR
)/drivers
/scsi
/sr_mod.ko
504 AUTOLOAD
:=$(call AutoLoad
,45,sr_mod
)
507 $(eval
$(call KernelPackage
,scsi-cdrom
))
510 define KernelPackage
/scsi-tape
511 SUBMENU
:=$(BLOCK_MENU
)
512 TITLE
:=Kernel support for scsi tape drives
513 DEPENDS
:=+kmod-scsi-core
517 $(LINUX_DIR
)/drivers
/scsi
/st.ko
518 AUTOLOAD
:=$(call AutoLoad
,45,st
)
521 $(eval
$(call KernelPackage
,scsi-tape
))