get rid of $Id$ - it has never helped us and it has broken too many patches ;)
[openwrt/staging/yousong.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-artop
39 SUBMENU:=$(BLOCK_MENU)
40 TITLE:=ARTOP 6210/6260 PATA support
41 DEPENDS:=kmod-ata-core
42 KCONFIG:=CONFIG_PATA_ARTOP
43 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
45 endef
46
47 define KernelPackage/ata-artop/description
48 PATA support for ARTOP 6210/6260 host controllers.
49 endef
50
51 $(eval $(call KernelPackage,ata-artop))
52
53
54 define KernelPackage/ata-ixp4xx-cf
55 SUBMENU:=$(BLOCK_MENU)
56 TITLE:=IXP4XX Compact Flash support
57 DEPENDS:=kmod-ata-core
58 KCONFIG:=CONFIG_PATA_IXP4XX_CF
59 FILES:=$(LINUX_DIR)/drivers/ata/pata_ixp4xx_cf.$(LINUX_KMOD_SUFFIX)
60 AUTOLOAD:=$(call AutoLoad,41,pata_ixp4xx_cf)
61 endef
62
63 define KernelPackage/ata-ixp4xx-cf/description
64 IXP4XX Compact Flash support.
65 endef
66
67 $(eval $(call KernelPackage,ata-ixp4xx-cf))
68
69 define KernelPackage/ata-rb532-cf
70 SUBMENU:=$(BLOCK_MENU)
71 TITLE:=RB532 Compact Flash support
72 DEPENDS:=@TARGET_rb532 kmod-ata-core @BROKEN
73 KCONFIG:= \
74 CONFIG_PATA_PLATFORM \
75 CONFIG_PATA_RB532
76 FILES:=\
77 $(LINUX_DIR)/drivers/ata/pata_platform.$(LINUX_KMOD_SUFFIX) \
78 $(LINUX_DIR)/drivers/ata/pata_rb532_cf.$(LINUX_KMOD_SUFFIX)
79 AUTOLOAD:=$(call AutoLoad,41,pata_platform pata_rb532_cf)
80 endef
81
82 define KernelPackage/ata-rb532-cf/description
83 RB532 Compact Flash support.
84 endef
85
86 $(eval $(call KernelPackage,ata-rb532-cf))
87
88 define KernelPackage/ata-nvidia-sata
89 SUBMENU:=$(BLOCK_MENU)
90 TITLE:=Nvidia Serial ATA support
91 DEPENDS:=kmod-ata-core
92 KCONFIG:=CONFIG_SATA_NV
93 FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.$(LINUX_KMOD_SUFFIX)
94 AUTOLOAD:=$(call AutoLoad,41,sata_nv)
95 endef
96
97 $(eval $(call KernelPackage,ata-nvidia-sata))
98
99
100 define KernelPackage/ata-piix
101 SUBMENU:=$(BLOCK_MENU)
102 TITLE:=Intel PIIX PATA/SATA support
103 DEPENDS:=kmod-ata-core
104 KCONFIG:=CONFIG_ATA_PIIX
105 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
106 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
107 endef
108
109 define KernelPackage/ata-piix/description
110 SATA support for Intel ICH5/6/7/8 series host controllers and
111 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
112 endef
113
114 $(eval $(call KernelPackage,ata-piix))
115
116
117 define KernelPackage/ata-via-sata
118 SUBMENU:=$(BLOCK_MENU)
119 TITLE:=VIA SATA support
120 DEPENDS:=kmod-ata-core
121 KCONFIG:=CONFIG_SATA_VIA
122 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
123 AUTOLOAD:=$(call AutoLoad,41,sata_via)
124 endef
125
126 define KernelPackage/ata-via-sata/description
127 This option enables support for VIA Serial ATA.
128 endef
129
130 $(eval $(call KernelPackage,ata-via-sata))
131
132
133 # XXX: broken on 2.6.28 due to module name/path changes
134 define KernelPackage/ide-core
135 SUBMENU:=$(BLOCK_MENU)
136 TITLE:=IDE (ATA/ATAPI) device support
137 DEPENDS:=@PCI_SUPPORT
138 KCONFIG:= \
139 CONFIG_IDE \
140 CONFIG_IDE_GENERIC \
141 CONFIG_BLK_DEV_GENERIC \
142 CONFIG_BLK_DEV_IDE \
143 CONFIG_BLK_DEV_IDEDISK \
144 CONFIG_BLK_DEV_IDEDMA_PCI=y \
145 CONFIG_BLK_DEV_IDEPCI=y
146 FILES:= \
147 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
148 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
150 endef
151
152 define KernelPackage/ide-core/2.4
153 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
154 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
155 endef
156
157 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.26)),1)
158 define KernelPackage/ide-core/2.6
159 FILES+=$(LINUX_DIR)/drivers/ide/pci/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
160 AUTOLOAD+=$(call AutoLoad,30,ide-pci-generic)
161 endef
162 else
163 define KernelPackage/ide-core/2.6
164 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
165 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
166 endef
167 endif
168
169 define KernelPackage/ide-core/description
170 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
171 Includes:
172 - ide-core
173 - ide-detect
174 - ide-disk
175 endef
176
177 $(eval $(call KernelPackage,ide-core))
178
179
180 define KernelPackage/ide-aec62xx
181 SUBMENU:=$(BLOCK_MENU)
182 TITLE:=Acard AEC62xx IDE driver
183 DEPENDS:=@PCI_SUPPORT +kmod-ide-core
184 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
185 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
186 FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
187 else
188 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
189 endif
190 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
191 endef
192
193 define KernelPackage/ide-aec62xx/description
194 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
195 endef
196
197 $(eval $(call KernelPackage,ide-aec62xx))
198
199
200 define KernelPackage/ide-magicbox
201 SUBMENU:=$(BLOCK_MENU)
202 TITLE:=Magicbox 2.0 IDE CF driver
203 DEPENDS:=@TARGET_magicbox +kmod-ide-core
204 KCONFIG:=CONFIG_BLK_DEV_MAGICBOX_IDE
205 FILES:=$(LINUX_DIR)/drivers/ide/ppc/magicbox_ide.$(LINUX_KMOD_SUFFIX)
206 AUTOLOAD:=$(call AutoLoad,30,magicbox_ide)
207 endef
208
209 define KernelPackage/ide-magicbox/description
210 Support for Magicbox 2.0 onboard CF slot.
211 endef
212
213 $(eval $(call KernelPackage,ide-magicbox))
214
215
216 define KernelPackage/ide-pdc202xx
217 SUBMENU:=$(BLOCK_MENU)
218 TITLE:=Promise PDC202xx IDE driver
219 DEPENDS:=@LINUX_2_4 +kmod-ide-core
220 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
221 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
222 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
223 endef
224
225 define KernelPackage/ide-pdc202xx/description
226 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
227 controllers.
228 endef
229
230 $(eval $(call KernelPackage,ide-pdc202xx))
231
232
233 define KernelPackage/scsi-core
234 SUBMENU:=$(BLOCK_MENU)
235 TITLE:=SCSI device support
236 KCONFIG:= \
237 CONFIG_SCSI \
238 CONFIG_BLK_DEV_SD
239 FILES:= \
240 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
241 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
242 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
243 endef
244
245 $(eval $(call KernelPackage,scsi-core))
246
247
248 define KernelPackage/scsi-generic
249 SUBMENU:=$(BLOCK_MENU)
250 TITLE:=Kernel support for SCSI generic
251 KCONFIG:= \
252 CONFIG_CHR_DEV_SG
253 FILES:= \
254 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
255 AUTOLOAD:=$(call AutoLoad,65,sg)
256 endef
257
258 $(eval $(call KernelPackage,scsi-generic))
259
260
261 define KernelPackage/loop
262 SUBMENU:=$(BLOCK_MENU)
263 TITLE:=Loopback device support
264 KCONFIG:= \
265 CONFIG_BLK_DEV_LOOP \
266 CONFIG_BLK_DEV_CRYPTOLOOP=n
267 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
268 AUTOLOAD:=$(call AutoLoad,30,loop)
269 endef
270
271 define KernelPackage/loop/description
272 Kernel module for loopback device support
273 endef
274
275 $(eval $(call KernelPackage,loop))
276
277
278 define KernelPackage/nbd
279 SUBMENU:=$(BLOCK_MENU)
280 TITLE:=Network block device support
281 KCONFIG:=CONFIG_BLK_DEV_NBD
282 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
283 AUTOLOAD:=$(call AutoLoad,30,nbd)
284 endef
285
286 define KernelPackage/nbd/description
287 Kernel module for network block device support
288 endef
289
290 $(eval $(call KernelPackage,nbd))
291
292
293 define KernelPackage/pata-rb153-cf
294 SUBMENU:=$(BLOCK_MENU)
295 DEPENDS:=kmod-ata-core @TARGET_adm5120_router_le
296 TITLE:=RouterBOARD 153 CF Slot support
297 KCONFIG:=CONFIG_PATA_RB153_CF
298 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
299 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf)
300 endef
301
302 define KernelPackage/pata-rb153-cf/description
303 Kernel support for the RouterBoard 153 CF slot.
304 endef
305
306 $(eval $(call KernelPackage,pata-rb153-cf))
307
308
309 define KernelPackage/aoe
310 SUBMENU:=$(BLOCK_MENU)
311 TITLE:=ATA over Ethernet support
312 KCONFIG:=CONFIG_ATA_OVER_ETH
313 FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
314 AUTOLOAD:=$(call AutoLoad,30,aoe)
315 endef
316
317 define KernelPackage/aoe/description
318 Kernel support for ATA over Ethernet
319 endef
320
321 $(eval $(call KernelPackage,aoe))
322
323 define KernelPackage/ps3vram
324 SUBMENU:=$(BLOCK_MENU)
325 TITLE:=PS3 Video RAM Storage Driver
326 DEPENDS:=@TARGET_ps3
327 KCONFIG:=CONFIG_PS3_VRAM
328 FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
329 AUTOLOAD:=$(call AutoLoad,01,ps3vram)
330 endef
331
332 define KernelPackage/ps3vram/description
333 Kernel support for PS3 Video RAM Storage
334 endef
335
336 $(eval $(call KernelPackage,ps3vram))