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