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