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 @LINUX_2_6
)
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 @LINUX_2_6
)
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 @LINUX_2_6
)
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 @LINUX_2_6
)
302 TITLE
:=Philips WebCam driver
303 DESCRIPTION
:=Kernel modules for supporting Philips WebCam USB devices
304 KCONFIG
:=CONFIG_USB_PWC CONFIG_VIDEO_V4L1
=y CONFIG_VIDEO_CAPTURE_DRIVERS
=y CONFIG_V4L_USB_DRIVERS
=y CONFIG_USB_PWC_DEBUG
=n
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 @LINUX_2_6
)
319 TITLE
:=CPIA2 video driver
320 DESCRIPTION
:=Kernel modules for CPIA2 WebCam devices
321 KCONFIG
:=CONFIG_VIDEO_CPIA2
322 AUTOLOAD
:=$(call AutoLoad
,70,cpia2
)
323 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/cpia2
/cpia2.
$(LINUX_KMOD_SUFFIX
)
325 $(eval
$(call KernelPackage
,cpia2
))
327 define KernelPackage
/usb-net
329 TITLE
:=Kernel modules for USB-to-Ethernet convertors
330 DESCRIPTION
:=Kernel modules for USB-to-Ethernet convertors
331 KCONFIG
:=CONFIG_USB_USBNET
332 AUTOLOAD
:=$(call Autoload
,60, usbnet
)
335 define KernelPackage
/usb-net
/2.4
336 FILES
:=$(LINUX_DIR
)/drivers
/usb
/usbnet.
$(LINUX_KMOD_SUFFIX
)
339 define KernelPackage
/usb-net
/2.6
340 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/usbnet.
$(LINUX_KMOD_SUFFIX
)
343 $(eval
$(call KernelPackage
,usb-net
))
345 define KernelPackage
/usb-net-asix
346 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
347 TITLE
:=Kernel module for USB-to-Ethernet Asix convertors
348 DESCRIPTION
:=Kernel module for USB-to-Ethernet Asix convertors
349 KCONFIG
:=CONFIG_USB_NET_AX8817X
350 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/asix.
$(LINUX_KMOD_SUFFIX
)
351 AUTOLOAD
:=$(call Autoload
,61,asix
)
354 $(eval
$(call KernelPackage
,usb-net-asix
))
356 define KernelPackage
/usb-net-kaweth
357 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
358 TITLE
:=Kernel module for USB-to-Ethernet Kaweth convertors
359 DESCRIPTION
:=Kernel module for USB-to-Ethernet Kaweth convertors
360 KCONFIG
:=CONFIG_USB_KAWETH
361 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/kaweth.
$(LINUX_KMOD_SUFFIX
)
362 AUTOLOAD
:=$(call Autoload
,61,kaweth
)
365 $(eval
$(call KernelPackage
,usb-net-kaweth
))
367 define KernelPackage
/usb-net-pegasus
368 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
369 TITLE
:=Kernel module for USB-to-Ethernet Pegasus convertors
370 DESCRIPTION
:=Kernel module for USB-to-Ethernet Pegasus convertors
371 KCONFIG
:=CONFIG_USB_PEGASUS
372 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/pegasus.
$(LINUX_KMOD_SUFFIX
)
373 AUTOLOAD
:=$(call Autoload
,61,pegasus
)
376 $(eval
$(call KernelPackage
,usb-net-pegasus
))
378 define KernelPackage
/usb-hid
379 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
380 TITLE
:=Support for USB Human Input Devices
381 DESCRIPTION
:=Kernel support for USB HID devices such
as keyboards and mice
382 KCONFIG
:=CONFIG_USB_HID
383 AUTOLOAD
:=$(call AutoLoad
,70,usbhid
)
386 define KernelPackage
/usb-hid
/2.6
387 FILES
:=$(LINUX_DIR
)/drivers
/$(USBHID_DIR
)/usbhid.ko
389 $(eval
$(call KernelPackage
,usb-hid
))
391 define KernelPackage
/usb-yealink
392 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
393 TITLE
:=USB Yealink VOIP phone
394 DESCRIPTION
:=Kernel support for Yealink VOIP phone
395 KCONFIG
:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT
=m CONFIG_INPUT_MISC
=y
396 FILES
:=$(LINUX_DIR
)/drivers
/$(USBINPUT_DIR
)/yealink.ko
397 AUTOLOAD
:=$(call AutoLoad
,70,yealink
)
399 $(eval
$(call KernelPackage
,usb-yealink
))