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