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