b870304ad48b37ace15be5a65ff70bf187e9fe74
[openwrt/staging/hauke.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_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-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-pdc202xx-old
120 TITLE:=Older Promise PATA controller support
121 KCONFIG:= \
122 CONFIG_ATA_SFF=y \
123 CONFIG_PATA_PDC_OLD
124 FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
125 AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
126 $(call AddDepends/ata)
127 endef
128
129 define KernelPackage/ata-pdc202xx-old/description
130 This option enables support for the Promise 20246, 20262, 20263,
131 20265 and 20267 adapters
132 endef
133
134 $(eval $(call KernelPackage,ata-pdc202xx-old))
135
136
137 define KernelPackage/ata-piix
138 TITLE:=Intel PIIX PATA/SATA support
139 KCONFIG:=CONFIG_ATA_PIIX
140 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
141 AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
142 $(call AddDepends/ata)
143 endef
144
145 define KernelPackage/ata-piix/description
146 SATA support for Intel ICH5/6/7/8 series host controllers and
147 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
148 endef
149
150 $(eval $(call KernelPackage,ata-piix))
151
152
153 define KernelPackage/ata-sil
154 TITLE:=Silicon Image SATA support
155 KCONFIG:=CONFIG_SATA_SIL
156 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
157 AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
158 $(call AddDepends/ata)
159 endef
160
161 define KernelPackage/ata-sil/description
162 Support for Silicon Image Serial ATA controllers
163 endef
164
165 $(eval $(call KernelPackage,ata-sil))
166
167
168 define KernelPackage/ata-sil24
169 TITLE:=Silicon Image 3124/3132 SATA support
170 KCONFIG:=CONFIG_SATA_SIL24
171 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
172 AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
173 $(call AddDepends/ata)
174 endef
175
176 define KernelPackage/ata-sil24/description
177 Support for Silicon Image 3124/3132 Serial ATA controllers
178 endef
179
180 $(eval $(call KernelPackage,ata-sil24))
181
182
183 define KernelPackage/ata-via-sata
184 TITLE:=VIA SATA support
185 KCONFIG:=CONFIG_SATA_VIA
186 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
187 AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
188 $(call AddDepends/ata)
189 endef
190
191 define KernelPackage/ata-via-sata/description
192 This option enables support for VIA Serial ATA
193 endef
194
195 $(eval $(call KernelPackage,ata-via-sata))
196
197
198 define KernelPackage/block2mtd
199 SUBMENU:=$(BLOCK_MENU)
200 TITLE:=Block device MTD emulation
201 KCONFIG:=CONFIG_MTD_BLOCK2MTD
202 FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
203 endef
204
205 $(eval $(call KernelPackage,block2mtd))
206
207
208 define KernelPackage/dax
209 SUBMENU:=$(BLOCK_MENU)
210 TITLE:=DAX: direct access to differentiated memory
211 KCONFIG:=CONFIG_DAX
212 FILES:=$(LINUX_DIR)/drivers/dax/dax.ko
213 endef
214
215 $(eval $(call KernelPackage,dax))
216
217
218 define KernelPackage/dm
219 SUBMENU:=$(BLOCK_MENU)
220 TITLE:=Device Mapper
221 DEPENDS:=+kmod-crypto-manager +kmod-dax
222 # All the "=n" are unnecessary, they're only there
223 # to stop the config from asking the question.
224 # MIRROR is M because I've needed it for pvmove.
225 KCONFIG:= \
226 CONFIG_BLK_DEV_MD=n \
227 CONFIG_DM_DEBUG=n \
228 CONFIG_DM_UEVENT=n \
229 CONFIG_DM_DELAY=n \
230 CONFIG_DM_LOG_WRITES=n \
231 CONFIG_DM_MQ_DEFAULT=n \
232 CONFIG_DM_MULTIPATH=n \
233 CONFIG_DM_ZERO=n \
234 CONFIG_DM_SNAPSHOT=n \
235 CONFIG_DM_LOG_USERSPACE=n \
236 CONFIG_MD=y \
237 CONFIG_BLK_DEV_DM \
238 CONFIG_DM_CRYPT \
239 CONFIG_DM_MIRROR
240 FILES:= \
241 $(LINUX_DIR)/drivers/md/dm-mod.ko \
242 $(LINUX_DIR)/drivers/md/dm-crypt.ko \
243 $(LINUX_DIR)/drivers/md/dm-log.ko \
244 $(LINUX_DIR)/drivers/md/dm-mirror.ko \
245 $(LINUX_DIR)/drivers/md/dm-region-hash.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 define KernelPackage/dm-raid
256 SUBMENU:=$(BLOCK_MENU)
257 TITLE:=LVM2 raid support
258 DEPENDS:=+kmod-dm +kmod-md-mod \
259 +kmod-md-raid0 +kmod-md-raid1 +kmod-md-raid10 +kmod-md-raid456
260 KCONFIG:= \
261 CONFIG_DM_RAID
262 FILES:=$(LINUX_DIR)/drivers/md/dm-raid.ko
263 AUTOLOAD:=$(call AutoLoad,31,dm-raid)
264 endef
265
266 define KernelPackage/dm-raid/description
267 Kernel module necessary for LVM2 raid support
268 endef
269
270 $(eval $(call KernelPackage,dm-raid))
271
272
273 define KernelPackage/md-mod
274 SUBMENU:=$(BLOCK_MENU)
275 TITLE:=MD RAID
276 KCONFIG:= \
277 CONFIG_MD=y \
278 CONFIG_BLK_DEV_MD=m \
279 CONFIG_MD_AUTODETECT=y \
280 CONFIG_MD_FAULTY=n
281 FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
282 AUTOLOAD:=$(call AutoLoad,27,md-mod)
283 endef
284
285 define KernelPackage/md-mod/description
286 Kernel RAID md module (md-mod.ko).
287 You will need to select at least one RAID level module below.
288 endef
289
290 $(eval $(call KernelPackage,md-mod))
291
292
293 define KernelPackage/md/Depends
294 SUBMENU:=$(BLOCK_MENU)
295 DEPENDS:=kmod-md-mod $(1)
296 endef
297
298
299 define KernelPackage/md-linear
300 $(call KernelPackage/md/Depends,)
301 TITLE:=RAID Linear Module
302 KCONFIG:=CONFIG_MD_LINEAR
303 FILES:=$(LINUX_DIR)/drivers/md/linear.ko
304 AUTOLOAD:=$(call AutoLoad,28,linear)
305 endef
306
307 define KernelPackage/md-linear/description
308 RAID "Linear" or "Append" driver module (linear.ko)
309 endef
310
311 $(eval $(call KernelPackage,md-linear))
312
313
314 define KernelPackage/md-raid0
315 $(call KernelPackage/md/Depends,)
316 TITLE:=RAID0 Module
317 KCONFIG:=CONFIG_MD_RAID0
318 FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
319 AUTOLOAD:=$(call AutoLoad,28,raid0)
320 endef
321
322 define KernelPackage/md-raid0/description
323 RAID Level 0 (Striping) driver module (raid0.ko)
324 endef
325
326 $(eval $(call KernelPackage,md-raid0))
327
328
329 define KernelPackage/md-raid1
330 $(call KernelPackage/md/Depends,)
331 TITLE:=RAID1 Module
332 KCONFIG:=CONFIG_MD_RAID1
333 FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
334 AUTOLOAD:=$(call AutoLoad,28,raid1)
335 endef
336
337 define KernelPackage/md-raid1/description
338 RAID Level 1 (Mirroring) driver (raid1.ko)
339 endef
340
341 $(eval $(call KernelPackage,md-raid1))
342
343
344 define KernelPackage/md-raid10
345 $(call KernelPackage/md/Depends,)
346 TITLE:=RAID10 Module
347 KCONFIG:=CONFIG_MD_RAID10
348 FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
349 AUTOLOAD:=$(call AutoLoad,28,raid10)
350 endef
351
352 define KernelPackage/md-raid10/description
353 RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
354 endef
355
356 $(eval $(call KernelPackage,md-raid10))
357
358
359 define KernelPackage/md-raid456
360 $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor +kmod-lib-crc32c)
361 TITLE:=RAID Level 456 Driver
362 KCONFIG:= \
363 CONFIG_ASYNC_CORE \
364 CONFIG_ASYNC_MEMCPY \
365 CONFIG_ASYNC_XOR \
366 CONFIG_ASYNC_PQ \
367 CONFIG_ASYNC_RAID6_RECOV \
368 CONFIG_ASYNC_RAID6_TEST=n \
369 CONFIG_MD_RAID456 \
370 CONFIG_MULTICORE_RAID456=n
371 FILES:= \
372 $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
373 $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
374 $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
375 $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
376 $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
377 $(LINUX_DIR)/drivers/md/raid456.ko
378 AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
379 endef
380
381 define KernelPackage/md-raid456/description
382 RAID Level 4,5,6 kernel module (raid456.ko)
383
384 Includes the following modules required by
385 raid456.ko:
386 xor.ko
387 async_tx.ko
388 async_xor.ko
389 async_memcpy.ko
390 async_pq.ko
391 async_raid5_recov.ko
392 raid6_pq.ko
393 endef
394
395 $(eval $(call KernelPackage,md-raid456))
396
397
398 define KernelPackage/md-multipath
399 $(call KernelPackage/md/Depends,)
400 TITLE:=MD Multipath Module
401 KCONFIG:=CONFIG_MD_MULTIPATH
402 FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
403 AUTOLOAD:=$(call AutoLoad,29,multipath)
404 endef
405
406 define KernelPackage/md-multipath/description
407 Multipath driver module (multipath.ko)
408 endef
409
410 $(eval $(call KernelPackage,md-multipath))
411
412
413 define KernelPackage/libsas
414 SUBMENU:=$(BLOCK_MENU)
415 DEPENDS:=@TARGET_x86
416 TITLE:=SAS Domain Transport Attributes
417 KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
418 CONFIG_SCSI_SAS_ATTRS \
419 CONFIG_SCSI_SAS_ATA=y \
420 CONFIG_SCSI_SAS_HOST_SMP=y \
421 CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
422 FILES:= \
423 $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
424 $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
425 AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
426 endef
427
428 define KernelPackage/libsas/description
429 SAS Domain Transport Attributes support
430 endef
431
432 $(eval $(call KernelPackage,libsas,1))
433
434
435 define KernelPackage/loop
436 SUBMENU:=$(BLOCK_MENU)
437 TITLE:=Loopback device support
438 KCONFIG:= \
439 CONFIG_BLK_DEV_LOOP \
440 CONFIG_BLK_DEV_CRYPTOLOOP=n
441 FILES:=$(LINUX_DIR)/drivers/block/loop.ko
442 AUTOLOAD:=$(call AutoLoad,30,loop)
443 endef
444
445 define KernelPackage/loop/description
446 Kernel module for loopback device support
447 endef
448
449 $(eval $(call KernelPackage,loop))
450
451
452 define KernelPackage/mvsas
453 SUBMENU:=$(BLOCK_MENU)
454 TITLE:=Marvell 88SE6440 SAS/SATA driver
455 DEPENDS:=@TARGET_x86 +kmod-libsas
456 KCONFIG:= \
457 CONFIG_SCSI_MVSAS \
458 CONFIG_SCSI_MVSAS_TASKLET=n
459 FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
460 AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
461 endef
462
463 define KernelPackage/mvsas/description
464 Kernel support for the Marvell SAS SCSI adapters
465 endef
466
467 $(eval $(call KernelPackage,mvsas))
468
469
470 define KernelPackage/nbd
471 SUBMENU:=$(BLOCK_MENU)
472 TITLE:=Network block device support
473 KCONFIG:=CONFIG_BLK_DEV_NBD
474 FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
475 AUTOLOAD:=$(call AutoLoad,30,nbd)
476 endef
477
478 define KernelPackage/nbd/description
479 Kernel module for network block device support
480 endef
481
482 $(eval $(call KernelPackage,nbd))
483
484
485 define KernelPackage/scsi-core
486 SUBMENU:=$(BLOCK_MENU)
487 TITLE:=SCSI device support
488 KCONFIG:= \
489 CONFIG_SCSI \
490 CONFIG_BLK_DEV_SD
491 FILES:= \
492 $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
493 $(LINUX_DIR)/drivers/scsi/sd_mod.ko
494 AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
495 endef
496
497 $(eval $(call KernelPackage,scsi-core))
498
499
500 define KernelPackage/scsi-generic
501 SUBMENU:=$(BLOCK_MENU)
502 TITLE:=Kernel support for SCSI generic
503 DEPENDS:=+kmod-scsi-core
504 KCONFIG:= \
505 CONFIG_CHR_DEV_SG
506 FILES:= \
507 $(LINUX_DIR)/drivers/scsi/sg.ko
508 AUTOLOAD:=$(call AutoLoad,65,sg)
509 endef
510
511 $(eval $(call KernelPackage,scsi-generic))
512
513
514 define KernelPackage/scsi-cdrom
515 SUBMENU:=$(BLOCK_MENU)
516 TITLE:=Kernel support for CD / DVD drives
517 DEPENDS:=+kmod-scsi-core
518 KCONFIG:= \
519 CONFIG_BLK_DEV_SR \
520 CONFIG_BLK_DEV_SR_VENDOR=n
521 FILES:= \
522 $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
523 $(LINUX_DIR)/drivers/scsi/sr_mod.ko
524 AUTOLOAD:=$(call AutoLoad,45,sr_mod)
525 endef
526
527 $(eval $(call KernelPackage,scsi-cdrom))
528
529
530 define KernelPackage/scsi-tape
531 SUBMENU:=$(BLOCK_MENU)
532 TITLE:=Kernel support for scsi tape drives
533 DEPENDS:=+kmod-scsi-core
534 KCONFIG:= \
535 CONFIG_CHR_DEV_ST
536 FILES:= \
537 $(LINUX_DIR)/drivers/scsi/st.ko
538 AUTOLOAD:=$(call AutoLoad,45,st)
539 endef
540
541 $(eval $(call KernelPackage,scsi-tape))