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 ifeq ($(strip $(call CompareKernelPatchVer
,$(KERNEL_PATCHVER
),ge
,2.6.35)),1)
48 FILES
+= $(LINUX_DIR
)/drivers
/ata
/libahci.ko
49 AUTOLOAD
:=$(call AutoLoad
,41,libahci ahci
,1)
51 AUTOLOAD
:=$(call AutoLoad
,41,ahci
,1)
53 $(call AddDepends
/ata
)
56 define KernelPackage
/ata-ahci
/description
57 Support for AHCI Serial ATA controllers.
60 $(eval
$(call KernelPackage
,ata-ahci
))
63 define KernelPackage
/ata-artop
64 TITLE
:=ARTOP
6210/6260 PATA support
65 KCONFIG
:=CONFIG_PATA_ARTOP
66 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_artop.ko
67 AUTOLOAD
:=$(call AutoLoad
,41,pata_artop
,1)
68 $(call AddDepends
/ata
)
71 define KernelPackage
/ata-artop
/description
72 PATA support for ARTOP
6210/6260 host controllers.
75 $(eval
$(call KernelPackage
,ata-artop
))
78 define KernelPackage
/ata-nvidia-sata
79 TITLE
:=Nvidia Serial ATA support
80 KCONFIG
:=CONFIG_SATA_NV
81 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_nv.ko
82 AUTOLOAD
:=$(call AutoLoad
,41,sata_nv
,1)
83 $(call AddDepends
/ata
)
86 $(eval
$(call KernelPackage
,ata-nvidia-sata
))
89 define KernelPackage
/ata-pdc202xx-old
90 SUBMENU
:=$(BLOCK_MENU
)
91 TITLE
:=Older Promise PATA controller support
92 DEPENDS
:=kmod-ata-core
96 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.ko
97 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
100 define KernelPackage
/ata-pdc202xx-old
/description
101 This option enables support for the Promise
20246, 20262, 20263,
102 20265 and
20267 adapters.
105 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
108 define KernelPackage
/ata-piix
109 TITLE
:=Intel PIIX PATA
/SATA support
110 KCONFIG
:=CONFIG_ATA_PIIX
111 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.ko
112 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
113 $(call AddDepends
/ata
)
116 define KernelPackage
/ata-piix
/description
117 SATA support for Intel ICH5
/6/7/8 series host controllers and
118 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers.
121 $(eval
$(call KernelPackage
,ata-piix
))
124 define KernelPackage
/ata-sil
125 TITLE
:=Silicon Image SATA support
126 KCONFIG
:=CONFIG_SATA_SIL
127 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.ko
128 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
129 $(call AddDepends
/ata
)
132 define KernelPackage
/ata-sil
/description
133 Support for Silicon Image Serial ATA controllers.
136 $(eval
$(call KernelPackage
,ata-sil
))
139 define KernelPackage
/ata-sil24
140 TITLE
:=Silicon Image
3124/3132 SATA support
141 KCONFIG
:=CONFIG_SATA_SIL24
142 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.ko
143 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
144 $(call AddDepends
/ata
)
147 define KernelPackage
/ata-sil24
/description
148 Support for Silicon Image
3124/3132 Serial ATA controllers.
151 $(eval
$(call KernelPackage
,ata-sil24
))
154 define KernelPackage
/ata-via-sata
155 TITLE
:=VIA SATA support
156 KCONFIG
:=CONFIG_SATA_VIA
157 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_via.ko
158 AUTOLOAD
:=$(call AutoLoad
,41,sata_via
,1)
159 $(call AddDepends
/ata
)
162 define KernelPackage
/ata-via-sata
/description
163 This option enables support for VIA Serial ATA.
166 $(eval
$(call KernelPackage
,ata-via-sata
))
169 define KernelPackage
/block2mtd
170 SUBMENU
:=$(BLOCK_MENU
)
171 TITLE
:=Block device MTD emulation
172 KCONFIG
:=CONFIG_MTD_BLOCK2MTD
173 FILES
:=$(LINUX_DIR
)/drivers
/mtd
/devices
/block2mtd.ko
176 $(eval
$(call KernelPackage
,block2mtd
))
179 define KernelPackage
/dm
180 SUBMENU
:=$(BLOCK_MENU
)
182 # All the "=n" are unnecessary, they're only there
183 # to stop the config from asking the question.
184 # MIRROR is M because I've needed it for pvmove.
186 CONFIG_BLK_DEV_MD
=n \
190 CONFIG_DM_MULTIPATH
=n \
192 CONFIG_DM_SNAPSHOT
=n \
193 CONFIG_DM_LOG_USERSPACE
=n \
198 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-
*.ko
199 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt
)
202 define KernelPackage
/dm
/description
203 Kernel module necessary for LVM2 support
206 $(eval
$(call KernelPackage
,dm
))
209 define KernelPackage
/md-mod
210 SUBMENU
:=$(BLOCK_MENU
)
214 CONFIG_BLK_DEV_MD
=m \
215 CONFIG_MD_AUTODETECT
=y \
217 FILES
:=$(LINUX_DIR
)/drivers
/md
/md-mod.ko
218 AUTOLOAD
:=$(call AutoLoad
,27,md-mod
)
221 define KernelPackage
/md-mod
/description
222 Kernel RAID md module
(md-mod.ko
).
223 You will need to select at least one RAID level module below.
226 $(eval
$(call KernelPackage
,md-mod
))
229 define KernelPackage
/md
/Depends
230 SUBMENU
:=$(BLOCK_MENU
)
231 DEPENDS
:=kmod-md-mod
$(1)
235 define KernelPackage
/md-linear
236 $(call KernelPackage
/md
/Depends
,)
237 TITLE
:=RAID Linear Module
238 KCONFIG
:=CONFIG_MD_LINEAR
=m
239 FILES
:=$(LINUX_DIR
)/drivers
/md
/linear.ko
240 AUTOLOAD
:=$(call AutoLoad
,28,linear
)
243 define KernelPackage
/md-linear
/description
244 RAID
"Linear" or
"Append" driver module
(linear.ko
)
247 $(eval
$(call KernelPackage
,md-linear
))
250 define KernelPackage
/md-raid0
251 $(call KernelPackage
/md
/Depends
,)
253 KCONFIG
:=CONFIG_MD_RAID0
=m
254 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid0.ko
255 AUTOLOAD
:=$(call AutoLoad
,28,raid0
)
258 define KernelPackage
/md-raid0
/description
259 RAID Level
0 (Striping
) driver module
(raid0.ko
)
262 $(eval
$(call KernelPackage
,md-raid0
))
265 define KernelPackage
/md-raid1
266 $(call KernelPackage
/md
/Depends
,)
268 KCONFIG
:=CONFIG_MD_RAID1
=m
269 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid1.ko
270 AUTOLOAD
:=$(call AutoLoad
,28,raid1
)
273 define KernelPackage
/md-raid1
/description
274 RAID Level
1 (Mirroring
) driver
(raid1.ko
)
277 $(eval
$(call KernelPackage
,md-raid1
))
280 define KernelPackage
/md-raid10
281 $(call KernelPackage
/md
/Depends
,)
283 KCONFIG
:=CONFIG_MD_RAID10
=m
284 FILES
:=$(LINUX_DIR
)/drivers
/md
/raid10.ko
285 AUTOLOAD
:=$(call AutoLoad
,28,raid10
)
288 define KernelPackage
/md-raid10
/description
289 RAID Level
10 (Mirroring
+Striping
) driver module
(raid10.ko
)
292 $(eval
$(call KernelPackage
,md-raid10
))
295 define KernelPackage
/md-raid456
296 $(call KernelPackage
/md
/Depends
,)
297 TITLE
:=RAID Level
456 Driver
299 CONFIG_XOR_BLOCKS
=m \
300 CONFIG_ASYNC_CORE
=m \
301 CONFIG_ASYNC_MEMCPY
=m \
304 CONFIG_ASYNC_RAID6_RECOV
=m \
305 CONFIG_ASYNC_RAID6_TEST
=n \
306 CONFIG_MD_RAID6_PQ
=m \
307 CONFIG_MD_RAID456
=m \
308 CONFIG_MULTICORE_RAID456
=n
310 $(LINUX_DIR
)/crypto
/xor.ko \
311 $(LINUX_DIR
)/crypto
/async_tx
/async_tx.ko \
312 $(LINUX_DIR
)/crypto
/async_tx
/async_memcpy.ko \
313 $(LINUX_DIR
)/crypto
/async_tx
/async_xor.ko \
314 $(LINUX_DIR
)/crypto
/async_tx
/async_pq.ko \
315 $(LINUX_DIR
)/crypto
/async_tx
/async_raid6_recov.ko \
316 $(LINUX_DIR
)/drivers
/md
/raid456.ko
317 # Additional files with kernel-dependent locations or presence
318 # For Linux >= 2.6.36
319 ifeq ($(strip $(call CompareKernelPatchVer
,$(KERNEL_PATCHVER
),ge
,2.6.36)), 1)
321 $(LINUX_DIR
)/lib
/raid6
/raid6_pq.ko
325 $(LINUX_DIR
)/drivers
/md
/raid6_pq.ko
327 AUTOLOAD
:=$(call AutoLoad
,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456
)
330 define KernelPackage
/md-raid456
/description
331 RAID Level
4,5,6 kernel module
(raid456.ko
)
333 Includes the following modules required by
344 $(eval
$(call KernelPackage
,md-raid456
))
347 define KernelPackage
/md-multipath
348 $(call KernelPackage
/md
/Depends
,)
349 TITLE
:=MD Multipath Module
350 KCONFIG
:=CONFIG_MD_MULTIPATH
=m
351 FILES
:=$(LINUX_DIR
)/drivers
/md
/multipath.ko
352 AUTOLOAD
:=$(call AutoLoad
,29,multipath
)
355 define KernelPackage
/md-multipath
/description
356 Multipath driver module
(multipath.ko
)
359 $(eval
$(call KernelPackage
,md-multipath
))
362 define KernelPackage
/ide-core
363 SUBMENU
:=$(BLOCK_MENU
)
364 TITLE
:=IDE
(ATA
/ATAPI
) device support
365 DEPENDS
:=@PCI_SUPPORT
369 CONFIG_BLK_DEV_IDEDISK \
371 CONFIG_IDE_GD_ATA
=y \
372 CONFIG_IDE_GD_ATAPI
=n \
373 CONFIG_IDEPCI_PCIBUS_ORDER
=y \
374 CONFIG_BLK_DEV_IDEDMA_PCI
=y \
375 CONFIG_BLK_DEV_IDEPCI
=y
377 $(LINUX_DIR
)/drivers
/ide
/ide-core.ko \
378 $(LINUX_DIR
)/drivers
/ide
/ide-gd_mod.ko
380 $(call AutoLoad
,20,ide-core
,1) \
381 $(call AutoLoad
,40,ide-gd_mod
,1)
384 define KernelPackage
/ide-core
/description
385 Kernel support for IDE
, useful for usb mass storage devices
(e.g. on WL-HDD
)
391 $(eval
$(call KernelPackage
,ide-core
))
394 define AddDepends
/ide
395 SUBMENU
:=$(BLOCK_MENU
)
396 DEPENDS
+=kmod-ide-core
$(1)
400 define KernelPackage
/ide-generic
401 SUBMENU
:=$(BLOCK_MENU
)
402 DEPENDS
:=@PCI_SUPPORT
403 TITLE
:=Kernel support for generic PCI IDE chipsets
404 KCONFIG
:=CONFIG_BLK_DEV_GENERIC
405 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-pci-generic.ko
406 AUTOLOAD
:=$(call AutoLoad
,30,ide-pci-generic
,1)
407 $(call AddDepends
/ide
)
410 $(eval
$(call KernelPackage
,ide-generic
))
413 define KernelPackage
/ide-generic-old
414 SUBMENU
:=$(BLOCK_MENU
)
415 TITLE
:=Kernel support for generic
(legacy
) IDE chipsets
416 KCONFIG
:=CONFIG_IDE_GENERIC
417 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-generic.ko
418 AUTOLOAD
:=$(call AutoLoad
,30,ide-generic
,1)
419 $(call AddDepends
/ide
)
422 $(eval
$(call KernelPackage
,ide-generic-old
))
425 define KernelPackage
/ide-aec62xx
426 TITLE
:=Acard AEC62xx IDE driver
427 DEPENDS
:=@PCI_SUPPORT
428 KCONFIG
:=CONFIG_BLK_DEV_AEC62XX
429 FILES
:=$(LINUX_DIR
)/drivers
/ide
/aec62xx.ko
430 AUTOLOAD
:=$(call AutoLoad
,30,aec62xx
,1)
431 $(call AddDepends
/ide
)
434 define KernelPackage
/ide-aec62xx
/description
435 Support for Acard AEC62xx
(Artop ATP8xx
) IDE controllers.
438 $(eval
$(call KernelPackage
,ide-aec62xx
,1))
441 define KernelPackage
/ide-pdc202xx
442 TITLE
:=Promise PDC202xx IDE driver
443 DEPENDS
:=@PCI_SUPPORT
444 KCONFIG
:=CONFIG_BLK_DEV_PDC202XX_OLD
445 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pdc202xx_old.ko
446 AUTOLOAD
:=$(call AutoLoad
,30,pdc202xx_old
,1)
447 $(call AddDepends
/ide
)
450 define KernelPackage
/ide-pdc202xx
/description
451 Support for the Promise Ultra
33/66/100 (PDC202
{46|
62|
65|
67|
68}) IDE
455 $(eval
$(call KernelPackage
,ide-pdc202xx
))
458 define KernelPackage
/ide-it821x
459 TITLE
:=ITE IT821x IDE driver
460 DEPENDS
:=@PCI_SUPPORT
461 KCONFIG
:=CONFIG_BLK_DEV_IT821X
462 FILES
=$(LINUX_DIR
)/drivers
/ide
/it821x.ko
463 AUTOLOAD
:=$(call AutoLoad
,30,it821x
,1)
464 $(call AddDepends
/ide
)
467 define KernelPackage
/ide-it821x
/description
468 Kernel module for the ITE IDE821x IDE controllers.
471 $(eval
$(call KernelPackage
,ide-it821x
))
474 define KernelPackage
/cs5535
475 TITLE
:=NSC
/AMD CS5535 chipset support
477 KCONFIG
:=CONFIG_BLK_DEV_CS5535
478 FILES
=$(LINUX_DIR
)/drivers
/ide
/cs5535.ko
479 AUTOLOAD
:=$(call AutoLoad
,30,cs5535
,1)
480 $(call AddDepends
/ide
)
483 define KernelPackage
/cs5535
/description
484 Kernel module for the NSC
/AMD CS5535 companion chip
487 $(eval
$(call KernelPackage
,cs5535
))
490 define KernelPackage
/cs5536
491 TITLE
:=AMD CS5536 chipset support
493 KCONFIG
:=CONFIG_BLK_DEV_CS5536
494 FILES
=$(LINUX_DIR
)/drivers
/ide
/cs5536.ko
495 AUTOLOAD
:=$(call AutoLoad
,30,cs5536
,1)
496 $(call AddDepends
/ide
)
499 define KernelPackage
/cs5536
/description
500 Kernel module for the AMD CS5536 Geode LX companion chip
503 $(eval
$(call KernelPackage
,cs5536
))
506 define KernelPackage
/pata-cs5535
507 TITLE
:=CS5535 PATA support
508 DEPENDS
:=@TARGET_x86 @PCI_SUPPORT
509 KCONFIG
:=CONFIG_PATA_CS5535
510 FILES
=$(LINUX_DIR
)/drivers
/ata
/pata-cs5535.ko
511 AUTOLOAD
:=$(call AutoLoad
,30,pata-cs5535
,1)
512 $(call AddDepends
/ata
)
515 define KernelPackage
/pata-cs5535
/description
516 Kernel module for the NSC
/AMD CS5535 companion chip
519 $(eval
$(call KernelPackage
,pata-cs5535
))
522 define KernelPackage
/pata-cs5536
523 TITLE
:=CS5536 PATA support
524 DEPENDS
:=@TARGET_x86 @PCI_SUPPORT
525 KCONFIG
:=CONFIG_PATA_CS5536
526 FILES
=$(LINUX_DIR
)/drivers
/ata
/pata-cs5536.ko
527 AUTOLOAD
:=$(call AutoLoad
,30,pata-cs5536
,1)
528 $(call AddDepends
/ata
)
531 define KernelPackage
/pata-cs5536
/description
532 Kernel module for the AMD CS5536 Geode LX companion chip
535 $(eval
$(call KernelPackage
,pata-cs5536
))
538 define KernelPackage
/libsas
539 SUBMENU
:=$(BLOCK_MENU
)
540 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
581 KCONFIG
:=CONFIG_SCSI_MVSAS
582 ifneq ($(CONFIG_LINUX_2_6_30
),)
583 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas.ko
585 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.ko
587 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
590 define KernelPackage
/mvsas
/description
591 Kernel support for the Marvell SAS SCSI adapters
594 $(eval
$(call KernelPackage
,mvsas
))
597 define KernelPackage
/nbd
598 SUBMENU
:=$(BLOCK_MENU
)
599 TITLE
:=Network block device support
600 KCONFIG
:=CONFIG_BLK_DEV_NBD
601 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.ko
602 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
605 define KernelPackage
/nbd
/description
606 Kernel module for network block device support
609 $(eval
$(call KernelPackage
,nbd
))
612 define KernelPackage
/scsi-core
613 SUBMENU
:=$(BLOCK_MENU
)
614 TITLE
:=SCSI device support
615 DEPENDS
:=@
!TARGET_x86
620 $(if
$(findstring y
,$(CONFIG_SCSI
)),,$(LINUX_DIR
)/drivers
/scsi
/scsi_mod.ko
) \
621 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.ko
622 AUTOLOAD
:=$(call AutoLoad
,20,scsi_mod
,1) $(call AutoLoad
,40,sd_mod
,1)
625 $(eval
$(call KernelPackage
,scsi-core
))
628 define KernelPackage
/scsi-generic
629 SUBMENU
:=$(BLOCK_MENU
)
630 TITLE
:=Kernel support for SCSI generic
631 DEPENDS
:=+!TARGET_x86
:kmod-scsi-core
635 $(LINUX_DIR
)/drivers
/scsi
/sg.ko
636 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
639 $(eval
$(call KernelPackage
,scsi-generic
))
642 define KernelPackage
/scsi-cdrom
643 SUBMENU
:=$(BLOCK_MENU
)
644 TITLE
:=Kernel support for CD
/ DVD drives
645 DEPENDS
:=+!TARGET_x86
:kmod-scsi-core
648 CONFIG_BLK_DEV_SR_VENDOR
=n
650 $(LINUX_DIR
)/drivers
/cdrom
/cdrom.ko \
651 $(LINUX_DIR
)/drivers
/scsi
/sr_mod.ko
652 AUTOLOAD
:=$(call AutoLoad
,30,cdrom
) $(call AutoLoad
,45,sr_mod
)
655 $(eval
$(call KernelPackage
,scsi-cdrom
))