upgrade a few packages to newer versions (includes patch by kaloz) - preparation...
[openwrt/svn-archive/archive.git] / package / kernel / modules / usb.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 USBMENU:=USB Support
10
11 ifeq ($(KERNEL),2.4)
12 USBNET_DIR=usb/net
13 else
14 USBNET_DIR=net/usb
15 endif
16
17 define KernelPackage/usb-core
18 TITLE:=Support for USB
19 DESCRIPTION:=Kernel support for USB
20 DEPENDS:=@USB_SUPPORT
21 KCONFIG:=$(CONFIG_USB)
22 SUBMENU:=$(USBMENU)
23 AUTOLOAD:=$(call AutoLoad,20,usbcore)
24 endef
25
26 define KernelPackage/usb-core/2.4
27 FILES:=$(LINUX_DIR)/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
28 endef
29
30 define KernelPackage/usb-core/2.6
31 FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.$(LINUX_KMOD_SUFFIX)
32 endef
33 $(eval $(call KernelPackage,usb-core))
34
35
36 define KernelPackage/usb-uhci
37 TITLE:=Support for UHCI controllers
38 DESCRIPTION:=Kernel support for USB UHCI controllers
39 DEPENDS:=kmod-usb-core
40 SUBMENU:=$(USBMENU)
41 endef
42
43 define KernelPackage/usb-uhci/2.4
44 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci.o
45 KCONFIG:=$(CONFIG_USB_UHCI_ALT)
46 AUTOLOAD:=$(call AutoLoad,50,uhci)
47 endef
48
49 define KernelPackage/usb-uhci/2.6
50 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
51 KCONFIG:=$(CONFIG_USB_UHCI_HCD)
52 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd)
53 endef
54 $(eval $(call KernelPackage,usb-uhci))
55
56 define KernelPackage/usb-uhci-iv
57 TITLE:=Support for Intel/VIA UHCI controllers
58 DESCRIPTION:=Kernel support for Intel/VIA USB UHCI controllers
59 DEPENDS:=kmod-usb-core @LINUX_2_4
60 SUBMENU:=$(USBMENU)
61 endef
62
63 define KernelPackage/usb-uhci-iv/2.4
64 FILES:=$(LINUX_DIR)/drivers/usb/host/usb-uhci.$(LINUX_KMOD_SUFFIX)
65 KCONFIG:=$(CONFIG_USB_UHCI)
66 AUTOLOAD:=$(call AutoLoad,50,usb-uhci)
67 endef
68 $(eval $(call KernelPackage,usb-uhci-iv))
69
70 define KernelPackage/usb-ohci
71 TITLE:=Support for OHCI controllers
72 DESCRIPTION:=Kernel support for USB OHCI controllers
73 DEPENDS:=kmod-usb-core
74 SUBMENU:=$(USBMENU)
75 endef
76
77 define KernelPackage/usb-ohci/2.4
78 FILES:=$(LINUX_DIR)/drivers/usb/host/usb-ohci.o
79 KCONFIG:=$(CONFIG_USB_OHCI)
80 AUTOLOAD:=$(call AutoLoad,50,usb-ohci)
81 endef
82
83 define KernelPackage/usb-ohci/2.6
84 FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
85 KCONFIG:=$(CONFIG_USB_OHCI_HCD)
86 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd)
87 endef
88 $(eval $(call KernelPackage,usb-ohci))
89
90 define KernelPackage/usb2
91 TITLE:=Support for USB2 controllers
92 DESCRIPTION:=Kernel support for USB2 (EHCI) controllers
93 DEPENDS:=kmod-usb-core
94 KCONFIG:=$(CONFIG_USB)
95 SUBMENU:=$(USBMENU)
96 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.$(LINUX_KMOD_SUFFIX)
97 KCONFIG:=$(CONFIG_USB_EHCI_HCD)
98 AUTOLOAD:=$(call AutoLoad,50,ehci-hcd)
99 endef
100 $(eval $(call KernelPackage,usb2))
101
102
103 define usbdep
104 SUBMENU:=$(USBMENU)
105 DEPENDS:=kmod-usb-core $(1)
106 endef
107
108
109 define KernelPackage/usb-acm
110 $(call usbdep,)
111 TITLE:=Support for modems/isdn controllers
112 DESCRIPTION:=Kernel support for USB ACM devices (modems/isdn controllers)
113 KCONFIG:=$(CONFIG_USB_ACM)
114 endef
115
116 define KernelPackage/usb-acm/2.4
117 FILES:=$(LINUX_DIR)/drivers/usb/acm.o
118 AUTOLOAD:=$(call AutoLoad,60,acm)
119 endef
120
121 define KernelPackage/usb-acm/2.6
122 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
123 AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
124 endef
125 $(eval $(call KernelPackage,usb-acm))
126
127
128 define KernelPackage/usb-audio
129 $(call usbdep,+kmod-soundcore)
130 TITLE:=Support for audio devices
131 DESCRIPTION:=Kernel support for USB audio devices
132 endef
133
134 define KernelPackage/usb-audio/2.4
135 KCONFIG:=$(CONFIG_USB_AUDIO)
136 FILES:=$(LINUX_DIR)/drivers/usb/audio.o
137 AUTOLOAD:=$(call AutoLoad,60,audio)
138 endef
139
140 define KernelPackage/usb-audio/2.6
141 KCONFIG:=$(CONFIG_SND_USB_AUDIO)
142 FILES:= \
143 $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
144 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
145 AUTOLOAD:=$(call AutoLoad,60,snd-usb-lib snd-usb-audio)
146 endef
147 $(eval $(call KernelPackage,usb-audio))
148
149
150 define KernelPackage/usb-printer
151 $(call usbdep,)
152 TITLE:=Support for printers
153 DESCRIPTION:=Kernel support for USB printers
154 KCONFIG:=$(CONFIG_USB_PRINTER)
155 endef
156
157 define KernelPackage/usb-printer/2.4
158 FILES:=$(LINUX_DIR)/drivers/usb/printer.o
159 AUTOLOAD:=$(call AutoLoad,60,printer)
160 endef
161
162 define KernelPackage/usb-printer/2.6
163 FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
164 AUTOLOAD:=$(call AutoLoad,60,usblp)
165 endef
166 $(eval $(call KernelPackage,usb-printer))
167
168
169 define KernelPackage/usb-serial
170 $(call usbdep,)
171 TITLE:=Support for USB-to-Serial converters
172 DESCRIPTION:=Kernel support for USB-to-Serial converters
173 KCONFIG:=$(CONFIG_USB_SERIAL)
174 FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.$(LINUX_KMOD_SUFFIX)
175 AUTOLOAD:=$(call AutoLoad,60,usbserial)
176 endef
177 $(eval $(call KernelPackage,usb-serial))
178
179 define KernelPackage/usb-serial-airprime
180 TITLE:=Support for Airprime (EVDO)
181 DESCRIPTION:=Kernel support for Airprime (EVDO)
182 DEPENDS:=kmod-usb-serial
183 SUBMENU:=$(USBMENU)
184 KCONFIG:=$(CONFIG_USB_SERIAL_AIRPRIME)
185 FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.$(LINUX_KMOD_SUFFIX)
186 AUTOLOAD:=$(call AutoLoad,65,airprime)
187 endef
188 $(eval $(call KernelPackage,usb-serial-airprime))
189
190 define KernelPackage/usb-serial-belkin
191 TITLE:=Support for Belkin devices
192 DESCRIPTION:=Kernel support for Belkin USB-to-Serial converters
193 DEPENDS:=kmod-usb-serial
194 SUBMENU:=$(USBMENU)
195 KCONFIG:=$(CONFIG_USB_SERIAL_BELKIN)
196 FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
197 AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
198 endef
199 $(eval $(call KernelPackage,usb-serial-belkin))
200
201
202 define KernelPackage/usb-serial-ftdi
203 TITLE:=Support for FTDI devices
204 DESCRIPTION:=Kernel support for FTDI USB-to-Serial converters
205 DEPENDS:=kmod-usb-serial
206 SUBMENU:=$(USBMENU)
207 KCONFIG:=$(CONFIG_USB_SERIAL_FTDI_SIO)
208 FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.$(LINUX_KMOD_SUFFIX)
209 AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
210 endef
211 $(eval $(call KernelPackage,usb-serial-ftdi))
212
213
214 define KernelPackage/usb-serial-mct
215 TITLE:=Support for Magic Control Tech. devices
216 DESCRIPTION:=Kernel support for Magic Control Technology USB-to-Serial converters
217 DEPENDS:=kmod-usb-serial
218 SUBMENU:=$(USBMENU)
219 KCONFIG:=$(CONFIG_USB_SERIAL_MCT_U232)
220 FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.$(LINUX_KMOD_SUFFIX)
221 AUTOLOAD:=$(call AutoLoad,65,mct_u232)
222 endef
223 $(eval $(call KernelPackage,usb-serial-mct))
224
225 define KernelPackage/usb-serial-pl2303
226 TITLE:=Support for Prolific PL2303 devices
227 DESCRIPTION:=Kernel support for Prolific PL2303 USB-to-Serial converters
228 DEPENDS:=kmod-usb-serial
229 SUBMENU:=$(USBMENU)
230 KCONFIG:=$(CONFIG_USB_SERIAL_PL2303)
231 FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.$(LINUX_KMOD_SUFFIX)
232 AUTOLOAD:=$(call AutoLoad,65,pl2303)
233 endef
234 $(eval $(call KernelPackage,usb-serial-pl2303))
235
236
237 define KernelPackage/usb-serial-sierrawireless
238 TITLE:=Support for Sierra Wireless devices
239 DESCRIPTION:=Kernel support for Sierra Wireless devices
240 DEPENDS:=kmod-usb-serial
241 SUBMENU:=$(USBMENU)
242 KCONFIG:=$(CONFIG_USB_SERIAL_SIERRAWIRELESS)
243 FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.$(LINUX_KMOD_SUFFIX)
244 AUTOLOAD:=$(call AutoLoad,65,sierra)
245 endef
246 $(eval $(call KernelPackage,usb-serial-sierrawireless))
247
248
249 define KernelPackage/usb-serial-visor
250 TITLE:=Support for Handspring Visor devices
251 DESCRIPTION:=Kernel support for Handspring Visor PDAs
252 DEPENDS:=kmod-usb-serial
253 SUBMENU:=$(USBMENU)
254 KCONFIG:=$(CONFIG_USB_SERIAL_VISOR)
255 FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.$(LINUX_KMOD_SUFFIX)
256 AUTOLOAD:=$(call AutoLoad,65,visor)
257 endef
258 $(eval $(call KernelPackage,usb-serial-visor))
259
260
261 define KernelPackage/usb-storage
262 $(call usbdep,)
263 TITLE:=USB Storage support
264 DESCRIPTION:=Kernel support for USB Mass Storage devices
265 KCONFIG:=$(CONFIG_USB_STORAGE)
266 FILES:= \
267 $(LINUX_DIR)/drivers/usb/storage/usb-storage.$(LINUX_KMOD_SUFFIX)
268 AUTOLOAD:=$(call AutoLoad,60,scsi_mod sd_mod usb-storage)
269 DEPENDS:=+kmod-scsi-core
270 endef
271 $(eval $(call KernelPackage,usb-storage))
272
273 define KernelPackage/usb-atm
274 $(call usbdep,@LINUX_2_6 kmod-atm)
275 TITLE:=Support for ATM on USB bus
276 DESCRIPTION:=Kernel support for USB DSL modems
277 KCONFIG:=$(CONFIG_USB_ATM)
278 FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.$(LINUX_KMOD_SUFFIX)
279 AUTOLOAD:=$(call AutoLoad,60,usbatm)
280 endef
281 $(eval $(call KernelPackage,usb-atm))
282
283 define KernelPackage/usb-speedtouch
284 $(call usbdep,@LINUX_2_6 kmod-atm)
285 TITLE:=Support for SpeedTouch ADSL modems
286 DESCRIPTION:=Kernel support for SpeedTouch USB ADSL modems
287 KCONFIG:=$(CONFIG_USB_SPEEDTOUCH)
288 FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.$(LINUX_KMOD_SUFFIX)
289 AUTOLOAD:=$(call AutoLoad,70,speedtch)
290 endef
291 $(eval $(call KernelPackage,usb-speedtouch))
292
293 define KernelPackage/ueagle-atm
294 $(call usbdep,@LINUX_2_6 kmod-atm)
295 TITLE:=Driver for Eagle 8051 based USB ADSL modems
296 DESCRIPTION:=Kernel support for Eagle 8051 based USB ADSL modems
297 FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.$(LINUX_KMOD_SUFFIX)
298 KCONFIG:=$(CONFIG_USB_UEAGLEATM)
299 AUTOLOAD:=$(call AutoLoad,70,ueagle-atm)
300 endef
301 $(eval $(call KernelPackage,ueagle-atm))
302
303 define KernelPackage/usb-pwc
304 $(call usbdep,+kmod-videodev)
305 TITLE:=Philips WebCam driver
306 DESCRIPTION:=Kernel modules for supporting Philips WebCam USB devices
307 KCONFIG:=$(CONFIG_USB_PWC)
308 AUTOLOAD:=$(call AutoLoad,70,pwc)
309 endef
310
311 define KernelPackage/usb-pwc/2.4
312 FILES:=$(LINUX_DIR)/drivers/usb/pwc.$(LINUX_KMOD_SUFFIX)
313 endef
314
315 define KernelPackage/usb-pwc/2.6
316 FILES:=$(LINUX_DIR)/drivers/usb/media/pwc/pwc.$(LINUX_KMOD_SUFFIX)
317 endef
318 $(eval $(call KernelPackage,usb-pwc))
319
320 define KernelPackage/usb-net
321 $(call usbdep,)
322 TITLE:=Kernel modules for USB-to-Ethernet convertors
323 DESCRIPTION:=Kernel modules for USB-to-Ethernet convertors
324 KCONFIG:=$(CONFIG_USB_USBNET)
325 DEPENDS:=@USB_SUPPORT
326 AUTOLOAD:=$(call Autoload,60, usbnet)
327 endef
328
329 define KernelPackage/usb-net/2.4
330 FILES:=$(LINUX_DIR)/drivers/usb/usbnet.$(LINUX_KMOD_SUFFIX)
331 endef
332
333 define KernelPackage/usb-net/2.6
334 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.$(LINUX_KMOD_SUFFIX)
335 endef
336
337 $(eval $(call KernelPackage,usb-net))
338
339 define KernelPackage/usb-net-asix
340 $(call usbdep,+kmod-usbnet)
341 TITLE:=Kernel module for USB-to-Ethernet Asix convertors
342 DESCRIPTION:=Kernel module for USB-to-Ethernet Asix convertors
343 DEPENDS:=kmod-usb-net
344 KCONFIG:=$(CONFIG_USB_NET_AX8817X)
345 endef
346
347 define KernelPackage/usb-net-asix/2.4
348 FILES:=$(LINUX_DIR)/drivers/usb/ax8817x.$(LINUX_KMOD_SUFFIX)
349 AUTOLOAD:=$(call Autoload,61,ax8817x)
350 endef
351
352 define KernelPackage/usb-net-asix/2.6
353 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.$(LINUX_KMOD_SUFFIX)
354 AUTOLOAD:=$(call Autoload,61,asix)
355 endef
356
357 $(eval $(call KernelPackage,usb-net-asix))
358
359 define KernelPackage/usb-net-kaweth
360 $(call usbdep,+kmod-usbnet)
361 TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
362 DESCRIPTION:=Kernel module for USB-to-Ethernet Kaweth convertors
363 DEPENDS:=kmod-usb-net
364 KCONFIG:=$(CONFIG_USB_KAWETH)
365 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.$(LINUX_KMOD_SUFFIX)
366 AUTOLOAD:=$(call Autoload,61,kaweth)
367 endef
368
369 $(eval $(call KernelPackage,usb-net-kaweth))
370
371 define KernelPackage/usb-net-pegasus
372 $(call usbdep,+kmod-usbnet)
373 TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
374 DESCRIPTION:=Kernel module for USB-to-Ethernet Pegasus convertors
375 DEPENDS:=kmod-usb-net
376 KCONFIG:=$(CONFIG_USB_PEGASUS)
377 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.$(LINUX_KMOD_SUFFIX)
378 AUTOLOAD:=$(call Autoload,61,pegasus)
379 endef
380
381 $(eval $(call KernelPackage,usb-net-pegasus))
382
383 define KernelPackage/usb-hid
384 $(call usbdep,@LINUX_2_6 evdev)
385 TITLE:=Support for USB Human Input Devices
386 DESCRIPTION:=Kernel support for USB HID devices such as keyboards and mice
387 KCONFIG:=$(CONFIG_USB_HID)
388 AUTOLOAD:=$(call AutoLoad,70,usbhid)
389 endef
390
391 define KernelPackage/usb-hid/2.6
392 FILES:=$(LINUX_DIR)/drivers/usb/input/usbhid.ko
393 endef
394 $(eval $(call KernelPackage,usb-hid))
395
396 define KernelPackage/usb-yealink
397 $(call usbdep,@LINUX_2_6)
398 TITLE:=USB Yealink VOIP phone
399 DESCRIPTION:=Kernel support for Yealink VOIP phone
400 KCONFIG:=$(CONFIG_USB_YEALINK)
401 FILES:=$(LINUX_DIR)/drivers/usb/input/yealink.ko
402 AUTOLOAD:=$(call AutoLoad,70,yealink)
403 DEPENDS:=kmod-input-core kmod-input-evdev
404 endef
405 $(eval $(call KernelPackage,usb-yealink))
406
407