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