2 # Copyright (C) 2006-2010 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||
!TARGET_x86
)
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
+=!TARGET_x86
: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 AUTOLOAD
:=$(call AutoLoad
,41,ahci
,1)
48 $(call AddDepends
/ata
)
51 define KernelPackage
/ata-ahci
/description
52 Support for AHCI Serial ATA controllers.
55 $(eval
$(call KernelPackage
,ata-ahci
))
58 define KernelPackage
/ata-artop
59 TITLE
:=ARTOP
6210/6260 PATA support
60 KCONFIG
:=CONFIG_PATA_ARTOP
61 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_artop.ko
62 AUTOLOAD
:=$(call AutoLoad
,41,pata_artop
,1)
63 $(call AddDepends
/ata
)
66 define KernelPackage
/ata-artop
/description
67 PATA support for ARTOP
6210/6260 host controllers.
70 $(eval
$(call KernelPackage
,ata-artop
))
73 define KernelPackage
/ata-nvidia-sata
74 TITLE
:=Nvidia Serial ATA support
75 KCONFIG
:=CONFIG_SATA_NV
76 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_nv.ko
77 AUTOLOAD
:=$(call AutoLoad
,41,sata_nv
,1)
78 $(call AddDepends
/ata
)
81 $(eval
$(call KernelPackage
,ata-nvidia-sata
))
84 define KernelPackage
/ata-pdc202xx-old
85 SUBMENU
:=$(BLOCK_MENU
)
86 TITLE
:=Older Promise PATA controller support
87 DEPENDS
:=kmod-ata-core
91 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.ko
92 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
95 define KernelPackage
/ata-pdc202xx-old
/description
96 This option enables support for the Promise
20246, 20262, 20263,
97 20265 and
20267 adapters.
100 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
103 define KernelPackage
/ata-piix
104 TITLE
:=Intel PIIX PATA
/SATA support
105 KCONFIG
:=CONFIG_ATA_PIIX
106 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.ko
107 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
108 $(call AddDepends
/ata
)
111 define KernelPackage
/ata-piix
/description
112 SATA support for Intel ICH5
/6/7/8 series host controllers and
113 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers.
116 $(eval
$(call KernelPackage
,ata-piix
))
119 define KernelPackage
/ata-sil
120 TITLE
:=Silicon Image SATA support
121 KCONFIG
:=CONFIG_SATA_SIL
122 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.ko
123 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
124 $(call AddDepends
/ata
)
127 define KernelPackage
/ata-sil
/description
128 Support for Silicon Image Serial ATA controllers.
131 $(eval
$(call KernelPackage
,ata-sil
))
134 define KernelPackage
/ata-sil24
135 TITLE
:=Silicon Image
3124/3132 SATA support
136 KCONFIG
:=CONFIG_SATA_SIL24
137 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.ko
138 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
139 $(call AddDepends
/ata
)
142 define KernelPackage
/ata-sil24
/description
143 Support for Silicon Image
3124/3132 Serial ATA controllers.
146 $(eval
$(call KernelPackage
,ata-sil24
))
149 define KernelPackage
/ata-via-sata
150 TITLE
:=VIA SATA support
151 KCONFIG
:=CONFIG_SATA_VIA
152 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_via.ko
153 AUTOLOAD
:=$(call AutoLoad
,41,sata_via
,1)
154 $(call AddDepends
/ata
)
157 define KernelPackage
/ata-via-sata
/description
158 This option enables support for VIA Serial ATA.
161 $(eval
$(call KernelPackage
,ata-via-sata
))
164 define KernelPackage
/block2mtd
165 SUBMENU
:=$(BLOCK_MENU
)
166 TITLE
:=Block device MTD emulation
167 KCONFIG
:=CONFIG_MTD_BLOCK2MTD
168 FILES
:=$(LINUX_DIR
)/drivers
/mtd
/devices
/block2mtd.ko
171 $(eval
$(call KernelPackage
,block2mtd
))
174 define KernelPackage
/dm
175 SUBMENU
:=$(BLOCK_MENU
)
177 # All the "=n" are unnecessary, they're only there
178 # to stop the config from asking the question.
179 # MIRROR is M because I've needed it for pvmove.
181 CONFIG_BLK_DEV_MD
=n \
185 CONFIG_DM_MULTIPATH
=n \
187 CONFIG_DM_SNAPSHOT
=n \
188 CONFIG_DM_LOG_USERSPACE
=n \
193 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-
*.ko
194 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
)
197 define KernelPackage
/dm
/description
198 Kernel module necessary for LVM2 support
201 $(eval
$(call KernelPackage
,dm
))
204 define KernelPackage
/md-mod
205 SUBMENU
:=$(BLOCK_MENU
)
209 CONFIG_BLK_DEV_MD
=m \
210 CONFIG_MD_AUTODETECT
=y \
212 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.
$(LINUX_KMOD_SUFFIX
)
213 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
216 define KernelPackage
/md-mod
/description
217 Kernel RAID md module
(md-mod.ko
).
218 You will need to select at least one RAID level module below.
221 $(eval
$(call KernelPackage
,md-mod
))
224 define KernelPackage
/md
/Depends
225 SUBMENU
:=$(BLOCK_MENU
)
226 DEPENDS
:=kmod-md-mod
$(1)
230 define KernelPackage
/md-linear
231 $(call KernelPackage
/md
/Depends
,)
232 TITLE
:=RAID Linear Module
233 KCONFIG
:=CONFIG_MD_LINEAR
=m
234 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.
$(LINUX_KMOD_SUFFIX
)
235 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
238 define KernelPackage
/md-linear
/description
239 RAID
"Linear" or
"Append" driver module
(linear.ko
)
242 $(eval
$(call KernelPackage
,md-linear
))
245 define KernelPackage
/md-raid0
246 $(call KernelPackage
/md
/Depends
,)
248 KCONFIG
:=CONFIG_MD_RAID0
=m
249 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.
$(LINUX_KMOD_SUFFIX
)
250 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
253 define KernelPackage
/md-raid0
/description
254 RAID Level
0 (Striping
) driver module
(raid0.ko
)
257 $(eval
$(call KernelPackage
,md-raid0
))
260 define KernelPackage
/md-raid1
261 $(call KernelPackage
/md
/Depends
,)
263 KCONFIG
:=CONFIG_MD_RAID1
=m
264 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.
$(LINUX_KMOD_SUFFIX
)
265 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
268 define KernelPackage
/md-raid1
/description
269 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
272 $(eval
$(call KernelPackage
,md-raid1
))
275 define KernelPackage
/md-raid10
276 $(call KernelPackage
/md
/Depends
,)
278 KCONFIG
:=CONFIG_MD_RAID10
=m
279 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.
$(LINUX_KMOD_SUFFIX
)
280 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
283 define KernelPackage
/md-raid10
/description
284 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
287 $(eval
$(call KernelPackage
,md-raid10
))
290 define KernelPackage
/md-raid456
291 $(call KernelPackage
/md
/Depends
,)
292 TITLE
:=RAID Level
456 Driver
294 CONFIG_XOR_BLOCKS
=m \
295 CONFIG_ASYNC_CORE
=m \
296 CONFIG_ASYNC_MEMCPY
=m \
299 CONFIG_ASYNC_RAID6_RECOV
=m \
300 CONFIG_ASYNC_RAID6_TEST
=n \
301 CONFIG_MD_RAID6_PQ
=m \
302 CONFIG_MD_RAID456
=m \
303 CONFIG_MULTICORE_RAID456
=n
305 $(LINUX_DIR
)/crypto
/xor.
$(LINUX_KMOD_SUFFIX
) \
306 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.
$(LINUX_KMOD_SUFFIX
) \
307 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.
$(LINUX_KMOD_SUFFIX
) \
308 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.
$(LINUX_KMOD_SUFFIX
) \
309 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.
$(LINUX_KMOD_SUFFIX
) \
310 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.
$(LINUX_KMOD_SUFFIX
) \
311 $(LINUX_DIR
)/drivers
/md
/raid456.
$(LINUX_KMOD_SUFFIX
)
312 # Additional files with kernel-dependent locations or presence
313 # For Linux >= 2.6.36
314 ifeq ($(strip $(call CompareKernelPatchVer
,$(KERNEL_PATCHVER
),ge
,2.6.36)), 1)
316 $(LINUX_DIR
)/lib
/raid6
/raid6_pq.
$(LINUX_KMOD_SUFFIX
)
320 $(LINUX_DIR
)/drivers
/md
/raid6_pq.
$(LINUX_KMOD_SUFFIX
)
322 AUTOLOAD
:=$(call AutoLoad
,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456
)
325 define KernelPackage
/md-raid456
/description
326 RAID Level
4,5,6 kernel module
(raid456.ko
)
328 Includes the following modules required by
339 $(eval
$(call KernelPackage
,md-raid456
))
342 define KernelPackage
/md-multipath
343 $(call KernelPackage
/md
/Depends
,)
344 TITLE
:=MD Multipath Module
345 KCONFIG
:=CONFIG_MD_MULTIPATH
=m
346 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.
$(LINUX_KMOD_SUFFIX
)
347 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
350 define KernelPackage
/md-multipath
/description
351 Multipath driver module
(multipath.ko
)
354 $(eval
$(call KernelPackage
,md-multipath
))
357 define KernelPackage
/ide-core
358 SUBMENU
:=$(BLOCK_MENU
)
359 TITLE
:=IDE
(ATA
/ATAPI
) device support
360 DEPENDS
:=@PCI_SUPPORT
364 CONFIG_BLK_DEV_IDEDISK \
366 CONFIG_IDE_GD_ATA
=y \
367 CONFIG_IDE_GD_ATAPI
=n \
368 CONFIG_IDEPCI_PCIBUS_ORDER
=y \
369 CONFIG_BLK_DEV_IDEDMA_PCI
=y \
370 CONFIG_BLK_DEV_IDEPCI
=y
372 $(LINUX_DIR
)/drivers
/ide
/ide-core.ko
374 $(call AutoLoad
,20,ide-core
,1)
377 define KernelPackage
/ide-core
/2.4
379 $(LINUX_DIR
)/drivers
/ide
/ide-detect.ko \
380 $(LINUX_DIR
)/drivers
/ide
/ide-disk.ko
382 $(call AutoLoad
,35,ide-detect
,1) \
383 $(call AutoLoad
,40,ide-disk
,1)
386 define KernelPackage
/ide-core
/2.6
388 $(LINUX_DIR
)/drivers
/ide
/ide-gd_mod.ko
390 $(call AutoLoad
,40,ide-gd_mod
,1)
393 define KernelPackage
/ide-core
/description
394 Kernel support for IDE
, useful for usb mass storage devices
(e.g. on WL-HDD
)
398 - ide-gd_mod
(or ide-disk
)
401 $(eval
$(call KernelPackage
,ide-core
))
404 define AddDepends
/ide
405 SUBMENU
:=$(BLOCK_MENU
)
406 DEPENDS
+=kmod-ide-core
$(1)
410 define KernelPackage
/ide-generic
411 SUBMENU
:=$(BLOCK_MENU
)
412 DEPENDS
:=@PCI_SUPPORT
413 TITLE
:=Kernel support for generic PCI IDE chipsets
414 KCONFIG
:=CONFIG_BLK_DEV_GENERIC
415 $(call AddDepends
/ide
)
418 define KernelPackage
/ide-generic
/2.4
420 $(LINUX_DIR
)/drivers
/ide
/pci
/generic.ko
422 $(call AutoLoad
,30,generic
,1)
425 define KernelPackage
/ide-generic
/2.6
427 $(LINUX_DIR
)/drivers
/ide
/ide-pci-generic.ko
429 $(call AutoLoad
,30,ide-pci-generic
,1)
432 $(eval
$(call KernelPackage
,ide-generic
))
435 define KernelPackage
/ide-generic-old
436 SUBMENU
:=$(BLOCK_MENU
)
437 TITLE
:=Kernel support for generic
(legacy
) IDE chipsets
438 KCONFIG
:=CONFIG_IDE_GENERIC
439 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-generic.ko
440 AUTOLOAD
:=$(call AutoLoad
,30,ide-generic
,1)
441 $(call AddDepends
/ide
)
444 $(eval
$(call KernelPackage
,ide-generic-old
))
447 define KernelPackage
/ide-aec62xx
448 TITLE
:=Acard AEC62xx IDE driver
449 DEPENDS
:=@PCI_SUPPORT
450 KCONFIG
:=CONFIG_BLK_DEV_AEC62XX
451 FILES
:=$(LINUX_DIR
)/drivers
/ide
/aec62xx.ko
452 AUTOLOAD
:=$(call AutoLoad
,30,aec62xx
,1)
453 $(call AddDepends
/ide
)
456 define KernelPackage
/ide-aec62xx
/2.4
457 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pci
/aec62xx.ko
460 define KernelPackage
/ide-aec62xx
/description
461 Support for Acard AEC62xx
(Artop ATP8xx
) IDE controllers.
464 $(eval
$(call KernelPackage
,ide-aec62xx
,1))
467 define KernelPackage
/ide-pdc202xx
468 TITLE
:=Promise PDC202xx IDE driver
469 DEPENDS
:=@PCI_SUPPORT
470 KCONFIG
:=CONFIG_BLK_DEV_PDC202XX_OLD
471 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pdc202xx_old.ko
472 AUTOLOAD
:=$(call AutoLoad
,30,pdc202xx_old
,1)
473 $(call AddDepends
/ide
)
476 define KernelPackage
/ide-pdc202xx
/2.4
477 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pci
/pdc202xx_old.ko
480 define KernelPackage
/ide-pdc202xx
/description
481 Support for the Promise Ultra
33/66/100 (PDC202
{46|
62|
65|
67|
68}) IDE
485 $(eval
$(call KernelPackage
,ide-pdc202xx
))
488 define KernelPackage
/ide-it821x
489 TITLE
:=ITE IT821x IDE driver
490 DEPENDS
:=@PCI_SUPPORT
491 KCONFIG
:=CONFIG_BLK_DEV_IT821X
492 FILES
=$(LINUX_DIR
)/drivers
/ide
/it821x.ko
493 AUTOLOAD
:=$(call AutoLoad
,30,it821x
,1)
494 $(call AddDepends
/ide
)
497 define KernelPackage
/ide-it821x
/description
498 Kernel module for the ITE IDE821x IDE controllers.
501 $(eval
$(call KernelPackage
,ide-it821x
))
504 define KernelPackage
/libsas
505 SUBMENU
:=$(BLOCK_MENU
)
506 TITLE
:=SAS Domain Transport Attributes
508 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
509 CONFIG_SCSI_SAS_ATTRS \
510 CONFIG_SCSI_SAS_ATA
=y \
511 CONFIG_SCSI_SAS_HOST_SMP
=y \
512 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
514 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.ko \
515 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.ko
516 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
519 define KernelPackage
/libsas
/description
520 SAS Domain Transport Attributes support.
523 $(eval
$(call KernelPackage
,libsas
,1))
526 define KernelPackage
/loop
527 SUBMENU
:=$(BLOCK_MENU
)
528 TITLE
:=Loopback device support
530 CONFIG_BLK_DEV_LOOP \
531 CONFIG_BLK_DEV_CRYPTOLOOP
=n
532 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.ko
533 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
536 define KernelPackage
/loop
/description
537 Kernel module for loopback device support
540 $(eval
$(call KernelPackage
,loop
))
543 define KernelPackage
/mvsas
544 SUBMENU
:=$(BLOCK_MENU
)
545 TITLE
:=Marvell
88SE6440 SAS
/SATA driver
546 DEPENDS
:=@TARGET_x86
+kmod-libsas
547 KCONFIG
:=CONFIG_SCSI_MVSAS
548 ifneq ($(CONFIG_LINUX_2_6_30
),)
549 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas.ko
551 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
553 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
556 define KernelPackage
/mvsas
/description
557 Kernel support for the Marvell SAS SCSI adapters
560 $(eval
$(call KernelPackage
,mvsas
))
563 define KernelPackage
/nbd
564 SUBMENU
:=$(BLOCK_MENU
)
565 TITLE
:=Network block device support
566 KCONFIG
:=CONFIG_BLK_DEV_NBD
567 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
568 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
571 define KernelPackage
/nbd
/description
572 Kernel module for network block device support
575 $(eval
$(call KernelPackage
,nbd
))
578 define KernelPackage
/scsi-core
579 SUBMENU
:=$(BLOCK_MENU
)
580 TITLE
:=SCSI device support
581 DEPENDS
:=@
!TARGET_x86
586 $(if
$(findstring y
,$(CONFIG_SCSI
)),,$(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko
) \
587 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
588 AUTOLOAD
:=$(call AutoLoad
,20,scsi_mod
,1) $(call AutoLoad
,40,sd_mod
,1)
591 $(eval
$(call KernelPackage
,scsi-core
))
594 define KernelPackage
/scsi-generic
595 SUBMENU
:=$(BLOCK_MENU
)
596 TITLE
:=Kernel support for SCSI generic
600 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
601 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
604 $(eval
$(call KernelPackage
,scsi-generic
))