fixes bluetooth dependency, thx sn9
[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 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 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
196 FILES:= \
197 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
198 $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
199 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-gd_mod)
200 else
201 FILES:= \
202 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
203 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
204 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
205 endif
206 endef
207
208 define KernelPackage/ide-core/2.4
209 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
210 AUTOLOAD+=$(call AutoLoad,35,ide-detect)
211 endef
212
213 ifneq ($(CONFIG_arm)$(CONFIG_powerpc),y)
214 define KernelPackage/ide-core/2.6
215 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
216 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
217 endef
218 endif
219
220 define KernelPackage/ide-core/description
221 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
222 Includes:
223 - ide-core
224 - ide-detect
225 - ide-gd_mod (or ide-disk)
226 endef
227
228 $(eval $(call KernelPackage,ide-core))
229
230
231 define KernelPackage/ide-aec62xx
232 SUBMENU:=$(BLOCK_MENU)
233 TITLE:=Acard AEC62xx IDE driver
234 DEPENDS:=@PCI_SUPPORT +kmod-ide-core
235 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
236 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
237 FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
238 else
239 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
240 endif
241 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
242 endef
243
244 define KernelPackage/ide-aec62xx/description
245 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
246 endef
247
248 $(eval $(call KernelPackage,ide-aec62xx))
249
250
251 define KernelPackage/ide-magicbox
252 SUBMENU:=$(BLOCK_MENU)
253 TITLE:=Magicbox v2/OpenRB Compact flash support (IDE)
254 DEPENDS:=@TARGET_ppc40x +kmod-ide-core
255 KCONFIG:=CONFIG_BLK_DEV_IDE_MAGICBOX
256 FILES:=$(LINUX_DIR)/drivers/ide/magicbox_ide.$(LINUX_KMOD_SUFFIX)
257 AUTOLOAD:=$(call AutoLoad,30,magicbox_ide)
258 endef
259
260 define KernelPackage/ide-magicbox/description
261 Support for Magicbox v2/OpenRB on-board CF slot. (IDE version).
262 endef
263
264 $(eval $(call KernelPackage,ide-magicbox))
265
266
267 define KernelPackage/ide-pdc202xx
268 SUBMENU:=$(BLOCK_MENU)
269 TITLE:=Promise PDC202xx IDE driver
270 DEPENDS:=+kmod-ide-core
271 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
272 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
273 FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
274 else
275 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
276 endif
277 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
278 endef
279
280 define KernelPackage/ide-pdc202xx/2.4
281 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
282 endef
283
284 define KernelPackage/ide-pdc202xx/description
285 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
286 controllers.
287 endef
288
289 $(eval $(call KernelPackage,ide-pdc202xx))
290
291
292 define KernelPackage/ide-it821x
293 SUBMENU:=$(BLOCK_MENU)
294 TITLE:=ITE IT821x IDE driver
295 DEPENDS:=+kmod-ide-core
296 KCONFIG:=CONFIG_BLK_DEV_IT821X
297 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
298 FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
299 else
300 FILES=$(LINUX_DIR)/drivers/ide/pci/it821x.$(LINUX_KMOD_SUFFIX)
301 endif
302 AUTOLOAD:=$(call AutoLoad,30,it821x)
303 endef
304
305 define KernelPackage/ide-it821x/description
306 Kernel module for the ITE IDE821x IDE controllers.
307 endef
308
309 $(eval $(call KernelPackage,ide-it821x))
310
311
312 define KernelPackage/scsi-core
313 SUBMENU:=$(BLOCK_MENU)
314 TITLE:=SCSI device support
315 KCONFIG:= \
316 CONFIG_SCSI \
317 CONFIG_BLK_DEV_SD
318 FILES:= \
319 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
320 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
321 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
322 endef
323
324 $(eval $(call KernelPackage,scsi-core))
325
326
327 define KernelPackage/scsi-generic
328 SUBMENU:=$(BLOCK_MENU)
329 TITLE:=Kernel support for SCSI generic
330 KCONFIG:= \
331 CONFIG_CHR_DEV_SG
332 FILES:= \
333 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
334 AUTOLOAD:=$(call AutoLoad,65,sg)
335 endef
336
337 $(eval $(call KernelPackage,scsi-generic))
338
339
340 define KernelPackage/loop
341 SUBMENU:=$(BLOCK_MENU)
342 TITLE:=Loopback device support
343 KCONFIG:= \
344 CONFIG_BLK_DEV_LOOP \
345 CONFIG_BLK_DEV_CRYPTOLOOP=n
346 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
347 AUTOLOAD:=$(call AutoLoad,30,loop)
348 endef
349
350 define KernelPackage/loop/description
351 Kernel module for loopback device support
352 endef
353
354 $(eval $(call KernelPackage,loop))
355
356
357 define KernelPackage/nbd
358 SUBMENU:=$(BLOCK_MENU)
359 TITLE:=Network block device support
360 KCONFIG:=CONFIG_BLK_DEV_NBD
361 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
362 AUTOLOAD:=$(call AutoLoad,30,nbd)
363 endef
364
365 define KernelPackage/nbd/description
366 Kernel module for network block device support
367 endef
368
369 $(eval $(call KernelPackage,nbd))
370
371
372 define KernelPackage/pata-rb153-cf
373 SUBMENU:=$(BLOCK_MENU)
374 DEPENDS:=kmod-ata-core @TARGET_adm5120_router_le
375 TITLE:=RouterBOARD 153 CF Slot support
376 KCONFIG:=CONFIG_PATA_RB153_CF
377 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
378 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf)
379 endef
380
381 define KernelPackage/pata-rb153-cf/description
382 Kernel support for the RouterBoard 153 CF slot.
383 endef
384
385 $(eval $(call KernelPackage,pata-rb153-cf))
386
387
388 define KernelPackage/aoe
389 SUBMENU:=$(BLOCK_MENU)
390 TITLE:=ATA over Ethernet support
391 KCONFIG:=CONFIG_ATA_OVER_ETH
392 FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
393 AUTOLOAD:=$(call AutoLoad,30,aoe)
394 endef
395
396 define KernelPackage/aoe/description
397 Kernel support for ATA over Ethernet
398 endef
399
400 $(eval $(call KernelPackage,aoe))
401
402 define KernelPackage/ps3vram
403 SUBMENU:=$(BLOCK_MENU)
404 TITLE:=PS3 Video RAM Storage Driver
405 DEPENDS:=@TARGET_ps3||TARGET_ps3chk
406 KCONFIG:=CONFIG_PS3_VRAM
407 FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
408 AUTOLOAD:=$(call AutoLoad,01,ps3vram)
409 endef
410
411 define KernelPackage/ps3vram/description
412 Kernel support for PS3 Video RAM Storage
413 endef
414
415 $(eval $(call KernelPackage,ps3vram))
416
417 define KernelPackage/axonram
418 SUBMENU:=$(BLOCK_MENU)
419 TITLE:=Axon DDR2 memory device driver
420 DEPENDS:=@TARGET_pxcab
421 KCONFIG:=CONFIG_AXON_RAM
422 FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
423 AUTOLOAD:=$(call AutoLoad,01,axonram)
424 endef
425
426 define KernelPackage/axonram/description
427 Kernel support for Axon DDR2 memory device
428 endef
429
430 $(eval $(call KernelPackage,axonram))
431
432 define KernelPackage/libsas
433 SUBMENU:=$(BLOCK_MENU)
434 TITLE:=SAS Domain Transport Attributes
435 DEPENDS:=+kmod-scsi-core @TARGET_x86
436 KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
437 CONFIG_SCSI_SAS_ATTRS \
438 CONFIG_SCSI_SAS_ATA=y \
439 CONFIG_SCSI_SAS_HOST_SMP=y \
440 CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
441 FILES:= \
442 $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
443 $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
444 AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas)
445 endef
446
447 define KernelPackage/libsas/description
448 SAS Domain Transport Attributes support.
449 endef
450
451 $(eval $(call KernelPackage,libsas))
452
453 define KernelPackage/mvsas
454 SUBMENU:=$(BLOCK_MENU)
455 TITLE:=Marvell 88SE6440 SAS/SATA driver
456 DEPENDS:=@TARGET_x86 +kmod-libsas
457 KCONFIG:=CONFIG_SCSI_MVSAS
458 FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
459 AUTOLOAD:=$(call AutoLoad,40,mvsas)
460 endef
461
462 define KernelPackage/mvsas/description
463 Kernel support for the Marvell SAS SCSI adapters
464 endef
465
466 $(eval $(call KernelPackage,mvsas))
This page took 0.05803 seconds and 5 git commands to generate.