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