2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
15 ifeq ($(KERNEL_PATCHVER
),2.6.21)
18 USBINPUT_DIR
:=usb
/input
22 USBHID_DIR?
=hid
/usbhid
23 USBINPUT_DIR?
=input
/misc
27 DEPENDS
:=kmod-usb-core
$(1)
30 define KernelPackage
/usb-core
31 TITLE
:=Support for USB
32 DESCRIPTION
:=Kernel support for USB
36 AUTOLOAD
:=$(call AutoLoad
,20,usbcore
)
39 define KernelPackage
/usb-core
/2.4
40 FILES
:=$(LINUX_DIR
)/drivers
/usb
/usbcore.
$(LINUX_KMOD_SUFFIX
)
43 define KernelPackage
/usb-core
/2.6
44 FILES
:=$(LINUX_DIR
)/drivers
/usb
/core
/usbcore.
$(LINUX_KMOD_SUFFIX
)
46 $(eval
$(call KernelPackage
,usb-core
))
49 define KernelPackage
/usb-uhci
51 TITLE
:=Support for UHCI controllers
52 DESCRIPTION
:=Kernel support for USB UHCI controllers
53 KCONFIG
:=CONFIG_USB_UHCI_ALT CONFIG_USB_UHCI_HCD
55 define KernelPackage
/usb-uhci
/2.4
56 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/uhci.o
57 AUTOLOAD
:=$(call AutoLoad
,50,uhci
)
59 define KernelPackage
/usb-uhci
/2.6
60 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/uhci-hcd.ko
61 AUTOLOAD
:=$(call AutoLoad
,50,uhci-hcd
)
63 $(eval
$(call KernelPackage
,usb-uhci
))
65 define KernelPackage
/usb-uhci-iv
66 $(call usbdep
,@LINUX_2_4
)
67 TITLE
:=Support for Intel
/VIA UHCI controllers
68 DESCRIPTION
:=Kernel support for Intel
/VIA USB UHCI controllers
69 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/usb-uhci.
$(LINUX_KMOD_SUFFIX
)
70 KCONFIG
:=CONFIG_USB_UHCI
71 AUTOLOAD
:=$(call AutoLoad
,50,usb-uhci
)
73 $(eval
$(call KernelPackage
,usb-uhci-iv
))
75 define KernelPackage
/usb-ohci
77 TITLE
:=Support for OHCI controllers
78 DESCRIPTION
:=Kernel support for USB OHCI controllers
79 KCONFIG
:=CONFIG_USB_OHCI CONFIG_USB_OHCI_HCD
82 define KernelPackage
/usb-ohci
/2.4
83 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/usb-ohci.o
84 AUTOLOAD
:=$(call AutoLoad
,50,usb-ohci
)
87 define KernelPackage
/usb-ohci
/2.6
88 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/ohci-hcd.ko
89 AUTOLOAD
:=$(call AutoLoad
,50,ohci-hcd
)
91 $(eval
$(call KernelPackage
,usb-ohci
))
93 define KernelPackage
/usb2
95 TITLE
:=Support for USB2 controllers
96 DESCRIPTION
:=Kernel support for USB2
(EHCI
) controllers
97 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/ehci-hcd.
$(LINUX_KMOD_SUFFIX
)
98 KCONFIG
:=CONFIG_USB_EHCI_HCD
99 AUTOLOAD
:=$(call AutoLoad
,50,ehci-hcd
)
101 $(eval
$(call KernelPackage
,usb2
))
104 define KernelPackage
/usb-acm
106 TITLE
:=Support for modems
/isdn controllers
107 DESCRIPTION
:=Kernel support for USB ACM devices
(modems
/isdn controllers
)
108 KCONFIG
:=CONFIG_USB_ACM
111 define KernelPackage
/usb-acm
/2.4
112 FILES
:=$(LINUX_DIR
)/drivers
/usb
/acm.o
113 AUTOLOAD
:=$(call AutoLoad
,60,acm
)
116 define KernelPackage
/usb-acm
/2.6
117 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/cdc-acm.ko
118 AUTOLOAD
:=$(call AutoLoad
,60,cdc-acm
)
120 $(eval
$(call KernelPackage
,usb-acm
))
123 define KernelPackage
/usb-audio
124 $(call usbdep
,+kmod-soundcore
)
125 TITLE
:=Support for audio devices
126 DESCRIPTION
:=Kernel support for USB audio devices
127 KCONFIG
:=CONFIG_USB_AUDIO CONFIG_SND_USB_AUDIO
130 define KernelPackage
/usb-audio
/2.4
131 FILES
:=$(LINUX_DIR
)/drivers
/usb
/audio.o
132 AUTOLOAD
:=$(call AutoLoad
,60,audio
)
135 define KernelPackage
/usb-audio
/2.6
137 $(LINUX_DIR
)/sound
/usb
/snd-usb-lib.ko \
138 $(LINUX_DIR
)/sound
/usb
/snd-usb-audio.ko
139 AUTOLOAD
:=$(call AutoLoad
,60,snd-usb-lib snd-usb-audio
)
141 $(eval
$(call KernelPackage
,usb-audio
))
144 define KernelPackage
/usb-printer
146 TITLE
:=Support for printers
147 DESCRIPTION
:=Kernel support for USB printers
148 KCONFIG
:=CONFIG_USB_PRINTER
151 define KernelPackage
/usb-printer
/2.4
152 FILES
:=$(LINUX_DIR
)/drivers
/usb
/printer.o
153 AUTOLOAD
:=$(call AutoLoad
,60,printer
)
156 define KernelPackage
/usb-printer
/2.6
157 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/usblp.ko
158 AUTOLOAD
:=$(call AutoLoad
,60,usblp
)
160 $(eval
$(call KernelPackage
,usb-printer
))
163 define KernelPackage
/usb-serial
165 TITLE
:=Support for USB-to-Serial converters
166 DESCRIPTION
:=Kernel support for USB-to-Serial converters
167 KCONFIG
:=CONFIG_USB_SERIAL
168 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/usbserial.
$(LINUX_KMOD_SUFFIX
)
169 AUTOLOAD
:=$(call AutoLoad
,60,usbserial
)
171 $(eval
$(call KernelPackage
,usb-serial
))
173 define KernelPackage
/usb-serial-airprime
174 $(call usbdep
,kmod-usb-serial
)
175 TITLE
:=Support for Airprime
(EVDO
)
176 DESCRIPTION
:=Kernel support for Airprime
(EVDO
)
177 KCONFIG
:=CONFIG_USB_SERIAL_AIRPRIME
178 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/airprime.
$(LINUX_KMOD_SUFFIX
)
179 AUTOLOAD
:=$(call AutoLoad
,65,airprime
)
181 $(eval
$(call KernelPackage
,usb-serial-airprime
))
183 define KernelPackage
/usb-serial-belkin
184 $(call usbdep
,kmod-usb-serial
)
185 TITLE
:=Support for Belkin devices
186 DESCRIPTION
:=Kernel support for Belkin USB-to-Serial converters
187 KCONFIG
:=CONFIG_USB_SERIAL_BELKIN
188 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/belkin_sa.
$(LINUX_KMOD_SUFFIX
)
189 AUTOLOAD
:=$(call AutoLoad
,65,belkin_sa
)
191 $(eval
$(call KernelPackage
,usb-serial-belkin
))
194 define KernelPackage
/usb-serial-ftdi
195 $(call usbdep
,kmod-usb-serial
)
196 TITLE
:=Support for FTDI devices
197 DESCRIPTION
:=Kernel support for FTDI USB-to-Serial converters
198 KCONFIG
:=CONFIG_USB_SERIAL_FTDI_SIO
199 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/ftdi_sio.
$(LINUX_KMOD_SUFFIX
)
200 AUTOLOAD
:=$(call AutoLoad
,65,ftdi_sio
)
202 $(eval
$(call KernelPackage
,usb-serial-ftdi
))
205 define KernelPackage
/usb-serial-mct
206 $(call usbdep
,kmod-usb-serial
)
207 TITLE
:=Support for Magic Control Tech. devices
208 DESCRIPTION
:=Kernel support for Magic Control Technology USB-to-Serial converters
209 KCONFIG
:=CONFIG_USB_SERIAL_MCT_U232
210 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/mct_u232.
$(LINUX_KMOD_SUFFIX
)
211 AUTOLOAD
:=$(call AutoLoad
,65,mct_u232
)
213 $(eval
$(call KernelPackage
,usb-serial-mct
))
215 define KernelPackage
/usb-serial-pl2303
216 $(call usbdep
,kmod-usb-serial
)
217 TITLE
:=Support for Prolific PL2303 devices
218 DESCRIPTION
:=Kernel support for Prolific PL2303 USB-to-Serial converters
219 KCONFIG
:=CONFIG_USB_SERIAL_PL2303
220 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/pl2303.
$(LINUX_KMOD_SUFFIX
)
221 AUTOLOAD
:=$(call AutoLoad
,65,pl2303
)
223 $(eval
$(call KernelPackage
,usb-serial-pl2303
))
226 define KernelPackage
/usb-serial-sierrawireless
227 $(call usbdep
,kmod-usb-serial
)
228 TITLE
:=Support for Sierra Wireless devices
229 DESCRIPTION
:=Kernel support for Sierra Wireless devices
230 KCONFIG
:=CONFIG_USB_SERIAL_SIERRAWIRELESS
231 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/sierra.
$(LINUX_KMOD_SUFFIX
)
232 AUTOLOAD
:=$(call AutoLoad
,65,sierra
)
234 $(eval
$(call KernelPackage
,usb-serial-sierrawireless
))
237 define KernelPackage
/usb-serial-visor
238 $(call usbdep
,kmod-usb-serial
)
239 TITLE
:=Support for Handspring Visor devices
240 DESCRIPTION
:=Kernel support for Handspring Visor PDAs
241 KCONFIG
:=CONFIG_USB_SERIAL_VISOR
242 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/visor.
$(LINUX_KMOD_SUFFIX
)
243 AUTOLOAD
:=$(call AutoLoad
,65,visor
)
245 $(eval
$(call KernelPackage
,usb-serial-visor
))
247 define KernelPackage
/usb-serial-option
248 $(call usbdep
,kmod-usb-serial
)
249 TITLE
:=Support for Option HSDPA modems
250 DESCRIPTION
:=Kernel support for Option HSDPA modems
252 KCONFIG
:=CONFIG_USB_SERIAL_OPTION
253 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/option.
$(LINUX_KMOD_SUFFIX
)
254 AUTOLOAD
:=$(call AutoLoad
,65,option
)
256 $(eval
$(call KernelPackage
,usb-serial-option
))
259 define KernelPackage
/usb-storage
260 $(call usbdep
,+kmod-scsi-core
)
261 TITLE
:=USB Storage support
262 DESCRIPTION
:=Kernel support for USB Mass Storage devices
263 KCONFIG
:=CONFIG_USB_STORAGE
265 $(LINUX_DIR
)/drivers
/usb
/storage
/usb-storage.
$(LINUX_KMOD_SUFFIX
)
266 AUTOLOAD
:=$(call AutoLoad
,60,scsi_mod sd_mod usb-storage
)
268 $(eval
$(call KernelPackage
,usb-storage
))
270 define KernelPackage
/usb-atm
271 $(call usbdep
,@LINUX_2_6 kmod-atm
)
272 TITLE
:=Support for ATM on USB bus
273 DESCRIPTION
:=Kernel support for USB DSL modems
274 KCONFIG
:=CONFIG_USB_ATM
275 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/usbatm.
$(LINUX_KMOD_SUFFIX
)
276 AUTOLOAD
:=$(call AutoLoad
,60,usbatm
)
278 $(eval
$(call KernelPackage
,usb-atm
))
280 define KernelPackage
/usb-speedtouch
281 $(call usbdep
,@LINUX_2_6 kmod-atm
)
282 TITLE
:=Support for SpeedTouch ADSL modems
283 DESCRIPTION
:=Kernel support for SpeedTouch USB ADSL modems
284 KCONFIG
:=CONFIG_USB_SPEEDTOUCH
285 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/speedtch.
$(LINUX_KMOD_SUFFIX
)
286 AUTOLOAD
:=$(call AutoLoad
,70,speedtch
)
288 $(eval
$(call KernelPackage
,usb-speedtouch
))
290 define KernelPackage
/ueagle-atm
291 $(call usbdep
,@LINUX_2_6 kmod-atm
)
292 TITLE
:=Driver for Eagle
8051 based USB ADSL modems
293 DESCRIPTION
:=Kernel support for Eagle
8051 based USB ADSL modems
294 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/ueagle-atm.
$(LINUX_KMOD_SUFFIX
)
295 KCONFIG
:=CONFIG_USB_UEAGLEATM
296 AUTOLOAD
:=$(call AutoLoad
,70,ueagle-atm
)
298 $(eval
$(call KernelPackage
,ueagle-atm
))
300 define KernelPackage
/usb-pwc
301 $(call usbdep
,+kmod-videodev
)
302 TITLE
:=Philips WebCam driver
303 DESCRIPTION
:=Kernel modules for supporting Philips WebCam USB devices
304 KCONFIG
:=CONFIG_USB_PWC
305 AUTOLOAD
:=$(call AutoLoad
,70,pwc
)
308 define KernelPackage
/usb-pwc
/2.4
309 FILES
:=$(LINUX_DIR
)/drivers
/usb
/pwc.
$(LINUX_KMOD_SUFFIX
)
312 define KernelPackage
/usb-pwc
/2.6
313 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/pwc
/pwc.
$(LINUX_KMOD_SUFFIX
)
315 $(eval
$(call KernelPackage
,usb-pwc
))
317 define KernelPackage
/cpia2
318 $(call usbdep
,+kmod-videodev
)
319 TITLE
:=CPIA2 video driver
320 DESCRIPTION
:=Kernel modules for CPIA2 WebCam devices
321 KCONFIG
:=CONFIG_VIDEO_CPIA2
322 AUTOLOAD
:=$(call AutoLoad
,70,cpia2
)
325 define KernelPackage
/cpia2
/2.4
326 FILES
:=$(LINUX_DIR
)/drivers
/usb
/cpia2.
$(LINUX_KMOD_SUFFIX
)
329 define KernelPackage
/cpia2
/2.6
330 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/cpia2
/cpia2.
$(LINUX_KMOD_SUFFIX
)
332 $(eval
$(call KernelPackage
,cpia2
))
334 define KernelPackage
/usb-net
336 TITLE
:=Kernel modules for USB-to-Ethernet convertors
337 DESCRIPTION
:=Kernel modules for USB-to-Ethernet convertors
338 KCONFIG
:=CONFIG_USB_USBNET
339 AUTOLOAD
:=$(call Autoload
,60, usbnet
)
342 define KernelPackage
/usb-net
/2.4
343 FILES
:=$(LINUX_DIR
)/drivers
/usb
/usbnet.
$(LINUX_KMOD_SUFFIX
)
346 define KernelPackage
/usb-net
/2.6
347 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/usbnet.
$(LINUX_KMOD_SUFFIX
)
350 $(eval
$(call KernelPackage
,usb-net
))
352 define KernelPackage
/usb-net-asix
353 $(call usbdep
,kmod-usbnet
)
354 TITLE
:=Kernel module for USB-to-Ethernet Asix convertors
355 DESCRIPTION
:=Kernel module for USB-to-Ethernet Asix convertors
356 KCONFIG
:=CONFIG_USB_NET_AX8817X
359 define KernelPackage
/usb-net-asix
/2.4
360 FILES
:=$(LINUX_DIR
)/drivers
/usb
/ax8817x.
$(LINUX_KMOD_SUFFIX
)
361 AUTOLOAD
:=$(call Autoload
,61,ax8817x
)
364 define KernelPackage
/usb-net-asix
/2.6
365 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/asix.
$(LINUX_KMOD_SUFFIX
)
366 AUTOLOAD
:=$(call Autoload
,61,asix
)
369 $(eval
$(call KernelPackage
,usb-net-asix
))
371 define KernelPackage
/usb-net-kaweth
372 $(call usbdep
,kmod-usbnet
)
373 TITLE
:=Kernel module for USB-to-Ethernet Kaweth convertors
374 DESCRIPTION
:=Kernel module for USB-to-Ethernet Kaweth convertors
375 KCONFIG
:=CONFIG_USB_KAWETH
376 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/kaweth.
$(LINUX_KMOD_SUFFIX
)
377 AUTOLOAD
:=$(call Autoload
,61,kaweth
)
380 $(eval
$(call KernelPackage
,usb-net-kaweth
))
382 define KernelPackage
/usb-net-pegasus
383 $(call usbdep
,kmod-usbnet
)
384 TITLE
:=Kernel module for USB-to-Ethernet Pegasus convertors
385 DESCRIPTION
:=Kernel module for USB-to-Ethernet Pegasus convertors
386 KCONFIG
:=CONFIG_USB_PEGASUS
387 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/pegasus.
$(LINUX_KMOD_SUFFIX
)
388 AUTOLOAD
:=$(call Autoload
,61,pegasus
)
391 $(eval
$(call KernelPackage
,usb-net-pegasus
))
393 define KernelPackage
/usb-hid
394 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
395 TITLE
:=Support for USB Human Input Devices
396 DESCRIPTION
:=Kernel support for USB HID devices such
as keyboards and mice
397 KCONFIG
:=CONFIG_USB_HID
398 AUTOLOAD
:=$(call AutoLoad
,70,usbhid
)
401 define KernelPackage
/usb-hid
/2.6
402 FILES
:=$(LINUX_DIR
)/drivers
/$(USBHID_DIR
)/usbhid.ko
404 $(eval
$(call KernelPackage
,usb-hid
))
406 define KernelPackage
/usb-yealink
407 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
408 TITLE
:=USB Yealink VOIP phone
409 DESCRIPTION
:=Kernel support for Yealink VOIP phone
410 KCONFIG
:=CONFIG_USB_YEALINK
411 FILES
:=$(LINUX_DIR
)/drivers
/$(USBINPUT_DIR
)/yealink.ko
412 AUTOLOAD
:=$(call AutoLoad
,70,yealink
)
414 $(eval
$(call KernelPackage
,usb-yealink
))