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