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