Root/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
8BLOCK_MENU:=Block Devices
9
10define KernelPackage/ata-core
11  SUBMENU:=$(BLOCK_MENU)
12  TITLE:=Serial and Parallel ATA support
13  DEPENDS:=@PCI_SUPPORT @LINUX_2_6 +kmod-scsi-core @(!TARGET_ubicom32||!TARGET_etrax||!TARGET_x86)
14  KCONFIG:=CONFIG_ATA
15  FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
16  AUTOLOAD:=$(call AutoLoad,21,libata,1)
17endef
18
19$(eval $(call KernelPackage,ata-core))
20
21
22define KernelPackage/ata/Depends
23  SUBMENU:=$(BLOCK_MENU)
24  DEPENDS:=!TARGET_x86:kmod-ata-core $(1)
25endef
26
27
28define KernelPackage/ata-ahci
29$(call KernelPackage/ata/Depends,)
30  TITLE:=AHCI Serial ATA support
31  KCONFIG:=CONFIG_SATA_AHCI
32  FILES:=$(LINUX_DIR)/drivers/ata/ahci.$(LINUX_KMOD_SUFFIX)
33  AUTOLOAD:=$(call AutoLoad,41,ahci,1)
34endef
35
36define KernelPackage/ata-ahci/description
37 Support for AHCI Serial ATA controllers.
38endef
39
40$(eval $(call KernelPackage,ata-ahci))
41
42define KernelPackage/ata-sil
43$(call KernelPackage/ata/Depends,)
44  TITLE:=Silicon Image SATA support
45  KCONFIG:=CONFIG_SATA_SIL
46  FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.$(LINUX_KMOD_SUFFIX)
47  AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
48endef
49
50define KernelPackage/ata-sil/description
51 Support for Silicon Image Serial ATA controllers.
52endef
53
54$(eval $(call KernelPackage,ata-sil))
55
56
57define KernelPackage/ata-sil24
58$(call KernelPackage/ata/Depends,)
59  TITLE:=Silicon Image 3124/3132 SATA support
60  KCONFIG:=CONFIG_SATA_SIL24
61  FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.$(LINUX_KMOD_SUFFIX)
62  AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
63endef
64
65define KernelPackage/ata-sil24/description
66 Support for Silicon Image 3124/3132 Serial ATA controllers.
67endef
68
69$(eval $(call KernelPackage,ata-sil24))
70
71
72define KernelPackage/ata-artop
73$(call KernelPackage/ata/Depends,)
74  TITLE:=ARTOP 6210/6260 PATA support
75  KCONFIG:=CONFIG_PATA_ARTOP
76  FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
77  AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
78endef
79
80define KernelPackage/ata-artop/description
81 PATA support for ARTOP 6210/6260 host controllers.
82endef
83
84$(eval $(call KernelPackage,ata-artop))
85
86define KernelPackage/ata-octeon-cf
87$(call KernelPackage/ata/Depends,@TARGET_octeon)
88  TITLE:=Octeon Compact Flash support
89  KCONFIG:=CONFIG_PATA_OCTEON_CF
90  FILES:=$(LINUX_DIR)/drivers/ata/pata_octeon_cf.$(LINUX_KMOD_SUFFIX)
91  AUTOLOAD:=$(call AutoLoad,41,pata_octeon_cf,1)
92endef
93
94define KernelPackage/ata-octeon-cf/description
95  Octeon Compact Flash support.
96endef
97
98$(eval $(call KernelPackage,ata-octeon-cf))
99
100
101define KernelPackage/ata-ixp4xx-cf
102$(call KernelPackage/ata/Depends,@TARGET_ixp4xx)
103  TITLE:=IXP4XX Compact Flash support
104  KCONFIG:=CONFIG_PATA_IXP4XX_CF
105  FILES:=$(LINUX_DIR)/drivers/ata/pata_ixp4xx_cf.$(LINUX_KMOD_SUFFIX)
106  AUTOLOAD:=$(call AutoLoad,41,pata_ixp4xx_cf,1)
107endef
108
109define KernelPackage/ata-ixp4xx-cf/description
110 IXP4XX Compact Flash support.
111endef
112
113$(eval $(call KernelPackage,ata-ixp4xx-cf))
114
115define KernelPackage/ata-rb532-cf
116$(call KernelPackage/ata/Depends,@TARGET_rb532 @BROKEN)
117  TITLE:=RB532 Compact Flash support
118  KCONFIG:= \
119      CONFIG_PATA_PLATFORM \
120      CONFIG_PATA_RB532
121  FILES:=\
122      $(LINUX_DIR)/drivers/ata/pata_platform.$(LINUX_KMOD_SUFFIX) \
123      $(LINUX_DIR)/drivers/ata/pata_rb532_cf.$(LINUX_KMOD_SUFFIX)
124  AUTOLOAD:=$(call AutoLoad,41,pata_platform pata_rb532_cf,1)
125endef
126
127define KernelPackage/ata-rb532-cf/description
128  RB532 Compact Flash support.
129endef
130
131$(eval $(call KernelPackage,ata-rb532-cf))
132
133define KernelPackage/ata-nvidia-sata
134$(call KernelPackage/ata/Depends,)
135  TITLE:=Nvidia Serial ATA support
136  KCONFIG:=CONFIG_SATA_NV
137  FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.$(LINUX_KMOD_SUFFIX)
138  AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
139endef
140
141$(eval $(call KernelPackage,ata-nvidia-sata))
142
143
144define KernelPackage/ata-magicbox-cf
145$(call KernelPackage/ata/Depends,@TARGET_ppc40x)
146  TITLE:=Magicbox v2/OpenRB Compact flash support
147  KCONFIG:=CONFIG_PATA_MAGICBOX_CF
148  FILES:=$(LINUX_DIR)/drivers/ata/pata_magicbox_cf.$(LINUX_KMOD_SUFFIX)
149  AUTOLOAD:=$(call AutoLoad,41,pata_magicbox_cf,1)
150endef
151
152define KernelPackage/ata-magicbox-cf/description
153  Support for Magicbox v2/OpenRB on-board CF slot.
154endef
155
156$(eval $(call KernelPackage,ata-magicbox-cf))
157
158
159define KernelPackage/ata-piix
160$(call KernelPackage/ata/Depends,)
161  TITLE:=Intel PIIX PATA/SATA support
162  KCONFIG:=CONFIG_ATA_PIIX
163  FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
164  AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
165endef
166
167define KernelPackage/ata-piix/description
168 SATA support for Intel ICH5/6/7/8 series host controllers and
169 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
170endef
171
172$(eval $(call KernelPackage,ata-piix))
173
174
175define KernelPackage/ata-via-sata
176$(call KernelPackage/ata/Depends,)
177  TITLE:=VIA SATA support
178  KCONFIG:=CONFIG_SATA_VIA
179  FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
180  AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
181endef
182
183define KernelPackage/ata-via-sata/description
184 This option enables support for VIA Serial ATA.
185endef
186
187$(eval $(call KernelPackage,ata-via-sata))
188
189
190define KernelPackage/ide-core
191  SUBMENU:=$(BLOCK_MENU)
192  TITLE:=IDE (ATA/ATAPI) device support
193  DEPENDS:=@PCI_SUPPORT
194  KCONFIG:= \
195    CONFIG_IDE \
196    CONFIG_BLK_DEV_IDE \
197    CONFIG_BLK_DEV_IDEDISK \
198    CONFIG_IDE_GD \
199    CONFIG_IDE_GD_ATA=y \
200    CONFIG_IDE_GD_ATAPI=n \
201    CONFIG_BLK_DEV_IDEDMA_PCI=y \
202    CONFIG_BLK_DEV_IDEPCI=y
203  FILES:= \
204    $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX)
205  AUTOLOAD:= \
206    $(call AutoLoad,20,ide-core,1)
207endef
208
209define KernelPackage/ide-core/2.4
210  FILES+= \
211    $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
212      $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
213  AUTOLOAD+= \
214    $(call AutoLoad,35,ide-detect,1) \
215    $(call AutoLoad,40,ide-disk,1)
216endef
217
218define KernelPackage/ide-core/2.6
219  FILES+= \
220      $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
221  AUTOLOAD+= \
222    $(call AutoLoad,40,ide-gd_mod,1)
223endef
224
225define KernelPackage/ide-core/description
226 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
227 Includes:
228 - ide-core
229 - ide-detect
230 - ide-gd_mod (or ide-disk)
231endef
232
233$(eval $(call KernelPackage,ide-core))
234
235
236define KernelPackage/ide/Depends
237  SUBMENU:=$(BLOCK_MENU)
238  DEPENDS:=kmod-ide-core $(1)
239endef
240
241
242define KernelPackage/ide-generic
243$(call KernelPackage/ide/Depends,@PCI_SUPPORT)
244  SUBMENU:=$(BLOCK_MENU)
245  TITLE:=Kernel support for generic PCI IDE chipsets
246  KCONFIG:=CONFIG_BLK_DEV_GENERIC
247endef
248
249define KernelPackage/ide-generic/2.4
250  FILES+= \
251    $(LINUX_DIR)/drivers/ide/pci/generic.$(LINUX_KMOD_SUFFIX)
252  AUTOLOAD+= \
253    $(call AutoLoad,30,generic,1)
254endef
255
256define KernelPackage/ide-generic/2.6
257  FILES+= \
258    $(LINUX_DIR)/drivers/ide/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
259  AUTOLOAD+= \
260    $(call AutoLoad,30,ide-pci-generic,1)
261endef
262
263$(eval $(call KernelPackage,ide-generic))
264
265
266define KernelPackage/ide-generic-old
267$(call KernelPackage/ide/Depends,@LINUX_2_6)
268  SUBMENU:=$(BLOCK_MENU)
269  TITLE:=Kernel support for generic (legacy) IDE chipsets
270  KCONFIG:=CONFIG_IDE_GENERIC
271  FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
272  AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
273endef
274
275$(eval $(call KernelPackage,ide-generic-old))
276
277
278define KernelPackage/ide-aec62xx
279$(call KernelPackage/ide/Depends,@PCI_SUPPORT)
280  TITLE:=Acard AEC62xx IDE driver
281  KCONFIG:=CONFIG_BLK_DEV_AEC62XX
282  FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
283  AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
284endef
285
286define KernelPackage/ide-aec62xx/2.4
287  FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
288endef
289
290define KernelPackage/ide-aec62xx/description
291 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
292endef
293
294$(eval $(call KernelPackage,ide-aec62xx,1))
295
296
297define KernelPackage/ide-pdc202xx
298$(call KernelPackage/ide/Depends,@PCI_SUPPORT)
299  TITLE:=Promise PDC202xx IDE driver
300  KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
301  FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
302  AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
303endef
304
305define KernelPackage/ide-pdc202xx/2.4
306  FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
307endef
308
309define KernelPackage/ide-pdc202xx/description
310 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
311 controllers.
312endef
313
314$(eval $(call KernelPackage,ide-pdc202xx))
315
316
317define KernelPackage/ide-it821x
318$(call KernelPackage/ide/Depends,@PCI_SUPPORT)
319  TITLE:=ITE IT821x IDE driver
320  KCONFIG:=CONFIG_BLK_DEV_IT821X
321  FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
322  AUTOLOAD:=$(call AutoLoad,30,it821x,1)
323endef
324
325define KernelPackage/ide-it821x/description
326  Kernel module for the ITE IDE821x IDE controllers.
327endef
328
329$(eval $(call KernelPackage,ide-it821x))
330
331
332define KernelPackage/scsi-core
333  SUBMENU:=$(BLOCK_MENU)
334  TITLE:=SCSI device support
335  DEPENDS:=@!TARGET_x86
336  KCONFIG:= \
337    CONFIG_SCSI \
338    CONFIG_BLK_DEV_SD
339  FILES:= \
340    $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
341    $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
342  AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
343endef
344
345$(eval $(call KernelPackage,scsi-core))
346
347
348define KernelPackage/scsi-generic
349  SUBMENU:=$(BLOCK_MENU)
350  TITLE:=Kernel support for SCSI generic
351  KCONFIG:= \
352    CONFIG_CHR_DEV_SG
353  FILES:= \
354    $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
355  AUTOLOAD:=$(call AutoLoad,65,sg)
356endef
357
358$(eval $(call KernelPackage,scsi-generic))
359
360
361define KernelPackage/loop
362  SUBMENU:=$(BLOCK_MENU)
363  TITLE:=Loopback device support
364  KCONFIG:= \
365    CONFIG_BLK_DEV_LOOP \
366    CONFIG_BLK_DEV_CRYPTOLOOP=n
367  FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
368  AUTOLOAD:=$(call AutoLoad,30,loop)
369endef
370
371define KernelPackage/loop/description
372 Kernel module for loopback device support
373endef
374
375$(eval $(call KernelPackage,loop))
376
377
378define KernelPackage/nbd
379  SUBMENU:=$(BLOCK_MENU)
380  TITLE:=Network block device support
381  KCONFIG:=CONFIG_BLK_DEV_NBD
382  FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
383  AUTOLOAD:=$(call AutoLoad,30,nbd)
384endef
385
386define KernelPackage/nbd/description
387 Kernel module for network block device support
388endef
389
390$(eval $(call KernelPackage,nbd))
391
392
393define KernelPackage/dm
394  SUBMENU:=$(BLOCK_MENU)
395  TITLE:=Device Mapper
396  # All the "=n" are unnecessary, they're only there
397  # to stop the config from asking the question.
398  # MIRROR is M because I've needed it for pvmove.
399  KCONFIG:= \
400       CONFIG_BLK_DEV_MD=n \
401       CONFIG_DM_DEBUG=n \
402       CONFIG_DM_CRYPT=n \
403       CONFIG_DM_UEVENT=n \
404       CONFIG_DM_DELAY=n \
405       CONFIG_DM_MULTIPATH=n \
406       CONFIG_DM_ZERO=n \
407       CONFIG_DM_SNAPSHOT=n \
408       CONFIG_DM_LOG_USERSPACE=n \
409       CONFIG_MD=y \
410       CONFIG_BLK_DEV_DM \
411       CONFIG_DM_MIRROR
412  FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
413  AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror)
414endef
415
416define KernelPackage/dm/description
417 Kernel module necessary for LVM2 support
418endef
419
420$(eval $(call KernelPackage,dm))
421
422
423define KernelPackage/pata-rb153-cf
424$(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
425  TITLE:=RouterBOARD 153 CF Slot support
426  KCONFIG:=CONFIG_PATA_RB153_CF
427  FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
428  AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
429endef
430
431define KernelPackage/pata-rb153-cf/description
432  Kernel support for the RouterBoard 153 CF slot.
433endef
434
435$(eval $(call KernelPackage,pata-rb153-cf,1))
436
437
438define KernelPackage/aoe
439  SUBMENU:=$(BLOCK_MENU)
440  TITLE:=ATA over Ethernet support
441  KCONFIG:=CONFIG_ATA_OVER_ETH
442  FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
443  AUTOLOAD:=$(call AutoLoad,30,aoe)
444endef
445
446define KernelPackage/aoe/description
447  Kernel support for ATA over Ethernet
448endef
449
450$(eval $(call KernelPackage,aoe))
451
452define KernelPackage/ps3vram
453  SUBMENU:=$(BLOCK_MENU)
454  TITLE:=PS3 Video RAM Storage Driver
455  DEPENDS:=@TARGET_ps3||TARGET_ps3chk
456  KCONFIG:=CONFIG_PS3_VRAM
457  FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
458  AUTOLOAD:=$(call AutoLoad,01,ps3vram)
459endef
460
461define KernelPackage/ps3vram/description
462  Kernel support for PS3 Video RAM Storage
463endef
464
465$(eval $(call KernelPackage,ps3vram))
466
467define KernelPackage/axonram
468  SUBMENU:=$(BLOCK_MENU)
469  TITLE:=Axon DDR2 memory device driver
470  DEPENDS:=@TARGET_pxcab
471  KCONFIG:=CONFIG_AXON_RAM
472  FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
473  AUTOLOAD:=$(call AutoLoad,01,axonram)
474endef
475
476define KernelPackage/axonram/description
477  Kernel support for Axon DDR2 memory device
478endef
479
480$(eval $(call KernelPackage,axonram))
481
482define KernelPackage/libsas
483  SUBMENU:=$(BLOCK_MENU)
484  TITLE:=SAS Domain Transport Attributes
485  DEPENDS:=@TARGET_x86
486  KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
487    CONFIG_SCSI_SAS_ATTRS \
488    CONFIG_SCSI_SAS_ATA=y \
489    CONFIG_SCSI_SAS_HOST_SMP=y \
490    CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
491  FILES:= \
492    $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
493    $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
494  AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
495endef
496
497define KernelPackage/libsas/description
498  SAS Domain Transport Attributes support.
499endef
500
501$(eval $(call KernelPackage,libsas,1))
502
503define KernelPackage/mvsas
504  SUBMENU:=$(BLOCK_MENU)
505  TITLE:=Marvell 88SE6440 SAS/SATA driver
506  DEPENDS:=@TARGET_x86 +kmod-libsas
507  KCONFIG:=CONFIG_SCSI_MVSAS
508  ifneq ($(CONFIG_LINUX_2_6_25)$(CONFIG_LINUX_2_6_30),)
509    FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
510  else
511    FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.$(LINUX_KMOD_SUFFIX)
512  endif
513  AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
514endef
515
516define KernelPackage/mvsas/description
517  Kernel support for the Marvell SAS SCSI adapters
518endef
519
520$(eval $(call KernelPackage,mvsas))
521

Archive Download this file



interactive