kernel: drop kmod-ata-sis
[oweals/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   # All the "=n" are unnecessary, they're only there
195   # to stop the config from asking the question.
196   # MIRROR is M because I've needed it for pvmove.
197   KCONFIG:= \
198         CONFIG_BLK_DEV_MD=n \
199         CONFIG_DM_DEBUG=n \
200         CONFIG_DM_UEVENT=n \
201         CONFIG_DM_DELAY=n \
202         CONFIG_DM_MULTIPATH=n \
203         CONFIG_DM_ZERO=n \
204         CONFIG_DM_SNAPSHOT=n \
205         CONFIG_DM_LOG_USERSPACE=n \
206         CONFIG_MD=y \
207         CONFIG_BLK_DEV_DM \
208         CONFIG_DM_CRYPT \
209         CONFIG_DM_MIRROR
210   FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
211   AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
212 endef
213
214 define KernelPackage/dm/description
215  Kernel module necessary for LVM2 support
216 endef
217
218 $(eval $(call KernelPackage,dm))
219
220
221 define KernelPackage/md-mod
222   SUBMENU:=$(BLOCK_MENU)
223   TITLE:=MD RAID
224   KCONFIG:= \
225        CONFIG_MD=y \
226        CONFIG_BLK_DEV_MD=m \
227        CONFIG_MD_AUTODETECT=y \
228        CONFIG_MD_FAULTY=n
229   FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
230   AUTOLOAD:=$(call AutoLoad,27,md-mod)
231 endef
232
233 define KernelPackage/md-mod/description
234  Kernel RAID md module (md-mod.ko).
235  You will need to select at least one RAID level module below.
236 endef
237
238 $(eval $(call KernelPackage,md-mod))
239
240
241 define KernelPackage/md/Depends
242   SUBMENU:=$(BLOCK_MENU)
243   DEPENDS:=kmod-md-mod $(1)
244 endef
245
246
247 define KernelPackage/md-linear
248 $(call KernelPackage/md/Depends,)
249   TITLE:=RAID Linear Module
250   KCONFIG:=CONFIG_MD_LINEAR
251   FILES:=$(LINUX_DIR)/drivers/md/linear.ko
252   AUTOLOAD:=$(call AutoLoad,28,linear)
253 endef
254
255 define KernelPackage/md-linear/description
256  RAID "Linear" or "Append" driver module (linear.ko)
257 endef
258
259 $(eval $(call KernelPackage,md-linear))
260
261
262 define KernelPackage/md-raid0
263 $(call KernelPackage/md/Depends,)
264   TITLE:=RAID0 Module
265   KCONFIG:=CONFIG_MD_RAID0
266   FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
267   AUTOLOAD:=$(call AutoLoad,28,raid0)
268 endef
269
270 define KernelPackage/md-raid0/description
271  RAID Level 0 (Striping) driver module (raid0.ko)
272 endef
273
274 $(eval $(call KernelPackage,md-raid0))
275
276
277 define KernelPackage/md-raid1
278 $(call KernelPackage/md/Depends,)
279   TITLE:=RAID1 Module
280   KCONFIG:=CONFIG_MD_RAID1
281   FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
282   AUTOLOAD:=$(call AutoLoad,28,raid1)
283 endef
284
285 define KernelPackage/md-raid1/description
286  RAID Level 1 (Mirroring) driver (raid1.ko)
287 endef
288
289 $(eval $(call KernelPackage,md-raid1))
290
291
292 define KernelPackage/md-raid10
293 $(call KernelPackage/md/Depends,)
294   TITLE:=RAID10 Module
295   KCONFIG:=CONFIG_MD_RAID10
296   FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
297   AUTOLOAD:=$(call AutoLoad,28,raid10)
298 endef
299
300 define KernelPackage/md-raid10/description
301  RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
302 endef
303
304 $(eval $(call KernelPackage,md-raid10))
305
306
307 define KernelPackage/md-raid456
308 $(call KernelPackage/md/Depends,)
309   TITLE:=RAID Level 456 Driver
310   KCONFIG:= \
311        CONFIG_XOR_BLOCKS \
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_RAID6_PQ \
319        CONFIG_MD_RAID456 \
320        CONFIG_MULTICORE_RAID456=n
321   FILES:= \
322         $(LINUX_DIR)/crypto/xor.ko \
323         $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
324         $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
325         $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
326         $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
327         $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
328         $(LINUX_DIR)/drivers/md/raid456.ko \
329         $(LINUX_DIR)/lib/raid6/raid6_pq.ko
330   AUTOLOAD:=$(call AutoLoad,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456)
331 endef
332
333 define KernelPackage/md-raid456/description
334  RAID Level 4,5,6 kernel module (raid456.ko)
335
336  Includes the following modules required by
337  raid456.ko:
338     xor.ko
339     async_tx.ko
340     async_xor.ko
341     async_memcpy.ko
342     async_pq.ko
343     async_raid5_recov.ko
344     raid6_pq.ko
345 endef
346
347 $(eval $(call KernelPackage,md-raid456))
348
349
350 define KernelPackage/md-multipath
351 $(call KernelPackage/md/Depends,)
352   TITLE:=MD Multipath Module
353   KCONFIG:=CONFIG_MD_MULTIPATH
354   FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
355   AUTOLOAD:=$(call AutoLoad,29,multipath)
356 endef
357
358 define KernelPackage/md-multipath/description
359  Multipath driver module (multipath.ko)
360 endef
361
362 $(eval $(call KernelPackage,md-multipath))
363
364
365 define KernelPackage/ide-core
366   SUBMENU:=$(BLOCK_MENU)
367   TITLE:=IDE (ATA/ATAPI) device support
368   DEPENDS:=@PCI_SUPPORT
369   KCONFIG:= \
370         CONFIG_IDE \
371         CONFIG_BLK_DEV_IDE \
372         CONFIG_BLK_DEV_IDEDISK \
373         CONFIG_IDE_GD \
374         CONFIG_IDE_GD_ATA=y \
375         CONFIG_IDE_GD_ATAPI=n \
376         CONFIG_IDEPCI_PCIBUS_ORDER=y \
377         CONFIG_BLK_DEV_IDEDMA_PCI=y \
378         CONFIG_BLK_DEV_IDEPCI=y
379   FILES:= \
380         $(LINUX_DIR)/drivers/ide/ide-core.ko \
381         $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
382   AUTOLOAD:= \
383         $(call AutoLoad,20,ide-core,1) \
384         $(call AutoLoad,40,ide-gd_mod,1)
385 endef
386
387 define KernelPackage/ide-core/description
388  Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
389  Includes:
390  - ide-core
391  - ide-gd_mod
392 endef
393
394 $(eval $(call KernelPackage,ide-core))
395
396
397 define AddDepends/ide
398   SUBMENU:=$(BLOCK_MENU)
399   DEPENDS+=kmod-ide-core $(1)
400 endef
401
402
403 define KernelPackage/ide-generic
404   SUBMENU:=$(BLOCK_MENU)
405   DEPENDS:=@PCI_SUPPORT
406   TITLE:=Kernel support for generic PCI IDE chipsets
407   KCONFIG:=CONFIG_BLK_DEV_GENERIC
408   FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
409   AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
410   $(call AddDepends/ide)
411 endef
412
413 $(eval $(call KernelPackage,ide-generic))
414
415
416 define KernelPackage/ide-generic-old
417   SUBMENU:=$(BLOCK_MENU)
418   TITLE:=Kernel support for generic (legacy) IDE chipsets
419   KCONFIG:=CONFIG_IDE_GENERIC
420   FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
421   AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
422   $(call AddDepends/ide)
423 endef
424
425 $(eval $(call KernelPackage,ide-generic-old))
426
427
428 define KernelPackage/ide-aec62xx
429   TITLE:=Acard AEC62xx IDE driver
430   DEPENDS:=@PCI_SUPPORT
431   KCONFIG:=CONFIG_BLK_DEV_AEC62XX
432   FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
433   AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
434   $(call AddDepends/ide)
435 endef
436
437 define KernelPackage/ide-aec62xx/description
438  Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
439 endef
440
441 $(eval $(call KernelPackage,ide-aec62xx,1))
442
443
444 define KernelPackage/ide-pdc202xx
445   TITLE:=Promise PDC202xx IDE driver
446   DEPENDS:=@PCI_SUPPORT
447   KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
448   FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
449   AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
450   $(call AddDepends/ide)
451 endef
452
453 define KernelPackage/ide-pdc202xx/description
454  Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
455  controllers.
456 endef
457
458 $(eval $(call KernelPackage,ide-pdc202xx))
459
460
461 define KernelPackage/ide-it821x
462   TITLE:=ITE IT821x IDE driver
463   DEPENDS:=@PCI_SUPPORT
464   KCONFIG:=CONFIG_BLK_DEV_IT821X
465   FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
466   AUTOLOAD:=$(call AutoLoad,30,it821x,1)
467   $(call AddDepends/ide)
468 endef
469
470 define KernelPackage/ide-it821x/description
471   Kernel module for the ITE IDE821x IDE controllers.
472 endef
473
474 $(eval $(call KernelPackage,ide-it821x))
475
476
477 define KernelPackage/libsas
478   SUBMENU:=$(BLOCK_MENU)
479   DEPENDS:=@TARGET_x86
480   TITLE:=SAS Domain Transport Attributes
481   KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
482         CONFIG_SCSI_SAS_ATTRS \
483         CONFIG_SCSI_SAS_ATA=y \
484         CONFIG_SCSI_SAS_HOST_SMP=y \
485         CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
486   FILES:= \
487         $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
488         $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
489   AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
490 endef
491
492 define KernelPackage/libsas/description
493   SAS Domain Transport Attributes support.
494 endef
495
496 $(eval $(call KernelPackage,libsas,1))
497
498
499 define KernelPackage/loop
500   SUBMENU:=$(BLOCK_MENU)
501   TITLE:=Loopback device support
502   KCONFIG:= \
503         CONFIG_BLK_DEV_LOOP \
504         CONFIG_BLK_DEV_CRYPTOLOOP=n
505   FILES:=$(LINUX_DIR)/drivers/block/loop.ko
506   AUTOLOAD:=$(call AutoLoad,30,loop)
507 endef
508
509 define KernelPackage/loop/description
510  Kernel module for loopback device support
511 endef
512
513 $(eval $(call KernelPackage,loop))
514
515
516 define KernelPackage/mvsas
517   SUBMENU:=$(BLOCK_MENU)
518   TITLE:=Marvell 88SE6440 SAS/SATA driver
519   DEPENDS:=@TARGET_x86 +kmod-libsas
520   KCONFIG:= \
521         CONFIG_SCSI_MVSAS \
522         CONFIG_SCSI_MVSAS_TASKLET=n
523   FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
524   AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
525 endef
526
527 define KernelPackage/mvsas/description
528   Kernel support for the Marvell SAS SCSI adapters
529 endef
530
531 $(eval $(call KernelPackage,mvsas))
532
533
534 define KernelPackage/nbd
535   SUBMENU:=$(BLOCK_MENU)
536   TITLE:=Network block device support
537   KCONFIG:=CONFIG_BLK_DEV_NBD
538   FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
539   AUTOLOAD:=$(call AutoLoad,30,nbd)
540 endef
541
542 define KernelPackage/nbd/description
543  Kernel module for network block device support
544 endef
545
546 $(eval $(call KernelPackage,nbd))
547
548
549 define KernelPackage/scsi-core
550   SUBMENU:=$(BLOCK_MENU)
551   TITLE:=SCSI device support
552   KCONFIG:= \
553         CONFIG_SCSI \
554         CONFIG_BLK_DEV_SD
555   FILES:= \
556         $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.ko) \
557         $(LINUX_DIR)/drivers/scsi/sd_mod.ko
558   AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
559 endef
560
561 $(eval $(call KernelPackage,scsi-core))
562
563
564 define KernelPackage/scsi-generic
565   SUBMENU:=$(BLOCK_MENU)
566   TITLE:=Kernel support for SCSI generic
567   DEPENDS:=+kmod-scsi-core
568   KCONFIG:= \
569         CONFIG_CHR_DEV_SG
570   FILES:= \
571         $(LINUX_DIR)/drivers/scsi/sg.ko
572   AUTOLOAD:=$(call AutoLoad,65,sg)
573 endef
574
575 $(eval $(call KernelPackage,scsi-generic))
576
577
578 define KernelPackage/scsi-cdrom
579   SUBMENU:=$(BLOCK_MENU)
580   TITLE:=Kernel support for CD / DVD drives
581   DEPENDS:=+kmod-scsi-core
582   KCONFIG:= \
583     CONFIG_BLK_DEV_SR \
584     CONFIG_BLK_DEV_SR_VENDOR=n
585   FILES:= \
586     $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
587     $(LINUX_DIR)/drivers/scsi/sr_mod.ko
588   AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
589 endef
590
591 $(eval $(call KernelPackage,scsi-cdrom))
592