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)
31 define KernelPackage
/usb-core
33 TITLE
:=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
)
47 define KernelPackage
/usb-core
/description
48 Kernel support for USB
51 $(eval
$(call KernelPackage
,usb-core
))
54 define KernelPackage
/usb-uhci
56 TITLE
:=Support for UHCI controllers
62 define 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
)
68 define 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
)
74 define KernelPackage
/usb-uhci
/description
75 Kernel support for USB UHCI controllers
78 $(eval
$(call KernelPackage
,usb-uhci
))
81 define 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
)
89 define KernelPackage
/usb-uhci-iv
/description
90 Kernel support for Intel
/VIA USB UHCI controllers
93 $(eval
$(call KernelPackage
,usb-uhci-iv
))
96 define KernelPackage
/usb-ohci
98 TITLE
:=Support for OHCI controllers
104 define 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
)
110 define 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
)
116 define KernelPackage
/usb-ohci
/description
117 Kernel support for USB OHCI controllers
120 $(eval
$(call KernelPackage
,usb-ohci
))
123 define 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
)
131 define KernelPackage
/usb-adm5120
/description
132 Kernel support for the ADM5120 HCD USB controller
135 $(eval
$(call KernelPackage
,usb-adm5120
))
138 define KernelPackage
/usb2
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
)
146 define KernelPackage
/usb2
/description
147 Kernel support for USB2
(EHCI
) controllers
150 $(eval
$(call KernelPackage
,usb2
))
153 define KernelPackage
/usb-acm
155 TITLE
:=Support for modems
/isdn controllers
156 KCONFIG
:=CONFIG_USB_ACM
159 define KernelPackage
/usb-acm
/2.4
160 FILES
:=$(LINUX_DIR
)/drivers
/usb
/acm.o
161 AUTOLOAD
:=$(call AutoLoad
,60,acm
)
164 define KernelPackage
/usb-acm
/2.6
165 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/cdc-acm.ko
166 AUTOLOAD
:=$(call AutoLoad
,60,cdc-acm
)
169 define KernelPackage
/usb-acm
/description
170 Kernel support for USB ACM devices
(modems
/isdn controllers
)
173 $(eval
$(call KernelPackage
,usb-acm
))
176 define KernelPackage
/usb-audio
177 $(call usbdep
,+kmod-sound-core
)
178 TITLE
:=Support for USB audio devices
184 define KernelPackage
/usb-audio
/2.4
185 # KCONFIG:=CONFIG_USB_AUDIO
186 FILES
:=$(LINUX_DIR
)/drivers
/usb
/audio.o
187 AUTOLOAD
:=$(call AutoLoad
,60,audio
)
190 define KernelPackage
/usb-audio
/2.6
191 # KCONFIG:=CONFIG_SND_USB_AUDIO
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
)
198 define KernelPackage
/usb-audio
/description
199 Kernel support for USB audio devices
202 $(eval
$(call KernelPackage
,usb-audio
))
205 define KernelPackage
/usb-printer
207 TITLE
:=Support for printers
208 KCONFIG
:=CONFIG_USB_PRINTER
211 define KernelPackage
/usb-printer
/2.4
212 FILES
:=$(LINUX_DIR
)/drivers
/usb
/printer.o
213 AUTOLOAD
:=$(call AutoLoad
,60,printer
)
216 define KernelPackage
/usb-printer
/2.6
217 FILES
:=$(LINUX_DIR
)/drivers
/usb
/class
/usblp.ko
218 AUTOLOAD
:=$(call AutoLoad
,60,usblp
)
221 define KernelPackage
/usb-printer
/description
222 Kernel support for USB printers
225 $(eval
$(call KernelPackage
,usb-printer
))
228 define KernelPackage
/usb-serial
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
)
236 define KernelPackage
/usb-serial
/description
237 Kernel support for USB-to-Serial converters
240 $(eval
$(call KernelPackage
,usb-serial
))
243 define 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
)
251 define KernelPackage
/usb-serial-airprime
/description
252 Kernel support for Airprime
(EVDO
)
255 $(eval
$(call KernelPackage
,usb-serial-airprime
))
258 define 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
)
266 define KernelPackage
/usb-serial-belkin
/description
267 Kernel support for Belkin USB-to-Serial converters
270 $(eval
$(call KernelPackage
,usb-serial-belkin
))
273 define 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
)
281 define KernelPackage
/usb-serial-ftdi
/description
282 Kernel support for FTDI USB-to-Serial converters
285 $(eval
$(call KernelPackage
,usb-serial-ftdi
))
288 define 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
)
296 define KernelPackage
/usb-serial-mct
/description
297 Kernel support for Magic Control Technology USB-to-Serial converters
300 $(eval
$(call KernelPackage
,usb-serial-mct
))
303 define 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
)
311 define KernelPackage
/usb-serial-pl2303
/description
312 Kernel support for Prolific PL2303 USB-to-Serial converters
315 $(eval
$(call KernelPackage
,usb-serial-pl2303
))
318 define KernelPackage
/usb-serial-cp2101
319 $(call usbdep
,kmod-usb-serial
)
320 TITLE
:=Support for Silicon Labs cp2101 devices
321 KCONFIG
:=CONFIG_USB_SERIAL_CP2101
322 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/cp2101.
$(LINUX_KMOD_SUFFIX
)
323 AUTOLOAD
:=$(call AutoLoad
,65,cp2101
)
326 define KernelPackage
/usb-serial-cp2101
/description
327 Kernel support for Silicon Labs cp2101 USB-to-Serial converters
330 $(eval
$(call KernelPackage
,usb-serial-cp2101
))
333 define KernelPackage
/usb-serial-sierrawireless
334 $(call usbdep
,kmod-usb-serial @LINUX_2_6
)
335 TITLE
:=Support for Sierra Wireless devices
336 KCONFIG
:=CONFIG_USB_SERIAL_SIERRAWIRELESS
337 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/sierra.
$(LINUX_KMOD_SUFFIX
)
338 AUTOLOAD
:=$(call AutoLoad
,65,sierra
)
341 define KernelPackage
/usb-serial-sierrawireless
/description
342 Kernel support for Sierra Wireless devices
345 $(eval
$(call KernelPackage
,usb-serial-sierrawireless
))
348 define KernelPackage
/usb-serial-visor
349 $(call usbdep
,kmod-usb-serial
)
350 TITLE
:=Support for Handspring Visor devices
351 KCONFIG
:=CONFIG_USB_SERIAL_VISOR
352 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/visor.
$(LINUX_KMOD_SUFFIX
)
353 AUTOLOAD
:=$(call AutoLoad
,65,visor
)
356 define KernelPackage
/usb-serial-visor
/description
357 Kernel support for Handspring Visor PDAs
360 $(eval
$(call KernelPackage
,usb-serial-visor
))
363 define KernelPackage
/usb-serial-keyspan
364 $(call usbdep
,kmod-usb-serial
)
365 TITLE
:=Support for Keyspan USB-to-Serial devices
367 CONFIG_USB_SERIAL_KEYSPAN \
368 CONFIG_USB_SERIAL_KEYSPAN_USA28 \
369 CONFIG_USB_SERIAL_KEYSPAN_USA28X \
370 CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
371 CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
372 CONFIG_USB_SERIAL_KEYSPAN_USA19 \
373 CONFIG_USB_SERIAL_KEYSPAN_USA18X \
374 CONFIG_USB_SERIAL_KEYSPAN_USA19W \
375 CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
376 CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
377 CONFIG_USB_SERIAL_KEYSPAN_MPR \
378 CONFIG_USB_SERIAL_KEYSPAN_USA49W \
379 CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
380 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/keyspan.
$(LINUX_KMOD_SUFFIX
)
381 AUTOLOAD
:=$(call AutoLoad
,65,keyspan
)
384 define KernelPackage
/usb-serial-keyspan
/description
385 Kernel support for Keyspan USB-to-Serial devices
388 $(eval
$(call KernelPackage
,usb-serial-keyspan
))
391 define KernelPackage
/usb-serial-option
392 $(call usbdep
,kmod-usb-serial @LINUX_2_6
)
393 TITLE
:=Support for Option HSDPA modems
394 KCONFIG
:=CONFIG_USB_SERIAL_OPTION
395 FILES
:=$(LINUX_DIR
)/drivers
/usb
/serial
/option.
$(LINUX_KMOD_SUFFIX
)
396 AUTOLOAD
:=$(call AutoLoad
,65,option
)
399 define KernelPackage
/usb-serial-option
/description
400 Kernel support for Option HSDPA modems
403 $(eval
$(call KernelPackage
,usb-serial-option
))
406 define KernelPackage
/usb-storage
407 $(call usbdep
,+kmod-scsi-core
)
408 TITLE
:=USB Storage support
409 KCONFIG
:=CONFIG_USB_STORAGE
410 FILES
:=$(LINUX_DIR
)/drivers
/usb
/storage
/usb-storage.
$(LINUX_KMOD_SUFFIX
)
411 AUTOLOAD
:=$(call AutoLoad
,60,scsi_mod sd_mod usb-storage
)
414 define KernelPackage
/usb-storage
/description
415 Kernel support for USB Mass Storage devices
418 $(eval
$(call KernelPackage
,usb-storage
))
421 define KernelPackage
/usb-video
422 $(call usbdep
,@LINUX_2_6
)
423 TITLE
:=Support for USB video devices
424 KCONFIG
:=CONFIG_VIDEO_USBVIDEO
425 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/usbvideo
/usbvideo.
$(LINUX_KMOD_SUFFIX
)
426 AUTOLOAD
:=$(call AutoLoad
,60,usbvideo
)
429 define KernelPackage
/usb-video
/description
430 Kernel support for USB video devices
433 $(eval
$(call KernelPackage
,usb-video
))
436 define KernelPackage
/usb-atm
437 $(call usbdep
,@LINUX_2_6
+kmod-atm
)
438 TITLE
:=Support for ATM on USB bus
439 KCONFIG
:=CONFIG_USB_ATM
440 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/usbatm.
$(LINUX_KMOD_SUFFIX
)
441 AUTOLOAD
:=$(call AutoLoad
,60,usbatm
)
444 define KernelPackage
/usb-atm
/description
445 Kernel support for USB DSL modems
448 $(eval
$(call KernelPackage
,usb-atm
))
451 define KernelPackage
/usb-atm-speedtouch
452 $(call usbdep
,@LINUX_2_6 kmod-usb-atm
)
453 TITLE
:=SpeedTouch USB ADSL modems support
454 KCONFIG
:=CONFIG_USB_SPEEDTOUCH
455 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/speedtch.
$(LINUX_KMOD_SUFFIX
)
456 AUTOLOAD
:=$(call AutoLoad
,70,speedtch
)
459 define KernelPackage
/usb-atm-speedtouch
/description
460 Kernel support for SpeedTouch USB ADSL modems
463 $(eval
$(call KernelPackage
,usb-atm-speedtouch
))
466 define KernelPackage
/usb-atm-ueagle
467 $(call usbdep
,@LINUX_2_6 kmod-usb-atm
)
468 TITLE
:=Eagle
8051 based USB ADSL modems support
469 FILES
:=$(LINUX_DIR
)/drivers
/usb
/atm
/ueagle-atm.
$(LINUX_KMOD_SUFFIX
)
470 KCONFIG
:=CONFIG_USB_UEAGLEATM
471 AUTOLOAD
:=$(call AutoLoad
,70,ueagle-atm
)
474 define KernelPackage
/usb-atm-ueagle
/description
475 Kernel support for Eagle
8051 based USB ADSL modems
478 $(eval
$(call KernelPackage
,usb-atm-ueagle
))
481 define KernelPackage
/usb-net
483 TITLE
:=Kernel modules for USB-to-Ethernet convertors
484 KCONFIG
:=CONFIG_USB_USBNET
485 AUTOLOAD
:=$(call AutoLoad
,60,usbnet
)
488 define KernelPackage
/usb-net
/2.4
489 FILES
:=$(LINUX_DIR
)/drivers
/usb
/usbnet.
$(LINUX_KMOD_SUFFIX
)
492 define KernelPackage
/usb-net
/2.6
493 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/usbnet.
$(LINUX_KMOD_SUFFIX
)
496 define KernelPackage
/usb-net
/description
497 Kernel modules for USB-to-Ethernet convertors
500 $(eval
$(call KernelPackage
,usb-net
))
503 define KernelPackage
/usb-net-asix
504 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
505 TITLE
:=Kernel module for USB-to-Ethernet Asix convertors
506 KCONFIG
:=CONFIG_USB_NET_AX8817X
507 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/asix.
$(LINUX_KMOD_SUFFIX
)
508 AUTOLOAD
:=$(call AutoLoad
,61,asix
)
511 define KernelPackage
/usb-net-asix
/description
512 Kernel module for USB-to-Ethernet Asix convertors
515 $(eval
$(call KernelPackage
,usb-net-asix
))
518 define KernelPackage
/usb-net-kaweth
519 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
520 TITLE
:=Kernel module for USB-to-Ethernet Kaweth convertors
521 KCONFIG
:=CONFIG_USB_KAWETH
522 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/kaweth.
$(LINUX_KMOD_SUFFIX
)
523 AUTOLOAD
:=$(call AutoLoad
,61,kaweth
)
526 define KernelPackage
/usb-net-kaweth
/description
527 Kernel module for USB-to-Ethernet Kaweth convertors
530 $(eval
$(call KernelPackage
,usb-net-kaweth
))
533 define KernelPackage
/usb-net-pegasus
534 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
535 TITLE
:=Kernel module for USB-to-Ethernet Pegasus convertors
536 KCONFIG
:=CONFIG_USB_PEGASUS
537 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/pegasus.
$(LINUX_KMOD_SUFFIX
)
538 AUTOLOAD
:=$(call AutoLoad
,61,pegasus
)
541 define KernelPackage
/usb-net-pegasus
/description
542 Kernel module for USB-to-Ethernet Pegasus convertors
545 $(eval
$(call KernelPackage
,usb-net-pegasus
))
548 define KernelPackage
/usb-net-cdc-ether
549 $(call usbdep
,kmod-usb-net @LINUX_2_6
)
550 TITLE
:=Support for cdc ethernet connections
551 KCONFIG
:=CONFIG_USB_NET_CDCETHER
552 FILES
:=$(LINUX_DIR
)/drivers
/$(USBNET_DIR
)/cdc_ether.
$(LINUX_KMOD_SUFFIX
)
553 AUTOLOAD
:=$(call AutoLoad
,61,cdc_ether
)
556 define KernelPackage
/usb-net-cdc-ether
/description
557 Kernel support for USB CDC Ethernet devices
560 $(eval
$(call KernelPackage
,usb-net-cdc-ether
))
563 define KernelPackage
/usb-hid
564 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
565 TITLE
:=Support for USB Human Input Devices
566 KCONFIG
:=CONFIG_HID_SUPPORT
=y CONFIG_USB_HID
567 FILES
:=$(LINUX_DIR
)/drivers
/$(USBHID_DIR
)/usbhid.ko
568 AUTOLOAD
:=$(call AutoLoad
,70,usbhid
)
572 define KernelPackage
/usb-hid
/description
573 Kernel support for USB HID devices such
as keyboards and mice
576 $(eval
$(call KernelPackage
,usb-hid
))
579 define KernelPackage
/usb-yealink
580 $(call usbdep
,@LINUX_2_6
+kmod-input-core
+kmod-input-evdev
)
581 TITLE
:=USB Yealink VOIP phone
582 KCONFIG
:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT
=m CONFIG_INPUT_MISC
=y
583 FILES
:=$(LINUX_DIR
)/drivers
/$(USBINPUT_DIR
)/yealink.ko
584 AUTOLOAD
:=$(call AutoLoad
,70,yealink
)
587 define KernelPackage
/usb-yealink
/description
588 Kernel support for Yealink VOIP phone
591 $(eval
$(call KernelPackage
,usb-yealink
))
593 define KernelPackage
/usb-test
594 $(call usbdep
,@LINUX_2_6 @DEVEL
)
595 TITLE
:=USB Testing Driver
596 KCONFIG
:=CONFIG_USB_TEST
597 FILES
:=$(LINUX_DIR
)/drivers
/usb
/misc
/usbtest.ko
600 define KernelPackage
/usb-test
/description
601 Kernel support for testing USB Host Controller software.
604 $(eval
$(call KernelPackage
,usb-test
))