source: trunk/package/kernel/modules/usb.mk @ 8912

Last change on this file since 8912 was 8912, checked in by nico, 9 years ago

add a kernel module for usb video devices

  • Property svn:eol-style set to native
File size: 14.6 KB
Line 
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
9USB_MENU:=USB Support
10
11ifeq ($(KERNEL),2.4)
12  USBNET_DIR:=usb/net
13endif
14
15ifeq ($(KERNEL_PATCHVER),2.6.21)
16  USBNET_DIR:=usb/net
17  USBHID_DIR:=usb/input
18  USBINPUT_DIR:=usb/input
19endif
20
21USBNET_DIR?=net/usb
22USBHID_DIR?=hid/usbhid
23USBINPUT_DIR?=input/misc
24
25define usbdep
26  SUBMENU:=$(USB_MENU)
27  DEPENDS:=kmod-usb-core $(1)
28endef
29
30
31define KernelPackage/usb-core
32  SUBMENU:=$(USB_MENU)
33  TITLE:=Support for USB
34  DEPENDS:=@USB_SUPPORT
35  KCONFIG:=CONFIG_USB
36  AUTOLOAD:=$(call AutoLoad,20,usbcore)
37endef
38
39define KernelPackage/usb-core/2.4
40  FILES:=$(LINUX_DIR)/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
41endef
42
43define KernelPackage/usb-core/2.6
44  FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.$(LINUX_KMOD_SUFFIX)
45endef
46
47define KernelPackage/usb-core/description
48 Kernel support for USB
49endef
50
51$(eval $(call KernelPackage,usb-core))
52
53
54define KernelPackage/usb-uhci
55  $(call usbdep,)
56  TITLE:=Support for UHCI controllers
57  KCONFIG:= \
58        CONFIG_USB_UHCI_ALT \
59        CONFIG_USB_UHCI_HCD
60endef
61
62define KernelPackage/usb-uhci/2.4
63#  KCONFIG:=CONFIG_USB_UHCI_ALT
64  FILES:=$(LINUX_DIR)/drivers/usb/host/uhci.o
65  AUTOLOAD:=$(call AutoLoad,50,uhci)
66endef
67
68define KernelPackage/usb-uhci/2.6
69#  KCONFIG:=CONFIG_USB_UHCI_HCD
70  FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
71  AUTOLOAD:=$(call AutoLoad,50,uhci-hcd)
72endef
73
74define KernelPackage/usb-uhci/description
75 Kernel support for USB UHCI controllers
76endef
77
78$(eval $(call KernelPackage,usb-uhci))
79
80
81define KernelPackage/usb-uhci-iv
82  $(call usbdep,@LINUX_2_4)
83  TITLE:=Support for Intel/VIA UHCI controllers
84  KCONFIG:=CONFIG_USB_UHCI
85  FILES:=$(LINUX_DIR)/drivers/usb/host/usb-uhci.$(LINUX_KMOD_SUFFIX)
86  AUTOLOAD:=$(call AutoLoad,50,usb-uhci) 
87endef
88
89define KernelPackage/usb-uhci-iv/description
90 Kernel support for Intel/VIA USB UHCI controllers
91endef
92
93$(eval $(call KernelPackage,usb-uhci-iv)) 
94
95
96define KernelPackage/usb-ohci
97  $(call usbdep,)
98  TITLE:=Support for OHCI controllers
99  KCONFIG:= \
100        CONFIG_USB_OHCI \
101        CONFIG_USB_OHCI_HCD
102endef
103
104define KernelPackage/usb-ohci/2.4
105#  KCONFIG:=CONFIG_USB_OHCI
106  FILES:=$(LINUX_DIR)/drivers/usb/host/usb-ohci.o
107  AUTOLOAD:=$(call AutoLoad,50,usb-ohci)
108endef
109
110define KernelPackage/usb-ohci/2.6
111#  KCONFIG:=CONFIG_USB_OHCI_HCD
112  FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
113  AUTOLOAD:=$(call AutoLoad,50,ohci-hcd)
114endef
115
116define KernelPackage/usb-ohci/description
117 Kernel support for USB OHCI controllers
118endef
119
120$(eval $(call KernelPackage,usb-ohci))
121
122
123define KernelPackage/usb-adm5120
124  $(call usbdep,@TARGET_adm5120_router_be||@TARGET_adm5120_router_le)
125  TITLE:=Support for the ADM5120 HCD controller
126  KCONFIG:=CONFIG_USB_ADM5120_HCD
127  FILES:=$(LINUX_DIR)/drivers/usb/host/adm5120-hcd.$(LINUX_KMOD_SUFFIX)
128  AUTOLOAD:=$(call AutoLoad,50,adm5120-hcd)
129endef
130
131define KernelPackage/usb-adm5120/description
132 Kernel support for the ADM5120 HCD USB controller
133endef
134
135$(eval $(call KernelPackage,usb-adm5120))
136
137
138define KernelPackage/usb2
139  $(call usbdep,)
140  TITLE:=Support for USB2 controllers
141  KCONFIG:=CONFIG_USB_EHCI_HCD
142  FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.$(LINUX_KMOD_SUFFIX)
143  AUTOLOAD:=$(call AutoLoad,50,ehci-hcd)
144endef
145
146define KernelPackage/usb2/description
147 Kernel support for USB2 (EHCI) controllers
148endef
149
150$(eval $(call KernelPackage,usb2))
151
152
153define KernelPackage/usb-acm
154  $(call usbdep,)
155  TITLE:=Support for modems/isdn controllers
156  KCONFIG:=CONFIG_USB_ACM
157endef
158
159define KernelPackage/usb-acm/2.4
160  FILES:=$(LINUX_DIR)/drivers/usb/acm.o
161  AUTOLOAD:=$(call AutoLoad,60,acm)
162endef
163
164define KernelPackage/usb-acm/2.6
165  FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
166  AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
167endef
168
169define KernelPackage/usb-acm/description
170 Kernel support for USB ACM devices (modems/isdn controllers)
171endef
172
173$(eval $(call KernelPackage,usb-acm))
174
175
176define KernelPackage/usb-audio
177  $(call usbdep,+kmod-sound-core)
178  TITLE:=Support for USB audio devices
179  KCONFIG:= \
180        CONFIG_USB_AUDIO \
181        CONFIG_SND_USB_AUDIO
182endef
183
184define KernelPackage/usb-audio/2.4
185#  KCONFIG:=CONFIG_USB_AUDIO
186  FILES:=$(LINUX_DIR)/drivers/usb/audio.o
187  AUTOLOAD:=$(call AutoLoad,60,audio)
188endef
189
190define KernelPackage/usb-audio/2.6
191#  KCONFIG:=CONFIG_SND_USB_AUDIO
192  FILES:= \
193        $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
194        $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
195  AUTOLOAD:=$(call AutoLoad,60,snd-usb-lib snd-usb-audio)
196endef
197
198define KernelPackage/usb-audio/description
199 Kernel support for USB audio devices
200endef
201
202$(eval $(call KernelPackage,usb-audio))
203
204
205define KernelPackage/usb-printer
206  $(call usbdep,)
207  TITLE:=Support for printers
208  KCONFIG:=CONFIG_USB_PRINTER
209endef
210
211define KernelPackage/usb-printer/2.4
212  FILES:=$(LINUX_DIR)/drivers/usb/printer.o
213  AUTOLOAD:=$(call AutoLoad,60,printer)
214endef
215
216define KernelPackage/usb-printer/2.6
217  FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
218  AUTOLOAD:=$(call AutoLoad,60,usblp)
219endef
220
221define KernelPackage/usb-printer/description
222 Kernel support for USB printers
223endef
224
225$(eval $(call KernelPackage,usb-printer))
226
227
228define KernelPackage/usb-serial
229  $(call usbdep,)
230  TITLE:=Support for USB-to-Serial converters
231  KCONFIG:=CONFIG_USB_SERIAL
232  FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.$(LINUX_KMOD_SUFFIX)
233  AUTOLOAD:=$(call AutoLoad,60,usbserial)
234endef
235
236define KernelPackage/usb-serial/description
237 Kernel support for USB-to-Serial converters
238endef
239
240$(eval $(call KernelPackage,usb-serial))
241
242
243define KernelPackage/usb-serial-airprime
244  $(call usbdep,kmod-usb-serial @LINUX_2_6)
245  TITLE:=Support for Airprime (EVDO) 
246  KCONFIG:=CONFIG_USB_SERIAL_AIRPRIME
247  FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.$(LINUX_KMOD_SUFFIX)
248  AUTOLOAD:=$(call AutoLoad,65,airprime)
249endef
250
251define KernelPackage/usb-serial-airprime/description
252 Kernel support for Airprime (EVDO) 
253endef
254
255$(eval $(call KernelPackage,usb-serial-airprime))
256
257
258define KernelPackage/usb-serial-belkin
259  $(call usbdep,kmod-usb-serial)
260  TITLE:=Support for Belkin devices
261  KCONFIG:=CONFIG_USB_SERIAL_BELKIN
262  FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
263  AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
264endef
265
266define KernelPackage/usb-serial-belkin/description
267 Kernel support for Belkin USB-to-Serial converters
268endef
269
270$(eval $(call KernelPackage,usb-serial-belkin))
271
272
273define KernelPackage/usb-serial-ftdi
274  $(call usbdep,kmod-usb-serial)
275  TITLE:=Support for FTDI devices
276  KCONFIG:=CONFIG_USB_SERIAL_FTDI_SIO
277  FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.$(LINUX_KMOD_SUFFIX)
278  AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
279endef
280
281define KernelPackage/usb-serial-ftdi/description
282 Kernel support for FTDI USB-to-Serial converters
283endef
284
285$(eval $(call KernelPackage,usb-serial-ftdi))
286
287
288define KernelPackage/usb-serial-mct
289  $(call usbdep,kmod-usb-serial)
290  TITLE:=Support for Magic Control Tech. devices
291  KCONFIG:=CONFIG_USB_SERIAL_MCT_U232
292  FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.$(LINUX_KMOD_SUFFIX)
293  AUTOLOAD:=$(call AutoLoad,65,mct_u232)
294endef
295
296define KernelPackage/usb-serial-mct/description
297 Kernel support for Magic Control Technology USB-to-Serial converters
298endef
299
300$(eval $(call KernelPackage,usb-serial-mct))
301
302
303define KernelPackage/usb-serial-pl2303
304  $(call usbdep,kmod-usb-serial)
305  TITLE:=Support for Prolific PL2303 devices
306  KCONFIG:=CONFIG_USB_SERIAL_PL2303
307  FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.$(LINUX_KMOD_SUFFIX)
308  AUTOLOAD:=$(call AutoLoad,65,pl2303)
309endef
310
311define KernelPackage/usb-serial-pl2303/description
312 Kernel support for Prolific PL2303 USB-to-Serial converters
313endef
314
315$(eval $(call KernelPackage,usb-serial-pl2303))
316
317
318define KernelPackage/usb-serial-sierrawireless
319  $(call usbdep,kmod-usb-serial @LINUX_2_6)
320  TITLE:=Support for Sierra Wireless devices
321  KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS
322  FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.$(LINUX_KMOD_SUFFIX)
323  AUTOLOAD:=$(call AutoLoad,65,sierra)
324endef
325
326define KernelPackage/usb-serial-sierrawireless/description
327 Kernel support for Sierra Wireless devices
328endef
329
330$(eval $(call KernelPackage,usb-serial-sierrawireless))
331
332
333define KernelPackage/usb-serial-visor
334  $(call usbdep,kmod-usb-serial)
335  TITLE:=Support for Handspring Visor devices
336  KCONFIG:=CONFIG_USB_SERIAL_VISOR
337  FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.$(LINUX_KMOD_SUFFIX)
338  AUTOLOAD:=$(call AutoLoad,65,visor)
339endef
340
341define KernelPackage/usb-serial-visor/description
342 Kernel support for Handspring Visor PDAs
343endef
344
345$(eval $(call KernelPackage,usb-serial-visor))
346
347
348define KernelPackage/usb-serial-keyspan
349  $(call usbdep,kmod-usb-serial)
350  TITLE:=Support for Keyspan USB-to-Serial devices
351  KCONFIG:= \
352        CONFIG_USB_SERIAL_KEYSPAN \
353        CONFIG_USB_SERIAL_KEYSPAN_USA28 \
354        CONFIG_USB_SERIAL_KEYSPAN_USA28X \
355        CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
356        CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
357        CONFIG_USB_SERIAL_KEYSPAN_USA19 \
358        CONFIG_USB_SERIAL_KEYSPAN_USA18X \
359        CONFIG_USB_SERIAL_KEYSPAN_USA19W \
360        CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
361        CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
362        CONFIG_USB_SERIAL_KEYSPAN_MPR \
363        CONFIG_USB_SERIAL_KEYSPAN_USA49W \
364        CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
365  FILES:=$(LINUX_DIR)/drivers/usb/serial/keyspan.$(LINUX_KMOD_SUFFIX)
366  AUTOLOAD:=$(call AutoLoad,65,keyspan)
367endef
368
369define KernelPackage/usb-serial-keyspan/description
370 Kernel support for Keyspan USB-to-Serial devices
371endef
372
373$(eval $(call KernelPackage,usb-serial-keyspan))
374
375
376define KernelPackage/usb-serial-option
377  $(call usbdep,kmod-usb-serial @LINUX_2_6)
378  TITLE:=Support for Option HSDPA modems
379  KCONFIG:=CONFIG_USB_SERIAL_OPTION
380  FILES:=$(LINUX_DIR)/drivers/usb/serial/option.$(LINUX_KMOD_SUFFIX)
381  AUTOLOAD:=$(call AutoLoad,65,option)
382endef
383
384define KernelPackage/usb-serial-option/description
385 Kernel support for Option HSDPA modems
386endef
387
388$(eval $(call KernelPackage,usb-serial-option))
389
390
391define KernelPackage/usb-storage
392  $(call usbdep,+kmod-scsi-core)
393  TITLE:=USB Storage support
394  KCONFIG:=CONFIG_USB_STORAGE
395  FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.$(LINUX_KMOD_SUFFIX)
396  AUTOLOAD:=$(call AutoLoad,60,scsi_mod sd_mod usb-storage)
397endef
398
399define KernelPackage/usb-storage/description
400 Kernel support for USB Mass Storage devices
401endef
402
403$(eval $(call KernelPackage,usb-storage))
404
405
406define KernelPackage/usb-video
407  $(call usbdep,@LINUX_2_6)
408  TITLE:=Support for USB video devices
409  KCONFIG:=CONFIG_VIDEO_USBVIDEO
410  FILES:=$(LINUX_DIR)/drivers/media/video/usbvideo/usbvideo.$(LINUX_KMOD_SUFFIX)
411  AUTOLOAD:=$(call AutoLoad,60,usbvideo)
412endef
413
414define KernelPackage/usb-video/description
415 Kernel support for USB video devices
416endef
417
418$(eval $(call KernelPackage,usb-video))
419
420
421define KernelPackage/usb-atm
422  $(call usbdep,@LINUX_2_6 +kmod-atm)
423  TITLE:=Support for ATM on USB bus
424  KCONFIG:=CONFIG_USB_ATM
425  FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.$(LINUX_KMOD_SUFFIX)
426  AUTOLOAD:=$(call AutoLoad,60,usbatm)
427endef
428
429define KernelPackage/usb-atm/description
430 Kernel support for USB DSL modems
431endef
432
433$(eval $(call KernelPackage,usb-atm))
434
435
436define KernelPackage/usb-atm-speedtouch
437  $(call usbdep,@LINUX_2_6 kmod-usb-atm)
438  TITLE:=SpeedTouch USB ADSL modems support
439  KCONFIG:=CONFIG_USB_SPEEDTOUCH
440  FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.$(LINUX_KMOD_SUFFIX)
441  AUTOLOAD:=$(call AutoLoad,70,speedtch)
442endef
443
444define KernelPackage/usb-atm-speedtouch/description
445 Kernel support for SpeedTouch USB ADSL modems
446endef
447
448$(eval $(call KernelPackage,usb-atm-speedtouch))
449
450
451define KernelPackage/usb-atm-ueagle
452  $(call usbdep,@LINUX_2_6 kmod-usb-atm)
453  TITLE:=Eagle 8051 based USB ADSL modems support
454  FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.$(LINUX_KMOD_SUFFIX)
455  KCONFIG:=CONFIG_USB_UEAGLEATM
456  AUTOLOAD:=$(call AutoLoad,70,ueagle-atm)
457endef
458
459define KernelPackage/usb-atm-ueagle/description
460 Kernel support for Eagle 8051 based USB ADSL modems
461endef
462
463$(eval $(call KernelPackage,usb-atm-ueagle))
464
465
466define KernelPackage/usb-net
467  $(call usbdep,)
468  TITLE:=Kernel modules for USB-to-Ethernet convertors
469  KCONFIG:=CONFIG_USB_USBNET
470  AUTOLOAD:=$(call Autoload,60, usbnet)
471endef
472
473define KernelPackage/usb-net/2.4
474  FILES:=$(LINUX_DIR)/drivers/usb/usbnet.$(LINUX_KMOD_SUFFIX)
475endef
476
477define KernelPackage/usb-net/2.6
478  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.$(LINUX_KMOD_SUFFIX)
479endef
480
481define KernelPackage/usb-net/description
482 Kernel modules for USB-to-Ethernet convertors
483endef
484
485$(eval $(call KernelPackage,usb-net))
486
487
488define KernelPackage/usb-net-asix
489  $(call usbdep,kmod-usb-net @LINUX_2_6)
490  TITLE:=Kernel module for USB-to-Ethernet Asix convertors
491  KCONFIG:=CONFIG_USB_NET_AX8817X
492  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.$(LINUX_KMOD_SUFFIX)
493  AUTOLOAD:=$(call Autoload,61,asix)
494endef
495
496define KernelPackage/usb-net-asix/description
497 Kernel module for USB-to-Ethernet Asix convertors
498endef
499
500$(eval $(call KernelPackage,usb-net-asix))
501
502
503define KernelPackage/usb-net-kaweth
504  $(call usbdep,kmod-usb-net @LINUX_2_6)
505  TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
506  KCONFIG:=CONFIG_USB_KAWETH
507  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.$(LINUX_KMOD_SUFFIX)
508  AUTOLOAD:=$(call Autoload,61,kaweth)
509endef
510
511define KernelPackage/usb-net-kaweth/description
512 Kernel module for USB-to-Ethernet Kaweth convertors
513endef
514
515$(eval $(call KernelPackage,usb-net-kaweth))
516
517
518define KernelPackage/usb-net-pegasus
519  $(call usbdep,kmod-usb-net @LINUX_2_6)
520  TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
521  KCONFIG:=CONFIG_USB_PEGASUS
522  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.$(LINUX_KMOD_SUFFIX)
523  AUTOLOAD:=$(call Autoload,61,pegasus)
524endef
525
526define KernelPackage/usb-net-pegasus/description
527 Kernel module for USB-to-Ethernet Pegasus convertors
528endef
529
530$(eval $(call KernelPackage,usb-net-pegasus))
531
532
533define KernelPackage/usb-net-cdc-ether
534  $(call usbdep,kmod-usb-net @LINUX_2_6)
535  TITLE:=Support for cdc ethernet connections
536  KCONFIG:=CONFIG_USB_NET_CDCETHER
537  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ether.$(LINUX_KMOD_SUFFIX)
538  AUTOLOAD:=$(call AutoLoad,61,cdc-ether)
539endef
540
541define KernelPackage/usb-net-cdc-ether/description
542 Kernel support for USB CDC Ethernet devices
543endef
544
545$(eval $(call KernelPackage,usb-net-cdc-ether))
546
547
548define KernelPackage/usb-hid
549  $(call usbdep,@LINUX_2_6 +kmod-input-core +kmod-input-evdev)
550  TITLE:=Support for USB Human Input Devices
551  KCONFIG:=CONFIG_USB_HID
552  FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
553  AUTOLOAD:=$(call AutoLoad,70,usbhid)
554endef
555
556
557define KernelPackage/usb-hid/description
558 Kernel support for USB HID devices such as keyboards and mice
559endef
560
561$(eval $(call KernelPackage,usb-hid))
562
563
564define KernelPackage/usb-yealink
565  $(call usbdep,@LINUX_2_6 +kmod-input-core +kmod-input-evdev)
566  TITLE:=USB Yealink VOIP phone
567  KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
568  FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
569  AUTOLOAD:=$(call AutoLoad,70,yealink)
570endef
571
572define KernelPackage/usb-yealink/description
573 Kernel support for Yealink VOIP phone
574endef
575
576$(eval $(call KernelPackage,usb-yealink))
Note: See TracBrowser for help on using the repository browser.