kernel: fix some minor error:
[openwrt.git] / package / kernel / modules / block.mk
1 #
2 # Copyright (C) 2006-2008 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_etrax||!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-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)
92 endef
93
94 define KernelPackage/ata-octeon-cf/description
95   Octeon Compact Flash support.
96 endef
97
98 $(eval $(call KernelPackage,ata-octeon-cf))
99
100
101 define 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)
107 endef
108
109 define KernelPackage/ata-ixp4xx-cf/description
110  IXP4XX Compact Flash support.
111 endef
112
113 $(eval $(call KernelPackage,ata-ixp4xx-cf))
114
115 define 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)
125 endef
126
127 define KernelPackage/ata-rb532-cf/description
128   RB532 Compact Flash support.
129 endef
130
131 $(eval $(call KernelPackage,ata-rb532-cf))
132
133 define 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)
139 endef
140
141 $(eval $(call KernelPackage,ata-nvidia-sata))
142
143
144 define 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)
150 endef
151
152 define KernelPackage/ata-magicbox-cf/description
153   Support for Magicbox v2/OpenRB on-board CF slot.
154 endef
155
156 $(eval $(call KernelPackage,ata-magicbox-cf))
157
158
159 define 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)
165 endef
166
167 define 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.
170 endef
171
172 $(eval $(call KernelPackage,ata-piix))
173
174
175 define 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)
181 endef
182
183 define KernelPackage/ata-via-sata/description
184  This option enables support for VIA Serial ATA.
185 endef
186
187 $(eval $(call KernelPackage,ata-via-sata))
188
189
190 define 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_IDE_GENERIC \
197         CONFIG_BLK_DEV_GENERIC \
198         CONFIG_BLK_DEV_IDE \
199         CONFIG_BLK_DEV_IDEDISK \
200         CONFIG_IDE_GD \
201         CONFIG_IDE_GD_ATA=y \
202         CONFIG_IDE_GD_ATAPI=n \
203         CONFIG_BLK_DEV_IDEDMA_PCI=y \
204         CONFIG_BLK_DEV_IDEPCI=y
205   FILES:= \
206         $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
207         $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
208   AUTOLOAD:= \
209         $(call AutoLoad,20,ide-core,1) \
210         $(call AutoLoad,40,ide-gd_mod,1)
211 endef
212
213 define KernelPackage/ide-core/2.4
214   FILES:= \
215         $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
216         $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
217         $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
218   AUTOLOAD:= \
219         $(call AutoLoad,20,ide-core,1) \
220         $(call AutoLoad,35,ide-detect,1) \
221         $(call AutoLoad,40,ide-disk,1)
222 endef
223
224 ifneq ($(CONFIG_arm)$(CONFIG_powerpc),y)
225   define KernelPackage/ide-core/2.6
226         ifeq ($(CONFIG_PCI_SUPPORT),y)
227           FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX) \
228                 $(LINUX_DIR)/drivers/ide/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
229           AUTOLOAD+=$(call AutoLoad,30,ide-generic ide-pci-generic,1)
230         else
231           FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
232           AUTOLOAD+=$(call AutoLoad,30,ide-generic,1)
233         endif
234   endef
235 endif
236
237 define KernelPackage/ide-core/description
238  Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
239  Includes:
240  - ide-core
241  - ide-detect
242  - ide-gd_mod (or ide-disk)
243 endef
244
245 $(eval $(call KernelPackage,ide-core))
246
247
248 define KernelPackage/ide/Depends
249   SUBMENU:=$(BLOCK_MENU)
250   DEPENDS:=kmod-ide-core $(1)
251 endef
252
253
254 define KernelPackage/ide-aec62xx
255 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
256   TITLE:=Acard AEC62xx IDE driver
257   KCONFIG:=CONFIG_BLK_DEV_AEC62XX
258   FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
259   AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
260 endef
261
262 define KernelPackage/ide-aec62xx/2.4
263   FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
264 endef
265
266 define KernelPackage/ide-aec62xx/description
267  Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
268 endef
269
270 $(eval $(call KernelPackage,ide-aec62xx,1))
271
272
273 define KernelPackage/ide-pdc202xx
274 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
275   TITLE:=Promise PDC202xx IDE driver
276   KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
277   FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
278   AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
279 endef
280
281 define KernelPackage/ide-pdc202xx/2.4
282   FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
283 endef
284
285 define KernelPackage/ide-pdc202xx/description
286  Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
287  controllers.
288 endef
289
290 $(eval $(call KernelPackage,ide-pdc202xx))
291
292
293 define KernelPackage/ide-it821x
294 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
295   TITLE:=ITE IT821x IDE driver
296   KCONFIG:=CONFIG_BLK_DEV_IT821X
297   FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
298   AUTOLOAD:=$(call AutoLoad,30,it821x,1)
299 endef
300
301 define KernelPackage/ide-it821x/description
302   Kernel module for the ITE IDE821x IDE controllers.
303 endef
304
305 $(eval $(call KernelPackage,ide-it821x))
306
307
308 define KernelPackage/scsi-core
309   SUBMENU:=$(BLOCK_MENU)
310   TITLE:=SCSI device support
311   DEPENDS:=@!TARGET_x86
312   KCONFIG:= \
313         CONFIG_SCSI \
314         CONFIG_BLK_DEV_SD
315   FILES:= \
316         $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
317         $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
318   AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
319 endef
320
321 $(eval $(call KernelPackage,scsi-core))
322
323
324 define KernelPackage/scsi-generic
325   SUBMENU:=$(BLOCK_MENU)
326   TITLE:=Kernel support for SCSI generic
327   KCONFIG:= \
328         CONFIG_CHR_DEV_SG
329   FILES:= \
330         $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
331   AUTOLOAD:=$(call AutoLoad,65,sg)
332 endef
333
334 $(eval $(call KernelPackage,scsi-generic))
335
336
337 define KernelPackage/loop
338   SUBMENU:=$(BLOCK_MENU)
339   TITLE:=Loopback device support
340   KCONFIG:= \
341         CONFIG_BLK_DEV_LOOP \
342         CONFIG_BLK_DEV_CRYPTOLOOP=n
343   FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
344   AUTOLOAD:=$(call AutoLoad,30,loop)
345 endef
346
347 define KernelPackage/loop/description
348  Kernel module for loopback device support
349 endef
350
351 $(eval $(call KernelPackage,loop))
352
353
354 define KernelPackage/nbd
355   SUBMENU:=$(BLOCK_MENU)
356   TITLE:=Network block device support
357   KCONFIG:=CONFIG_BLK_DEV_NBD
358   FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
359   AUTOLOAD:=$(call AutoLoad,30,nbd)
360 endef
361
362 define KernelPackage/nbd/description
363  Kernel module for network block device support
364 endef
365
366 $(eval $(call KernelPackage,nbd))
367
368
369 define KernelPackage/dm
370   SUBMENU:=$(BLOCK_MENU)
371   TITLE:=Device Mapper
372   # All the "=n" are unnecessary, they're only there
373   # to stop the config from asking the question.
374   # MIRROR is M because I've needed it for pvmove.
375   KCONFIG:= \
376        CONFIG_BLK_DEV_MD=n \
377        CONFIG_DM_DEBUG=n \
378        CONFIG_DM_CRYPT=n \
379        CONFIG_DM_UEVENT=n \
380        CONFIG_DM_DELAY=n \
381        CONFIG_DM_MULTIPATH=n \
382        CONFIG_DM_ZERO=n \
383        CONFIG_DM_SNAPSHOT=n \
384        CONFIG_DM_LOG_USERSPACE=n \
385        CONFIG_MD=y \
386        CONFIG_BLK_DEV_DM \
387        CONFIG_DM_MIRROR
388   FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
389   AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror)
390 endef
391
392 define KernelPackage/dm/description
393  Kernel module necessary for LVM2 support
394 endef
395
396 $(eval $(call KernelPackage,dm))
397
398
399 define KernelPackage/pata-rb153-cf
400 $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
401   TITLE:=RouterBOARD 153 CF Slot support
402   KCONFIG:=CONFIG_PATA_RB153_CF
403   FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
404   AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
405 endef
406
407 define KernelPackage/pata-rb153-cf/description
408   Kernel support for the RouterBoard 153 CF slot.
409 endef
410
411 $(eval $(call KernelPackage,pata-rb153-cf,1))
412
413
414 define KernelPackage/aoe
415   SUBMENU:=$(BLOCK_MENU)
416   TITLE:=ATA over Ethernet support
417   KCONFIG:=CONFIG_ATA_OVER_ETH
418   FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
419   AUTOLOAD:=$(call AutoLoad,30,aoe)
420 endef
421
422 define KernelPackage/aoe/description
423   Kernel support for ATA over Ethernet
424 endef
425
426 $(eval $(call KernelPackage,aoe))
427
428 define KernelPackage/ps3vram
429   SUBMENU:=$(BLOCK_MENU)
430   TITLE:=PS3 Video RAM Storage Driver
431   DEPENDS:=@TARGET_ps3||TARGET_ps3chk
432   KCONFIG:=CONFIG_PS3_VRAM
433   FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
434   AUTOLOAD:=$(call AutoLoad,01,ps3vram)
435 endef
436
437 define KernelPackage/ps3vram/description
438   Kernel support for PS3 Video RAM Storage
439 endef
440
441 $(eval $(call KernelPackage,ps3vram))
442
443 define KernelPackage/axonram
444   SUBMENU:=$(BLOCK_MENU)
445   TITLE:=Axon DDR2 memory device driver
446   DEPENDS:=@TARGET_pxcab
447   KCONFIG:=CONFIG_AXON_RAM
448   FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
449   AUTOLOAD:=$(call AutoLoad,01,axonram)
450 endef
451
452 define KernelPackage/axonram/description
453   Kernel support for Axon DDR2 memory device
454 endef
455
456 $(eval $(call KernelPackage,axonram))
457
458 define KernelPackage/libsas
459   SUBMENU:=$(BLOCK_MENU)
460   TITLE:=SAS Domain Transport Attributes
461   DEPENDS:=@TARGET_x86
462   KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
463         CONFIG_SCSI_SAS_ATTRS \
464         CONFIG_SCSI_SAS_ATA=y \
465         CONFIG_SCSI_SAS_HOST_SMP=y \
466         CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
467   FILES:= \
468         $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
469         $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
470   AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
471 endef
472
473 define KernelPackage/libsas/description
474   SAS Domain Transport Attributes support.
475 endef
476
477 $(eval $(call KernelPackage,libsas,1))
478
479 define KernelPackage/mvsas
480   SUBMENU:=$(BLOCK_MENU)
481   TITLE:=Marvell 88SE6440 SAS/SATA driver
482   DEPENDS:=@TARGET_x86 +kmod-libsas
483   KCONFIG:=CONFIG_SCSI_MVSAS
484   ifneq ($(CONFIG_LINUX_2_6_25)$(CONFIG_LINUX_2_6_30),)
485         FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
486   else
487         FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.$(LINUX_KMOD_SUFFIX)
488   endif
489   AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
490 endef
491
492 define KernelPackage/mvsas/description
493   Kernel support for the Marvell SAS SCSI adapters
494 endef
495
496 $(eval $(call KernelPackage,mvsas))