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
34 KCONFIG
:=$(CONFIG_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
55 define KernelPackage
/usb-uhci
/2.4
56 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/uhci.o
57 KCONFIG
:=$(CONFIG_USB_UHCI_ALT
)
58 AUTOLOAD
:=$(call AutoLoad
,50,uhci
)
61 define KernelPackage
/usb-uhci
/2.6
62 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/uhci-hcd.ko
63 KCONFIG
:=$(CONFIG_USB_UHCI_HCD
)
64 AUTOLOAD
:=$(call AutoLoad
,50,uhci-hcd
)
66 $(eval
$(call KernelPackage
,usb-uhci
))
68 define KernelPackage
/usb-uhci-iv
69 $(call usbdep
,@LINUX_2_4
)
70 TITLE
:=Support for Intel
/VIA UHCI controllers
71 DESCRIPTION
:=Kernel support for Intel
/VIA USB UHCI controllers
74 define KernelPackage
/usb-uhci-iv
/2.4
75 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/usb-uhci.
$(LINUX_KMOD_SUFFIX
)
76 KCONFIG
:=$(CONFIG_USB_UHCI
)
77 AUTOLOAD
:=$(call AutoLoad
,50,usb-uhci
)
79 $(eval
$(call KernelPackage
,usb-uhci-iv
))
81 define KernelPackage
/usb-ohci
83 TITLE
:=Support for OHCI controllers
84 DESCRIPTION
:=Kernel support for USB OHCI controllers
87 define KernelPackage
/usb-ohci
/2.4
88 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/usb-ohci.o
89 KCONFIG
:=$(CONFIG_USB_OHCI
)
90 AUTOLOAD
:=$(call AutoLoad
,50,usb-ohci
)
93 define KernelPackage
/usb-ohci
/2.6
94 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/ohci-hcd.ko
95 KCONFIG
:=$(CONFIG_USB_OHCI_HCD
)
96 AUTOLOAD
:=$(call AutoLoad
,50,ohci-hcd
)
98 $(eval
$(call KernelPackage
,usb-ohci
))
100 define KernelPackage
/usb2
102 TITLE
:=Support for USB2 controllers
103 DESCRIPTION
:=Kernel support for USB2
(EHCI
) controllers
104 FILES
:=$(LINUX_DIR
)/drivers
/usb
/host
/ehci-hcd.
$(LINUX_KMOD_SUFFIX
)
105 KCONFIG
:=$(CONFIG_USB_EHCI_HCD
)
106 AUTOLOAD
:=$(call AutoLoad
,50,ehci-hcd
)
108 $(eval
$(call KernelPackage
,usb2
))
111 define KernelPackage
/usb-acm
113 TITLE
:=Support for modems
/isdn controllers
114 DESCRIPTION
:=Kernel support for USB ACM devices
(modems
/isdn controllers
)
115 KCONFIG
:=$(CONFIG_USB_ACM
)
118 define KernelPackage
/usb-acm
/2.4
119 FILES
:=$(LINUX_DIR
)/drivers
/usb
/acm.o
120 AUTOLOAD
:=$(call AutoLoad
,60,acm
)
123 define KernelPackage
/usb-acm
/2.6
124 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/cdc-acm.ko
125 AUTOLOAD
:=$(call AutoLoad
,60,cdc-acm
)
127 $(eval
$(call KernelPackage
,usb-acm
))
130 define KernelPackage
/usb-audio
131 $(call usbdep
,+kmod-soundcore
)
132 TITLE
:=Support for audio devices
133 DESCRIPTION
:=Kernel support for USB audio devices
136 define KernelPackage
/usb-audio
/2.4
137 KCONFIG
:=$(CONFIG_USB_AUDIO
)
138 FILES
:=$(LINUX_DIR
)/drivers
/usb
/audio.o
139 AUTOLOAD
:=$(call AutoLoad
,60,audio
)
142 define KernelPackage
/usb-audio
/2.6
143 KCONFIG
:=$(CONFIG_SND_USB_AUDIO
)
145 $(LINUX_DIR
)/sound
/usb
/snd-usb-lib.ko \
146 $(LINUX_DIR
)/sound
/usb
/snd-usb-audio.ko
147 AUTOLOAD
:=$(call AutoLoad
,60,snd-usb-lib snd-usb-audio
)
149 $(eval
$(call KernelPackage
,usb-audio
))
152 define KernelPackage
/usb-printer
154 TITLE
:=Support for printers
155 DESCRIPTION
:=Kernel support for USB printers
156 KCONFIG
:=$(CONFIG_USB_PRINTER
)
159 define KernelPackage
/usb-printer
/2.4
160 FILES
:=$(LINUX_DIR
)/drivers
/usb
/printer.o
161 AUTOLOAD
:=$(call AutoLoad
,60,printer
)
164 define KernelPackage
/usb-printer
/2.6
165 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/usblp.ko
166 AUTOLOAD
:=$(call AutoLoad
,60,usblp
)
168 $(eval
$(call KernelPackage
,usb-printer
))
171 define KernelPackage
/usb-serial
173 TITLE
:=Support for USB-to-Serial converters
174 DESCRIPTION
:=Kernel support for USB-to-Serial converters
175 KCONFIG
:=$(CONFIG_USB_SERIAL
)
176 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/usbserial.
$(LINUX_KMOD_SUFFIX
)
177 AUTOLOAD
:=$(call AutoLoad
,60,usbserial
)
179 $(eval
$(call KernelPackage
,usb-serial
))
181 define KernelPackage
/usb-serial-airprime
182 $(call usbdep
,kmod-usb-serial
)
183 TITLE
:=Support for Airprime
(EVDO
)
184 DESCRIPTION
:=Kernel support for Airprime
(EVDO
)
185 KCONFIG
:=$(CONFIG_USB_SERIAL_AIRPRIME
)
186 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/airprime.
$(LINUX_KMOD_SUFFIX
)
187 AUTOLOAD
:=$(call AutoLoad
,65,airprime
)
189 $(eval
$(call KernelPackage
,usb-serial-airprime
))
191 define KernelPackage
/usb-serial-belkin
192 $(call usbdep
,kmod-usb-serial
)
193 TITLE
:=Support for Belkin devices
194 DESCRIPTION
:=Kernel support for Belkin USB-to-Serial converters
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
)
199 $(eval
$(call KernelPackage
,usb-serial-belkin
))
202 define KernelPackage
/usb-serial-ftdi
203 $(call usbdep
,kmod-usb-serial
)
204 TITLE
:=Support for FTDI devices
205 DESCRIPTION
:=Kernel support for FTDI USB-to-Serial converters
206 KCONFIG
:=$(CONFIG_USB_SERIAL_FTDI_SIO
)
207 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/ftdi_sio.
$(LINUX_KMOD_SUFFIX
)
208 AUTOLOAD
:=$(call AutoLoad
,65,ftdi_sio
)
210 $(eval
$(call KernelPackage
,usb-serial-ftdi
))
213 define KernelPackage
/usb-serial-mct
214 $(call usbdep
,kmod-usb-serial
)
215 TITLE
:=Support for Magic Control Tech. devices
216 DESCRIPTION
:=Kernel support for Magic Control Technology USB-to-Serial converters
217 KCONFIG
:=$(CONFIG_USB_SERIAL_MCT_U232
)
218 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/mct_u232.
$(LINUX_KMOD_SUFFIX
)
219 AUTOLOAD
:=$(call AutoLoad
,65,mct_u232
)
221 $(eval
$(call KernelPackage
,usb-serial-mct
))
223 define KernelPackage
/usb-serial-pl2303
224 $(call usbdep
,kmod-usb-serial
)
225 TITLE
:=Support for Prolific PL2303 devices
226 DESCRIPTION
:=Kernel support for Prolific PL2303 USB-to-Serial converters
227 KCONFIG
:=$(CONFIG_USB_SERIAL_PL2303
)
228 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/pl2303.
$(LINUX_KMOD_SUFFIX
)
229 AUTOLOAD
:=$(call AutoLoad
,65,pl2303
)
231 $(eval
$(call KernelPackage
,usb-serial-pl2303
))
234 define KernelPackage
/usb-serial-sierrawireless
235 $(call usbdep
,kmod-usb-serial
)
236 TITLE
:=Support for Sierra Wireless devices
237 DESCRIPTION
:=Kernel support for Sierra Wireless devices
238 KCONFIG
:=$(CONFIG_USB_SERIAL_SIERRAWIRELESS
)
239 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/sierra.
$(LINUX_KMOD_SUFFIX
)
240 AUTOLOAD
:=$(call AutoLoad
,65,sierra
)
242 $(eval
$(call KernelPackage
,usb-serial-sierrawireless
))
245 define KernelPackage
/usb-serial-visor
246 $(call usbdep
,kmod-usb-serial
)
247 TITLE
:=Support for Handspring Visor devices
248 DESCRIPTION
:=Kernel support for Handspring Visor PDAs
249 KCONFIG
:=$(CONFIG_USB_SERIAL_VISOR
)
250 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/visor.
$(LINUX_KMOD_SUFFIX
)
251 AUTOLOAD
:=$(call AutoLoad
,65,visor
)
253 $(eval
$(call KernelPackage
,usb-serial-visor
))
255 define KernelPackage
/usb-serial-option
256 $(call usbdep
,kmod-usb-serial
)
257 TITLE
:=Support for Option HSDPA modems
258 DESCRIPTION
:=Kernel support for Option HSDPA modems
260 KCONFIG
:=$(CONFIG_USB_SERIAL_OPTION
)
261 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/option.
$(LINUX_KMOD_SUFFIX
)
262 AUTOLOAD
:=$(call AutoLoad
,65,option
)
264 $(eval
$(call KernelPackage
,usb-serial-option
))
267 define KernelPackage
/usb-storage
268 $(call usbdep
,+kmod-scsi-core
)
269 TITLE
:=USB Storage support
270 DESCRIPTION
:=Kernel support for USB Mass Storage devices
271 KCONFIG
:=$(CONFIG_USB_STORAGE
)
273 $(LINUX_DIR
)/drivers
/usb
/storage
/usb-storage.
$(LINUX_KMOD_SUFFIX
)
274 AUTOLOAD
:=$(call AutoLoad
,60,scsi_mod sd_mod usb-storage
)
276 $(eval
$(call KernelPackage
,usb-storage
))
278 define KernelPackage
/usb-atm
279 $(call usbdep
,@LINUX_2_6 kmod-atm
)
280 TITLE
:=Support for ATM on USB bus
281 DESCRIPTION
:=Kernel support for USB DSL modems
282 KCONFIG
:=$(CONFIG_USB_ATM
)
283 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/usbatm.
$(LINUX_KMOD_SUFFIX
)
284 AUTOLOAD
:=$(call AutoLoad
,60,usbatm
)
286 $(eval
$(call KernelPackage
,usb-atm
))
288 define KernelPackage
/usb-speedtouch
289 $(call usbdep
,@LINUX_2_6 kmod-atm
)
290 TITLE
:=Support for SpeedTouch ADSL modems
291 DESCRIPTION
:=Kernel support for SpeedTouch USB ADSL modems
292 KCONFIG
:=$(CONFIG_USB_SPEEDTOUCH
)
293 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/speedtch.
$(LINUX_KMOD_SUFFIX
)
294 AUTOLOAD
:=$(call AutoLoad
,70,speedtch
)
296 $(eval
$(call KernelPackage
,usb-speedtouch
))
298 define KernelPackage
/ueagle-atm
299 $(call usbdep
,@LINUX_2_6 kmod-atm
)
300 TITLE
:=Driver for Eagle
8051 based USB ADSL modems
301 DESCRIPTION
:=Kernel support for Eagle
8051 based USB ADSL modems
302 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/ueagle-atm.
$(LINUX_KMOD_SUFFIX
)
303 KCONFIG
:=$(CONFIG_USB_UEAGLEATM
)
304 AUTOLOAD
:=$(call AutoLoad
,70,ueagle-atm
)
306 $(eval
$(call KernelPackage
,ueagle-atm
))
308 define KernelPackage
/usb-pwc
309 $(call usbdep
,+kmod-videodev
)
310 TITLE
:=Philips WebCam driver
311 DESCRIPTION
:=Kernel modules for supporting Philips WebCam USB devices
312 KCONFIG
:=$(CONFIG_USB_PWC
)
313 AUTOLOAD
:=$(call AutoLoad
,70,pwc
)
316 define KernelPackage
/usb-pwc
/2.4
317 FILES
:=$(LINUX_DIR
)/drivers
/usb
/pwc.
$(LINUX_KMOD_SUFFIX
)
320 define KernelPackage
/usb-pwc
/2.6
321 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/pwc
/pwc.
$(LINUX_KMOD_SUFFIX
)
323 $(eval
$(call KernelPackage
,usb-pwc
))
325 define KernelPackage
/cpia2
326 $(call usbdep
,+kmod-videodev
)
327 TITLE
:=CPIA2 video driver
328 DESCRIPTION
:=Kernel modules for CPIA2 WebCam devices
329 KCONFIG
:=$(CONFIG_VIDEO_CPIA2
)
330 AUTOLOAD
:=$(call AutoLoad
,70,cpia2
)
333 define KernelPackage
/cpia2
/2.4
334 FILES
:=$(LINUX_DIR
)/drivers
/usb
/cpia2.
$(LINUX_KMOD_SUFFIX
)
337 define KernelPackage
/cpia2
/2.6
338 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/cpia2
/cpia2.
$(LINUX_KMOD_SUFFIX
)
340 $(eval
$(call KernelPackage
,cpia2
))
342 define KernelPackage
/usb-net
344 TITLE
:=Kernel modules for USB-to-Ethernet convertors
345 DESCRIPTION
:=Kernel modules for USB-to-Ethernet convertors
346 KCONFIG
:=$(CONFIG_USB_USBNET
)
347 AUTOLOAD
:=$(call Autoload
,60, usbnet
)
350 define KernelPackage
/usb-net
/2.4
351 FILES
:=$(LINUX_DIR
)/drivers
/usb
/usbnet.
$(LINUX_KMOD_SUFFIX
)
354 define KernelPackage
/usb-net
/2.6
355 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/usbnet.
$(LINUX_KMOD_SUFFIX
)
358 $(eval
$(call KernelPackage
,usb-net
))
360 define KernelPackage
/usb-net-asix
361 $(call usbdep
,kmod-usbnet
)
362 TITLE
:=Kernel module for USB-to-Ethernet Asix convertors
363 DESCRIPTION
:=Kernel module for USB-to-Ethernet Asix convertors
364 KCONFIG
:=$(CONFIG_USB_NET_AX8817X
)
367 define KernelPackage
/usb-net-asix
/2.4
368 FILES
:=$(LINUX_DIR
)/drivers
/usb
/ax8817x.
$(LINUX_KMOD_SUFFIX
)
369 AUTOLOAD
:=$(call Autoload
,61,ax8817x
)
372 define KernelPackage
/usb-net-asix
/2.6
373 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/asix.
$(LINUX_KMOD_SUFFIX
)
374 AUTOLOAD
:=$(call Autoload
,61,asix
)
377 $(eval
$(call KernelPackage
,usb-net-asix
))
379 define KernelPackage
/usb-net-kaweth
380 $(call usbdep
,kmod-usbnet
)
381 TITLE
:=Kernel module for USB-to-Ethernet Kaweth convertors
382 DESCRIPTION
:=Kernel module for USB-to-Ethernet Kaweth convertors
383 KCONFIG
:=$(CONFIG_USB_KAWETH
)
384 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/kaweth.
$(LINUX_KMOD_SUFFIX
)
385 AUTOLOAD
:=$(call Autoload
,61,kaweth
)
388 $(eval
$(call KernelPackage
,usb-net-kaweth
))
390 define KernelPackage
/usb-net-pegasus
391 $(call usbdep
,kmod-usbnet
)
392 TITLE
:=Kernel module for USB-to-Ethernet Pegasus convertors
393 DESCRIPTION
:=Kernel module for USB-to-Ethernet Pegasus convertors
394 KCONFIG
:=$(CONFIG_USB_PEGASUS
)
395 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/pegasus.
$(LINUX_KMOD_SUFFIX
)
396 AUTOLOAD
:=$(call Autoload
,61,pegasus
)
399 $(eval
$(call KernelPackage
,usb-net-pegasus
))
401 define KernelPackage
/usb-hid
402 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
403 TITLE
:=Support for USB Human Input Devices
404 DESCRIPTION
:=Kernel support for USB HID devices such
as keyboards and mice
405 KCONFIG
:=$(CONFIG_USB_HID
)
406 AUTOLOAD
:=$(call AutoLoad
,70,usbhid
)
409 define KernelPackage
/usb-hid
/2.6
410 FILES
:=$(LINUX_DIR
)/drivers
/$(USBHID_DIR
)/usbhid.ko
412 $(eval
$(call KernelPackage
,usb-hid
))
414 define KernelPackage
/usb-yealink
415 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
416 TITLE
:=USB Yealink VOIP phone
417 DESCRIPTION
:=Kernel support for Yealink VOIP phone
418 KCONFIG
:=$(CONFIG_USB_YEALINK
)
419 FILES
:=$(LINUX_DIR
)/drivers
/$(USBINPUT_DIR
)/yealink.ko
420 AUTOLOAD
:=$(call AutoLoad
,70,yealink
)
422 $(eval
$(call KernelPackage
,usb-yealink
))