[package] base-files: make diag.sh stub working in bash
[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-piix
117 SUBMENU:=$(BLOCK_MENU)
118 TITLE:=Intel PIIX PATA/SATA support
119 DEPENDS:=kmod-ata-core
120 KCONFIG:=CONFIG_ATA_PIIX
121 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
122 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
123 endef
124
125 define KernelPackage/ata-piix/description
126 SATA support for Intel ICH5/6/7/8 series host controllers and
127 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
128 endef
129
130 $(eval $(call KernelPackage,ata-piix))
131
132
133 define KernelPackage/ata-via-sata
134 SUBMENU:=$(BLOCK_MENU)
135 TITLE:=VIA SATA support
136 DEPENDS:=kmod-ata-core
137 KCONFIG:=CONFIG_SATA_VIA
138 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
139 AUTOLOAD:=$(call AutoLoad,41,sata_via)
140 endef
141
142 define KernelPackage/ata-via-sata/description
143 This option enables support for VIA Serial ATA.
144 endef
145
146 $(eval $(call KernelPackage,ata-via-sata))
147
148
149 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
150 define KernelPackage/ide-core
151 SUBMENU:=$(BLOCK_MENU)
152 TITLE:=IDE (ATA/ATAPI) device support
153 DEPENDS:=@PCI_SUPPORT
154 KCONFIG:= \
155 CONFIG_IDE \
156 CONFIG_IDE_GENERIC \
157 CONFIG_BLK_DEV_GENERIC \
158 CONFIG_BLK_DEV_IDE \
159 CONFIG_IDE_GD \
160 CONFIG_IDE_GD_ATA=y \
161 CONFIG_IDE_GD_ATAPI=n \
162 CONFIG_BLK_DEV_IDEDMA_PCI=y \
163 CONFIG_BLK_DEV_IDEPCI=y
164 FILES:= \
165 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
166 $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
167 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-gd_mod)
168 endef
169 else
170 define KernelPackage/ide-core
171 SUBMENU:=$(BLOCK_MENU)
172 TITLE:=IDE (ATA/ATAPI) device support
173 DEPENDS:=@PCI_SUPPORT
174 KCONFIG:= \
175 CONFIG_IDE \
176 CONFIG_IDE_GENERIC \
177 CONFIG_BLK_DEV_GENERIC \
178 CONFIG_BLK_DEV_IDE \
179 CONFIG_BLK_DEV_IDEDISK \
180 CONFIG_BLK_DEV_IDEDMA_PCI=y \
181 CONFIG_BLK_DEV_IDEPCI=y
182 FILES:= \
183 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
184 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
185 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
186 endef
187 endif
188
189 define KernelPackage/ide-core/2.4
190 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
191 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
192 endef
193
194 ifeq ($(and $(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.26)),1),
195 $(strip $(cal CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,2.6.28)))
196 define KernelPackage/ide-core/2.6
197 FILES+=$(LINUX_DIR)/drivers/ide/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
198 AUTOLOAD+=$(call AutoLoad,30,ide-pci-generic)
199 endef
200 else
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 2.0 IDE CF driver
241 DEPENDS:=@TARGET_magicbox +kmod-ide-core
242 KCONFIG:=CONFIG_BLK_DEV_MAGICBOX_IDE
243 FILES:=$(LINUX_DIR)/drivers/ide/ppc/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 2.0 onboard CF slot.
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:=@LINUX_2_4 +kmod-ide-core
258 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
259 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
260 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
261 endef
262
263 define KernelPackage/ide-pdc202xx/description
264 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
265 controllers.
266 endef
267
268 $(eval $(call KernelPackage,ide-pdc202xx))
269
270
271 define KernelPackage/scsi-core
272 SUBMENU:=$(BLOCK_MENU)
273 TITLE:=SCSI device support
274 KCONFIG:= \
275 CONFIG_SCSI \
276 CONFIG_BLK_DEV_SD
277 FILES:= \
278 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
279 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
280 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
281 endef
282
283 $(eval $(call KernelPackage,scsi-core))
284
285
286 define KernelPackage/scsi-generic
287 SUBMENU:=$(BLOCK_MENU)
288 TITLE:=Kernel support for SCSI generic
289 KCONFIG:= \
290 CONFIG_CHR_DEV_SG
291 FILES:= \
292 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
293 AUTOLOAD:=$(call AutoLoad,65,sg)
294 endef
295
296 $(eval $(call KernelPackage,scsi-generic))
297
298
299 define KernelPackage/loop
300 SUBMENU:=$(BLOCK_MENU)
301 TITLE:=Loopback device support
302 KCONFIG:= \
303 CONFIG_BLK_DEV_LOOP \
304 CONFIG_BLK_DEV_CRYPTOLOOP=n
305 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
306 AUTOLOAD:=$(call AutoLoad,30,loop)
307 endef
308
309 define KernelPackage/loop/description
310 Kernel module for loopback device support
311 endef
312
313 $(eval $(call KernelPackage,loop))
314
315
316 define KernelPackage/nbd
317 SUBMENU:=$(BLOCK_MENU)
318 TITLE:=Network block device support
319 KCONFIG:=CONFIG_BLK_DEV_NBD
320 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
321 AUTOLOAD:=$(call AutoLoad,30,nbd)
322 endef
323
324 define KernelPackage/nbd/description
325 Kernel module for network block device support
326 endef
327
328 $(eval $(call KernelPackage,nbd))
329
330
331 define KernelPackage/pata-rb153-cf
332 SUBMENU:=$(BLOCK_MENU)
333 DEPENDS:=kmod-ata-core @TARGET_adm5120_router_le
334 TITLE:=RouterBOARD 153 CF Slot support
335 KCONFIG:=CONFIG_PATA_RB153_CF
336 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
337 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf)
338 endef
339
340 define KernelPackage/pata-rb153-cf/description
341 Kernel support for the RouterBoard 153 CF slot.
342 endef
343
344 $(eval $(call KernelPackage,pata-rb153-cf))
345
346
347 define KernelPackage/aoe
348 SUBMENU:=$(BLOCK_MENU)
349 TITLE:=ATA over Ethernet support
350 KCONFIG:=CONFIG_ATA_OVER_ETH
351 FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
352 AUTOLOAD:=$(call AutoLoad,30,aoe)
353 endef
354
355 define KernelPackage/aoe/description
356 Kernel support for ATA over Ethernet
357 endef
358
359 $(eval $(call KernelPackage,aoe))
360
361 define KernelPackage/ps3vram
362 SUBMENU:=$(BLOCK_MENU)
363 TITLE:=PS3 Video RAM Storage Driver
364 DEPENDS:=@TARGET_ps3||TARGET_ps3chk
365 KCONFIG:=CONFIG_PS3_VRAM
366 FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
367 AUTOLOAD:=$(call AutoLoad,01,ps3vram)
368 endef
369
370 define KernelPackage/ps3vram/description
371 Kernel support for PS3 Video RAM Storage
372 endef
373
374 $(eval $(call KernelPackage,ps3vram))
This page took 0.068519 seconds and 5 git commands to generate.