lantiq: remove stale phy register setup properties from dts files
[openwrt.git] / package / kernel / linux / modules / block.mk
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 BLOCK_MENU:=Block Devices
9
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)
16 endef
17
18 define KernelPackage/aoe/description
19   Kernel support for ATA over Ethernet
20 endef
21
22 $(eval $(call KernelPackage,aoe))
23
24
25 define KernelPackage/ata-core
26   SUBMENU:=$(BLOCK_MENU)
27   TITLE:=Serial and Parallel ATA support
28   DEPENDS:=@PCI_SUPPORT +kmod-scsi-core
29   KCONFIG:=CONFIG_ATA
30   FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
31   AUTOLOAD:=$(call AutoLoad,21,libata,1)
32 endef
33
34 $(eval $(call KernelPackage,ata-core))
35
36
37 define AddDepends/ata
38   SUBMENU:=$(BLOCK_MENU)
39   DEPENDS+=kmod-ata-core $(1)
40 endef
41
42
43 define KernelPackage/ata-ahci
44   TITLE:=AHCI Serial ATA support
45   KCONFIG:=CONFIG_SATA_AHCI
46   FILES:= \
47     $(LINUX_DIR)/drivers/ata/ahci.ko \
48     $(LINUX_DIR)/drivers/ata/libahci.ko
49   AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
50   $(call AddDepends/ata)
51 endef
52
53 define KernelPackage/ata-ahci/description
54  Support for AHCI Serial ATA controllers.
55 endef
56
57 $(eval $(call KernelPackage,ata-ahci))
58
59
60 define KernelPackage/ata-artop
61   TITLE:=ARTOP 6210/6260 PATA support
62   KCONFIG:=CONFIG_PATA_ARTOP
63   FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
64   AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
65   $(call AddDepends/ata)
66 endef
67
68 define KernelPackage/ata-artop/description
69  PATA support for ARTOP 6210/6260 host controllers.
70 endef
71
72 $(eval $(call KernelPackage,ata-artop))
73
74
75 define KernelPackage/ata-marvell-sata
76   TITLE:=Marvell Serial ATA support
77   KCONFIG:=CONFIG_SATA_MV
78   FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
79   AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
80   $(call AddDepends/ata)
81 endef
82
83 define KernelPackage/ata-marvell-sata/description
84  SATA support for marvell chipsets
85 endef
86
87 $(eval $(call KernelPackage,ata-marvell-sata))
88
89
90 define KernelPackage/ata-nvidia-sata
91   TITLE:=Nvidia Serial ATA support
92   KCONFIG:=CONFIG_SATA_NV
93   FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
94   AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
95   $(call AddDepends/ata)
96 endef
97
98 $(eval $(call KernelPackage,ata-nvidia-sata))
99
100
101 define KernelPackage/ata-pdc202xx-old
102   SUBMENU:=$(BLOCK_MENU)
103   TITLE:=Older Promise PATA controller support
104   DEPENDS:=kmod-ata-core
105   KCONFIG:= \
106        CONFIG_ATA_SFF=y \
107        CONFIG_PATA_PDC_OLD
108   FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
109   AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
110 endef
111
112 define KernelPackage/ata-pdc202xx-old/description
113  This option enables support for the Promise 20246, 20262, 20263,
114  20265 and 20267 adapters.
115 endef
116
117 $(eval $(call KernelPackage,ata-pdc202xx-old))
118
119
120 define KernelPackage/ata-piix
121   TITLE:=Intel PIIX PATA/SATA support
122   KCONFIG:=CONFIG_ATA_PIIX
123   FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
124   AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
125   $(call AddDepends/ata)
126 endef
127
128 define KernelPackage/ata-piix/description
129  SATA support for Intel ICH5/6/7/8 series host controllers and
130  PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
131 endef
132
133 $(eval $(call KernelPackage,ata-piix))
134
135
136 define KernelPackage/ata-sil
137   TITLE:=Silicon Image SATA support
138   KCONFIG:=CONFIG_SATA_SIL
139   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
140   AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
141   $(call AddDepends/ata)
142 endef
143
144 define KernelPackage/ata-sil/description
145  Support for Silicon Image Serial ATA controllers.
146 endef
147
148 $(eval $(call KernelPackage,ata-sil))
149
150
151 define KernelPackage/ata-sil24
152   TITLE:=Silicon Image 3124/3132 SATA support
153   KCONFIG:=CONFIG_SATA_SIL24
154   FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
155   AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
156   $(call AddDepends/ata)
157 endef
158
159 define KernelPackage/ata-sil24/description
160  Support for Silicon Image 3124/3132 Serial ATA controllers.
161 endef
162
163 $(eval $(call KernelPackage,ata-sil24))
164
165
166 define KernelPackage/ata-via-sata
167   TITLE:=VIA SATA support
168   KCONFIG:=CONFIG_SATA_VIA
169   FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
170   AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
171   $(call AddDepends/ata)
172 endef
173
174 define KernelPackage/ata-via-sata/description
175  This option enables support for VIA Serial ATA.
176 endef
177
178 $(eval $(call KernelPackage,ata-via-sata))
179
180
181 define KernelPackage/block2mtd
182   SUBMENU:=$(BLOCK_MENU)
183   TITLE:=Block device MTD emulation
184   KCONFIG:=CONFIG_MTD_BLOCK2MTD
185   FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
186 endef
187
188 $(eval $(call KernelPackage,block2mtd))
189
190
191 define KernelPackage/dm
192   SUBMENU:=$(BLOCK_MENU)
193   TITLE:=Device Mapper
194   DEPENDS:=+kmod-crypto-manager
195   # All the "=n" are unnecessary, they're only there
196   # to stop the config from asking the question.
197   # MIRROR is M because I've needed it for pvmove.
198   KCONFIG:= \
199         CONFIG_BLK_DEV_MD=n \
200         CONFIG_DM_DEBUG=n \
201         CONFIG_DM_UEVENT=n \
202         CONFIG_DM_DELAY=n \
203         CONFIG_DM_MULTIPATH=n \
204         CONFIG_DM_ZERO=n \
205         CONFIG_DM_SNAPSHOT=n \
206         CONFIG_DM_LOG_USERSPACE=n \
207         CONFIG_MD=y \
208         CONFIG_BLK_DEV_DM \
209         CONFIG_DM_CRYPT \
210         CONFIG_DM_MIRROR
211   FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
212   AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
213 endef
214
215 define KernelPackage/dm/description
216  Kernel module necessary for LVM2 support
217 endef
218
219 $(eval $(call KernelPackage,dm))
220
221
222 define KernelPackage/md-mod
223   SUBMENU:=$(BLOCK_MENU)
224   TITLE:=MD RAID
225   KCONFIG:= \
226        CONFIG_MD=y \
227        CONFIG_BLK_DEV_MD=m \
228        CONFIG_MD_AUTODETECT=y \
229        CONFIG_MD_FAULTY=n
230   FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
231   AUTOLOAD:=$(call AutoLoad,27,md-mod)
232 endef
233
234 define KernelPackage/md-mod/description
235  Kernel RAID md module (md-mod.ko).
236  You will need to select at least one RAID level module below.
237 endef
238
239 $(eval $(call KernelPackage,md-mod))
240
241
242 define KernelPackage/md/Depends
243   SUBMENU:=$(BLOCK_MENU)
244   DEPENDS:=kmod-md-mod $(1)
245 endef
246
247
248 define KernelPackage/md-linear
249 $(call KernelPackage/md/Depends,)
250   TITLE:=RAID Linear Module
251   KCONFIG:=CONFIG_MD_LINEAR
252   FILES:=$(LINUX_DIR)/drivers/md/linear.ko
253   AUTOLOAD:=$(call AutoLoad,28,linear)
254 endef
255
256 define KernelPackage/md-linear/description
257  RAID "Linear" or "Append" driver module (linear.ko)
258 endef
259
260 $(eval $(call KernelPackage,md-linear))
261
262
263 define KernelPackage/md-raid0
264 $(call KernelPackage/md/Depends,)
265   TITLE:=RAID0 Module
266   KCONFIG:=CONFIG_MD_RAID0
267   FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
268   AUTOLOAD:=$(call AutoLoad,28,raid0)
269 endef
270
271 define KernelPackage/md-raid0/description
272  RAID Level 0 (Striping) driver module (raid0.ko)
273 endef
274
275 $(eval $(call KernelPackage,md-raid0))
276
277
278 define KernelPackage/md-raid1
279 $(call KernelPackage/md/Depends,)
280   TITLE:=RAID1 Module
281   KCONFIG:=CONFIG_MD_RAID1
282   FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
283   AUTOLOAD:=$(call AutoLoad,28,raid1)
284 endef
285
286 define KernelPackage/md-raid1/description
287  RAID Level 1 (Mirroring) driver (raid1.ko)
288 endef
289
290 $(eval $(call KernelPackage,md-raid1))
291
292
293 define KernelPackage/md-raid10
294 $(call KernelPackage/md/Depends,)
295   TITLE:=RAID10 Module
296   KCONFIG:=CONFIG_MD_RAID10
297   FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
298   AUTOLOAD:=$(call AutoLoad,28,raid10)
299 endef
300
301 define KernelPackage/md-raid10/description
302  RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
303 endef
304
305 $(eval $(call KernelPackage,md-raid10))
306
307
308 define KernelPackage/md-raid456
309 $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor)
310   TITLE:=RAID Level 456 Driver
311   KCONFIG:= \
312        CONFIG_ASYNC_CORE \
313        CONFIG_ASYNC_MEMCPY \
314        CONFIG_ASYNC_XOR \
315        CONFIG_ASYNC_PQ \
316        CONFIG_ASYNC_RAID6_RECOV \
317        CONFIG_ASYNC_RAID6_TEST=n \
318        CONFIG_MD_RAID456 \
319        CONFIG_MULTICORE_RAID456=n
320   FILES:= \
321         $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
322         $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
323         $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
324         $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
325         $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
326         $(LINUX_DIR)/drivers/md/raid456.ko
327   AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
328 endef
329
330 define KernelPackage/md-raid456/description
331  RAID Level 4,5,6 kernel module (raid456.ko)
332
333  Includes the following modules required by
334  raid456.ko:
335     xor.ko
336     async_tx.ko
337     async_xor.ko
338     async_memcpy.ko
339     async_pq.ko
340     async_raid5_recov.ko
341     raid6_pq.ko
342 endef
343
344 $(eval $(call KernelPackage,md-raid456))
345
346
347 define KernelPackage/md-multipath
348 $(call KernelPackage/md/Depends,)
349   TITLE:=MD Multipath Module
350   KCONFIG:=CONFIG_MD_MULTIPATH
351   FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
352   AUTOLOAD:=$(call AutoLoad,29,multipath)
353 endef
354
355 define KernelPackage/md-multipath/description
356  Multipath driver module (multipath.ko)
357 endef
358
359 $(eval $(call KernelPackage,md-multipath))
360
361
362 define KernelPackage/ide-core
363   SUBMENU:=$(BLOCK_MENU)
364   TITLE:=IDE (ATA/ATAPI) device support
365   DEPENDS:=@PCI_SUPPORT
366   KCONFIG:= \
367         CONFIG_IDE \
368         CONFIG_BLK_DEV_IDE \
369         CONFIG_BLK_DEV_IDEDISK \
370         CONFIG_IDE_GD \
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
376   FILES:= \
377         $(LINUX_DIR)/drivers/ide/ide-core.ko \
378         $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
379   AUTOLOAD:= \
380         $(call AutoLoad,20,ide-core,1) \
381         $(call AutoLoad,40,ide-gd_mod,1)
382 endef
383
384 define KernelPackage/ide-core/description
385  Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
386  Includes:
387  - ide-core
388  - ide-gd_mod
389 endef
390
391 $(eval $(call KernelPackage,ide-core))
392
393
394 define AddDepends/ide
395   SUBMENU:=$(BLOCK_MENU)
396   DEPENDS+=kmod-ide-core $(1)
397 endef
398
399
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)
408 endef
409
410 $(eval $(call KernelPackage,ide-generic))
411
412
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)
420 endef
421
422 $(eval $(call KernelPackage,ide-generic-old))
423
424
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)
432 endef
433
434 define KernelPackage/ide-aec62xx/description
435  Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
436 endef
437
438 $(eval $(call KernelPackage,ide-aec62xx,1))
439
440
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)
448 endef
449
450 define KernelPackage/ide-pdc202xx/description
451  Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
452  controllers.
453 endef
454
455 $(eval $(call KernelPackage,ide-pdc202xx))
456
457
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)
465 endef
466
467 define KernelPackage/ide-it821x/description
468   Kernel module for the ITE IDE821x IDE controllers.
469 endef
470
471 $(eval $(call KernelPackage,ide-it821x))
472
473
474 define KernelPackage/libsas
475   SUBMENU:=$(BLOCK_MENU)
476   DEPENDS:=@TARGET_x86
477   TITLE:=SAS Domain Transport Attributes
478   KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
479         CONFIG_SCSI_SAS_ATTRS \
480         CONFIG_SCSI_SAS_ATA=y \
481         CONFIG_SCSI_SAS_HOST_SMP=y \
482         CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
483   FILES:= \
484         $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
485         $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
486   AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
487 endef
488
489 define KernelPackage/libsas/description
490   SAS Domain Transport Attributes support.
491 endef
492
493 $(eval $(call KernelPackage,libsas,1))
494
495
496 define KernelPackage/loop
497   SUBMENU:=$(BLOCK_MENU)
498   TITLE:=Loopback device support
499   KCONFIG:= \
500         CONFIG_BLK_DEV_LOOP \
501         CONFIG_BLK_DEV_CRYPTOLOOP=n
502   FILES:=$(LINUX_DIR)/drivers/block/loop.ko
503   AUTOLOAD:=$(call AutoLoad,30,loop)
504 endef
505
506 define KernelPackage/loop/description
507  Kernel module for loopback device support
508 endef
509
510 $(eval $(call KernelPackage,loop))
511
512
513 define KernelPackage/mvsas
514   SUBMENU:=$(BLOCK_MENU)
515   TITLE:=Marvell 88SE6440 SAS/SATA driver
516   DEPENDS:=@TARGET_x86 +kmod-libsas
517   KCONFIG:= \
518         CONFIG_SCSI_MVSAS \
519         CONFIG_SCSI_MVSAS_TASKLET=n
520   FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
521   AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
522 endef
523
524 define KernelPackage/mvsas/description
525   Kernel support for the Marvell SAS SCSI adapters
526 endef
527
528 $(eval $(call KernelPackage,mvsas))
529
530
531 define KernelPackage/nbd
532   SUBMENU:=$(BLOCK_MENU)
533   TITLE:=Network block device support
534   KCONFIG:=CONFIG_BLK_DEV_NBD
535   FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
536   AUTOLOAD:=$(call AutoLoad,30,nbd)
537 endef
538
539 define KernelPackage/nbd/description
540  Kernel module for network block device support
541 endef
542
543 $(eval $(call KernelPackage,nbd))
544
545
546 define KernelPackage/scsi-core
547   SUBMENU:=$(BLOCK_MENU)
548   TITLE:=SCSI device support
549   KCONFIG:= \
550         CONFIG_SCSI \
551         CONFIG_BLK_DEV_SD
552   FILES:= \
553         $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
554         $(LINUX_DIR)/drivers/scsi/sd_mod.ko
555   AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
556 endef
557
558 $(eval $(call KernelPackage,scsi-core))
559
560
561 define KernelPackage/scsi-generic
562   SUBMENU:=$(BLOCK_MENU)
563   TITLE:=Kernel support for SCSI generic
564   DEPENDS:=+kmod-scsi-core
565   KCONFIG:= \
566         CONFIG_CHR_DEV_SG
567   FILES:= \
568         $(LINUX_DIR)/drivers/scsi/sg.ko
569   AUTOLOAD:=$(call AutoLoad,65,sg)
570 endef
571
572 $(eval $(call KernelPackage,scsi-generic))
573
574
575 define KernelPackage/scsi-cdrom
576   SUBMENU:=$(BLOCK_MENU)
577   TITLE:=Kernel support for CD / DVD drives
578   DEPENDS:=+kmod-scsi-core
579   KCONFIG:= \
580     CONFIG_BLK_DEV_SR \
581     CONFIG_BLK_DEV_SR_VENDOR=n
582   FILES:= \
583     $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
584     $(LINUX_DIR)/drivers/scsi/sr_mod.ko
585   AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
586 endef
587
588 $(eval $(call KernelPackage,scsi-cdrom))
589