handle new libs required for new kernels
[openwrt/openwrt.git] / package / kernel / linux / modules / usb.mk
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 USB_MENU:=USB Support
9
10 USBNET_DIR:=net/usb
11 USBHID_DIR?=hid/usbhid
12 USBINPUT_DIR?=input/misc
13
14 define KernelPackage/usb-core
15 SUBMENU:=$(USB_MENU)
16 TITLE:=Support for USB
17 DEPENDS:=@USB_SUPPORT
18 KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
19 FILES:= \
20 $(LINUX_DIR)/drivers/usb/core/usbcore.ko \
21 $(LINUX_DIR)/drivers/usb/usb-common.ko
22 AUTOLOAD:=$(call AutoLoad,20,usb-common usbcore,1)
23 $(call AddDepends/nls)
24 endef
25
26 define KernelPackage/usb-core/description
27 Kernel support for USB
28 endef
29
30 $(eval $(call KernelPackage,usb-core))
31
32
33 define AddDepends/usb
34 SUBMENU:=$(USB_MENU)
35 DEPENDS+=+kmod-usb-core $(1)
36 endef
37
38
39 define KernelPackage/usb-gadget
40 TITLE:=USB Gadget support
41 KCONFIG:=CONFIG_USB_GADGET
42 FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc-core.ko
43 AUTOLOAD:=$(call AutoLoad,45,udc-core)
44 DEPENDS:=@USB_GADGET_SUPPORT
45 $(call AddDepends/usb)
46 endef
47
48 define KernelPackage/usb-gadget/description
49 Kernel support for USB Gadget mode
50 endef
51
52 $(eval $(call KernelPackage,usb-gadget))
53
54 define KernelPackage/usb-lib-composite
55 TITLE:=USB lib composite
56 KCONFIG:=CONFIG_USB_LIBCOMPOSITE
57 DEPENDS:=+kmod-usb-gadget +kmod-fs-configfs @!LINUX_3_3 @!LINUX_3_6
58 FILES:=$(LINUX_DIR)/drivers/usb/gadget/libcomposite.ko
59 AUTOLOAD:=$(call AutoLoad,50,libcomposite)
60 $(call AddDepends/usb)
61 endef
62
63 define KernelPackage/usb-lib-composite/description
64 Lib Composite
65 endef
66
67 $(eval $(call KernelPackage,usb-lib-composite))
68
69
70 define KernelPackage/usb-eth-gadget
71 TITLE:=USB Ethernet Gadget support
72 KCONFIG:= \
73 CONFIG_USB_ETH \
74 CONFIG_USB_ETH_RNDIS=y \
75 CONFIG_USB_ETH_EEM=y
76 DEPENDS:=+kmod-usb-gadget +(!LINUX_3_3&&!LINUX_3_6):kmod-usb-lib-composite
77 ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko),)
78 FILES:= \
79 $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko \
80 $(LINUX_DIR)/drivers/usb/gadget/u_rndis.ko \
81 $(LINUX_DIR)/drivers/usb/gadget/usb_f_rndis.ko \
82 $(LINUX_DIR)/drivers/usb/gadget/usb_f_eem.ko \
83 $(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
84 AUTOLOAD:=$(call AutoLoad,52,g_ether)
85 else
86 FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
87 AUTOLOAD:=$(call AutoLoad,52,g_ether)
88 endif
89 $(call AddDepends/usb)
90 endef
91
92 define KernelPackage/usb-eth-gadget/description
93 Kernel support for USB Ethernet Gadget
94 endef
95
96 $(eval $(call KernelPackage,usb-eth-gadget))
97
98
99 define KernelPackage/usb-uhci
100 TITLE:=Support for UHCI controllers
101 KCONFIG:= \
102 CONFIG_USB_UHCI_ALT \
103 CONFIG_USB_UHCI_HCD
104 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
105 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd,1)
106 $(call AddDepends/usb)
107 endef
108
109 define KernelPackage/usb-uhci/description
110 Kernel support for USB UHCI controllers
111 endef
112
113 $(eval $(call KernelPackage,usb-uhci,1))
114
115
116 define KernelPackage/usb-ohci
117 TITLE:=Support for OHCI controllers
118 DEPENDS:=+TARGET_brcm47xx:kmod-usb-brcm47xx
119 KCONFIG:= \
120 CONFIG_USB_OHCI \
121 CONFIG_USB_OHCI_HCD \
122 CONFIG_USB_OHCI_ATH79=y \
123 CONFIG_USB_OHCI_BCM63XX=y \
124 CONFIG_USB_OCTEON_OHCI=y \
125 CONFIG_USB_OHCI_HCD_OMAP3=y \
126 CONFIG_USB_OHCI_HCD_PLATFORM=y
127 FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
128 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd,1)
129 $(call AddDepends/usb)
130 endef
131
132 define KernelPackage/usb-ohci/description
133 Kernel support for USB OHCI controllers
134 endef
135
136 $(eval $(call KernelPackage,usb-ohci,1))
137
138
139 define KernelPackage/usb2-fsl
140 TITLE:=Support for Freescale USB2 controllers
141 DEPENDS:=@TARGET_mpc85xx
142 KCONFIG:=\
143 CONFIG_USB_FSL_MPH_DR_OF \
144 CONFIG_USB_EHCI_FSL=y
145 FILES:=$(LINUX_DIR)/drivers/usb/host/fsl-mph-dr-of.ko
146 AUTOLOAD:=$(call AutoLoad,39,fsl-mph-dr-of,1)
147 $(call AddDepends/usb)
148 endef
149
150 define KernelPackage/usb2-fsl/description
151 Kernel support for Freescale USB2 (EHCI) controllers
152 endef
153
154 $(eval $(call KernelPackage,usb2-fsl))
155
156
157 define KernelPackage/usb2
158 TITLE:=Support for USB2 controllers
159 DEPENDS:=\
160 +TARGET_brcm47xx:kmod-usb-brcm47xx \
161 +TARGET_mpc85xx:kmod-usb2-fsl
162 KCONFIG:=\
163 CONFIG_USB_EHCI_HCD \
164 CONFIG_USB_EHCI_ATH79=y \
165 CONFIG_USB_EHCI_BCM63XX=y \
166 CONFIG_USB_IMX21_HCD=y \
167 CONFIG_USB_EHCI_MXC=y \
168 CONFIG_USB_OCTEON_EHCI=y \
169 CONFIG_USB_EHCI_HCD_ORION=y \
170 CONFIG_USB_EHCI_HCD_PLATFORM=y
171 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.8.0)),1)
172 FILES:= \
173 $(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko \
174 $(LINUX_DIR)/drivers/usb/host/ehci-platform.ko
175 AUTOLOAD:=$(call AutoLoad,40,ehci-hcd ehci-platform,1)
176 else
177 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko
178 AUTOLOAD:=$(call AutoLoad,40,ehci-hcd,1)
179 endif
180 $(call AddDepends/usb)
181 endef
182
183 define KernelPackage/usb2/description
184 Kernel support for USB2 (EHCI) controllers
185 endef
186
187 $(eval $(call KernelPackage,usb2))
188
189
190 define KernelPackage/usb2-pci
191 TITLE:=Support for PCI USB2 controllers
192 DEPENDS:=@PCI_SUPPORT @(LINUX_3_8||LINUX_3_9||LINUX_3_10) +kmod-usb2
193 KCONFIG:=CONFIG_USB_EHCI_PCI
194 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-pci.ko
195 AUTOLOAD:=$(call AutoLoad,42,ehci-pci,1)
196 $(call AddDepends/usb)
197 endef
198
199 define KernelPackage/usb2-pci/description
200 Kernel support for PCI USB2 (EHCI) controllers
201 endef
202
203 $(eval $(call KernelPackage,usb2-pci))
204
205
206 define KernelPackage/usb-dwc2
207 TITLE:=DWC2 USB controller driver
208 DEPENDS:=@LINUX_3_10
209 KCONFIG:= \
210 CONFIG_USB_DWC2 \
211 CONFIG_USB_DWC2_DEBUG=n \
212 CONFIG_USB_DWC2_VERBOSE=n \
213 CONFIG_USB_DWC2_TRACK_MISSED_SOFS=n
214 FILES:= \
215 $(LINUX_DIR)/drivers/staging/dwc2/dwc2.ko \
216 $(LINUX_DIR)/drivers/staging/dwc2/dwc2_platform.ko
217 AUTOLOAD:=$(call AutoLoad,54,dwc2 dwc2_platform,1)
218 $(call AddDepends/usb)
219 endef
220
221 define KernelPackage/usb-dwc2/description
222 This driver provides USB Device Controller support for the
223 Synopsys DesignWare USB OTG Core
224 endef
225
226 $(eval $(call KernelPackage,usb-dwc2))
227
228
229 define KernelPackage/usb-acm
230 TITLE:=Support for modems/isdn controllers
231 KCONFIG:=CONFIG_USB_ACM
232 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
233 AUTOLOAD:=$(call AutoProbe,cdc-acm)
234 $(call AddDepends/usb)
235 endef
236
237 define KernelPackage/usb-acm/description
238 Kernel support for USB ACM devices (modems/isdn controllers)
239 endef
240
241 $(eval $(call KernelPackage,usb-acm))
242
243
244 define KernelPackage/usb-wdm
245 TITLE:=USB Wireless Device Management
246 KCONFIG:=CONFIG_USB_WDM
247 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko
248 AUTOLOAD:=$(call AutoProbe,cdc-wdm)
249 $(call AddDepends/usb)
250 $(call AddDepends/usb-net)
251 endef
252
253 define KernelPackage/usb-wdm/description
254 USB Wireless Device Management support
255 endef
256
257 $(eval $(call KernelPackage,usb-wdm))
258
259
260 define KernelPackage/usb-audio
261 TITLE:=Support for USB audio devices
262 KCONFIG:= \
263 CONFIG_USB_AUDIO \
264 CONFIG_SND_USB_AUDIO
265 $(call AddDepends/usb)
266 $(call AddDepends/sound)
267 # For Linux 2.6.35+
268 ifneq ($(wildcard $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko),)
269 FILES:= \
270 $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
271 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
272 AUTOLOAD:=$(call AutoProbe,snd-usbmidi-lib snd-usb-audio)
273 else
274 FILES:= \
275 $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
276 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
277 AUTOLOAD:=$(call AutoProbe,snd-usb-lib snd-usb-audio)
278 endif
279 endef
280
281 define KernelPackage/usb-audio/description
282 Kernel support for USB audio devices
283 endef
284
285 $(eval $(call KernelPackage,usb-audio))
286
287
288 define KernelPackage/usb-printer
289 TITLE:=Support for printers
290 KCONFIG:=CONFIG_USB_PRINTER
291 FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
292 AUTOLOAD:=$(call AutoProbe,usblp)
293 $(call AddDepends/usb)
294 endef
295
296 define KernelPackage/usb-printer/description
297 Kernel support for USB printers
298 endef
299
300 $(eval $(call KernelPackage,usb-printer))
301
302
303 define KernelPackage/usb-serial
304 TITLE:=Support for USB-to-Serial converters
305 KCONFIG:=CONFIG_USB_SERIAL
306 FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.ko
307 AUTOLOAD:=$(call AutoProbe,usbserial)
308 $(call AddDepends/usb)
309 endef
310
311 define KernelPackage/usb-serial/description
312 Kernel support for USB-to-Serial converters
313 endef
314
315 $(eval $(call KernelPackage,usb-serial))
316
317
318 define AddDepends/usb-serial
319 SUBMENU:=$(USB_MENU)
320 DEPENDS+=kmod-usb-serial $(1)
321 endef
322
323
324 define KernelPackage/usb-serial-belkin
325 TITLE:=Support for Belkin devices
326 KCONFIG:=CONFIG_USB_SERIAL_BELKIN
327 FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.ko
328 AUTOLOAD:=$(call AutoProbe,belkin_sa)
329 $(call AddDepends/usb-serial)
330 endef
331
332 define KernelPackage/usb-serial-belkin/description
333 Kernel support for Belkin USB-to-Serial converters
334 endef
335
336 $(eval $(call KernelPackage,usb-serial-belkin))
337
338
339 define KernelPackage/usb-serial-ch341
340 TITLE:=Support for CH341 devices
341 KCONFIG:=CONFIG_USB_SERIAL_CH341
342 FILES:=$(LINUX_DIR)/drivers/usb/serial/ch341.ko
343 AUTOLOAD:=$(call AutoProbe,ch341)
344 $(call AddDepends/usb-serial)
345 endef
346
347 define KernelPackage/usb-serial-ch341/description
348 Kernel support for Winchiphead CH341 USB-to-Serial converters
349 endef
350
351 $(eval $(call KernelPackage,usb-serial-ch341))
352
353
354 define KernelPackage/usb-serial-ftdi
355 TITLE:=Support for FTDI devices
356 KCONFIG:=CONFIG_USB_SERIAL_FTDI_SIO
357 FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.ko
358 AUTOLOAD:=$(call AutoProbe,ftdi_sio)
359 $(call AddDepends/usb-serial)
360 endef
361
362 define KernelPackage/usb-serial-ftdi/description
363 Kernel support for FTDI USB-to-Serial converters
364 endef
365
366 $(eval $(call KernelPackage,usb-serial-ftdi))
367
368
369 define KernelPackage/usb-serial-ti-usb
370 TITLE:=Support for TI USB 3410/5052
371 KCONFIG:=CONFIG_USB_SERIAL_TI
372 FILES:=$(LINUX_DIR)/drivers/usb/serial/ti_usb_3410_5052.ko
373 AUTOLOAD:=$(call AutoProbe,ti_usb_3410_5052)
374 $(call AddDepends/usb-serial)
375 endef
376
377 define KernelPackage/usb-serial-ti-usb/description
378 Kernel support for TI USB 3410/5052 devices
379 endef
380
381 $(eval $(call KernelPackage,usb-serial-ti-usb))
382
383
384 define KernelPackage/usb-serial-ipw
385 TITLE:=Support for IPWireless 3G devices
386 KCONFIG:=CONFIG_USB_SERIAL_IPW
387 FILES:=$(LINUX_DIR)/drivers/usb/serial/ipw.ko
388 AUTOLOAD:=$(call AutoProbe,ipw)
389 $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
390 endef
391
392 $(eval $(call KernelPackage,usb-serial-ipw))
393
394
395 define KernelPackage/usb-serial-mct
396 TITLE:=Support for Magic Control Tech. devices
397 KCONFIG:=CONFIG_USB_SERIAL_MCT_U232
398 FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.ko
399 AUTOLOAD:=$(call AutoProbe,mct_u232)
400 $(call AddDepends/usb-serial)
401 endef
402
403 define KernelPackage/usb-serial-mct/description
404 Kernel support for Magic Control Technology USB-to-Serial converters
405 endef
406
407 $(eval $(call KernelPackage,usb-serial-mct))
408
409
410 define KernelPackage/usb-serial-mos7720
411 TITLE:=Support for Moschip MOS7720 devices
412 KCONFIG:=CONFIG_USB_SERIAL_MOS7720
413 FILES:=$(LINUX_DIR)/drivers/usb/serial/mos7720.ko
414 AUTOLOAD:=$(call AutoProbe,mos7720)
415 $(call AddDepends/usb-serial)
416 endef
417
418 define KernelPackage/usb-serial-mos7720/description
419 Kernel support for Moschip MOS7720 USB-to-Serial converters
420 endef
421
422 $(eval $(call KernelPackage,usb-serial-mos7720))
423
424
425 define KernelPackage/usb-serial-pl2303
426 TITLE:=Support for Prolific PL2303 devices
427 KCONFIG:=CONFIG_USB_SERIAL_PL2303
428 FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.ko
429 AUTOLOAD:=$(call AutoProbe,pl2303)
430 $(call AddDepends/usb-serial)
431 endef
432
433 define KernelPackage/usb-serial-pl2303/description
434 Kernel support for Prolific PL2303 USB-to-Serial converters
435 endef
436
437 $(eval $(call KernelPackage,usb-serial-pl2303))
438
439
440 define KernelPackage/usb-serial-cp210x
441 TITLE:=Support for Silicon Labs cp210x devices
442 KCONFIG:=CONFIG_USB_SERIAL_CP210X
443 FILES:=$(LINUX_DIR)/drivers/usb/serial/cp210x.ko
444 AUTOLOAD:=$(call AutoProbe,cp210x)
445 $(call AddDepends/usb-serial)
446 endef
447
448 define KernelPackage/usb-serial-cp210x/description
449 Kernel support for Silicon Labs cp210x USB-to-Serial converters
450 endef
451
452 $(eval $(call KernelPackage,usb-serial-cp210x))
453
454
455 define KernelPackage/usb-serial-ark3116
456 TITLE:=Support for ArkMicroChips ARK3116 devices
457 KCONFIG:=CONFIG_USB_SERIAL_ARK3116
458 FILES:=$(LINUX_DIR)/drivers/usb/serial/ark3116.ko
459 AUTOLOAD:=$(call AutoProbe,ark3116)
460 $(call AddDepends/usb-serial)
461 endef
462
463 define KernelPackage/usb-serial-ark3116/description
464 Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters
465 endef
466
467 $(eval $(call KernelPackage,usb-serial-ark3116))
468
469
470 define KernelPackage/usb-serial-oti6858
471 TITLE:=Support for Ours Technology OTI6858 devices
472 KCONFIG:=CONFIG_USB_SERIAL_OTI6858
473 FILES:=$(LINUX_DIR)/drivers/usb/serial/oti6858.ko
474 AUTOLOAD:=$(call AutoProbe,oti6858)
475 $(call AddDepends/usb-serial)
476 endef
477
478 define KernelPackage/usb-serial-oti6858/description
479 Kernel support for Ours Technology OTI6858 USB-to-Serial converters
480 endef
481
482 $(eval $(call KernelPackage,usb-serial-oti6858))
483
484
485 define KernelPackage/usb-serial-sierrawireless
486 TITLE:=Support for Sierra Wireless devices
487 KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS
488 FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.ko
489 AUTOLOAD:=$(call AutoProbe,sierra)
490 $(call AddDepends/usb-serial)
491 endef
492
493 define KernelPackage/usb-serial-sierrawireless/description
494 Kernel support for Sierra Wireless devices
495 endef
496
497 $(eval $(call KernelPackage,usb-serial-sierrawireless))
498
499
500 define KernelPackage/usb-serial-motorola-phone
501 TITLE:=Support for Motorola usb phone
502 KCONFIG:=CONFIG_USB_SERIAL_MOTOROLA
503 FILES:=$(LINUX_DIR)/drivers/usb/serial/moto_modem.ko
504 AUTOLOAD:=$(call AutoProbe,moto_modem)
505 $(call AddDepends/usb-serial)
506 endef
507
508 define KernelPackage/usb-serial-motorola-phone/description
509 Kernel support for Motorola usb phone
510 endef
511
512 $(eval $(call KernelPackage,usb-serial-motorola-phone))
513
514
515 define KernelPackage/usb-serial-visor
516 TITLE:=Support for Handspring Visor devices
517 KCONFIG:=CONFIG_USB_SERIAL_VISOR
518 FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.ko
519 AUTOLOAD:=$(call AutoProbe,visor)
520 $(call AddDepends/usb-serial)
521 endef
522
523 define KernelPackage/usb-serial-visor/description
524 Kernel support for Handspring Visor PDAs
525 endef
526
527 $(eval $(call KernelPackage,usb-serial-visor))
528
529
530 define KernelPackage/usb-serial-cypress-m8
531 TITLE:=Support for CypressM8 USB-Serial
532 KCONFIG:=CONFIG_USB_SERIAL_CYPRESS_M8
533 FILES:=$(LINUX_DIR)/drivers/usb/serial/cypress_m8.ko
534 AUTOLOAD:=$(call AutoProbe,cypress_m8)
535 $(call AddDepends/usb-serial)
536 endef
537
538 define KernelPackage/usb-serial-cypress-m8/description
539 Kernel support for devices with Cypress M8 USB to Serial chip
540 (for example, the Delorme Earthmate LT-20 GPS)
541 Supported microcontrollers in the CY4601 family are:
542 CY7C63741 CY7C63742 CY7C63743 CY7C64013
543 endef
544
545 $(eval $(call KernelPackage,usb-serial-cypress-m8))
546
547
548 define KernelPackage/usb-serial-keyspan
549 TITLE:=Support for Keyspan USB-to-Serial devices
550 KCONFIG:= \
551 CONFIG_USB_SERIAL_KEYSPAN \
552 CONFIG_USB_SERIAL_KEYSPAN_USA28 \
553 CONFIG_USB_SERIAL_KEYSPAN_USA28X \
554 CONFIG_USB_SERIAL_KEYSPAN_USA28XA \
555 CONFIG_USB_SERIAL_KEYSPAN_USA28XB \
556 CONFIG_USB_SERIAL_KEYSPAN_USA19 \
557 CONFIG_USB_SERIAL_KEYSPAN_USA18X \
558 CONFIG_USB_SERIAL_KEYSPAN_USA19W \
559 CONFIG_USB_SERIAL_KEYSPAN_USA19QW \
560 CONFIG_USB_SERIAL_KEYSPAN_USA19QI \
561 CONFIG_USB_SERIAL_KEYSPAN_MPR \
562 CONFIG_USB_SERIAL_KEYSPAN_USA49W \
563 CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
564 FILES:= \
565 $(LINUX_DIR)/drivers/usb/serial/keyspan.ko \
566 $(wildcard $(LINUX_DIR)/drivers/usb/misc/ezusb.ko)
567 AUTOLOAD:=$(call AutoProbe,ezusb keyspan)
568 $(call AddDepends/usb-serial)
569 endef
570
571 define KernelPackage/usb-serial-keyspan/description
572 Kernel support for Keyspan USB-to-Serial devices
573 endef
574
575 $(eval $(call KernelPackage,usb-serial-keyspan))
576
577
578 define KernelPackage/usb-serial-wwan
579 TITLE:=Support for GSM and CDMA modems
580 KCONFIG:=CONFIG_USB_SERIAL_WWAN
581 FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko
582 AUTOLOAD:=$(call AutoProbe,usb_wwan)
583 $(call AddDepends/usb-serial)
584 endef
585
586 define KernelPackage/usb-serial-wwan/description
587 Kernel support for USB GSM and CDMA modems
588 endef
589
590 $(eval $(call KernelPackage,usb-serial-wwan))
591
592
593 define KernelPackage/usb-serial-option
594 TITLE:=Support for Option HSDPA modems
595 DEPENDS:=+kmod-usb-serial-wwan
596 KCONFIG:=CONFIG_USB_SERIAL_OPTION
597 FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko
598 AUTOLOAD:=$(call AutoProbe,option)
599 $(call AddDepends/usb-serial)
600 endef
601
602 define KernelPackage/usb-serial-option/description
603 Kernel support for Option HSDPA modems
604 endef
605
606 $(eval $(call KernelPackage,usb-serial-option))
607
608
609 define KernelPackage/usb-serial-qualcomm
610 TITLE:=Support for Qualcomm USB serial
611 KCONFIG:=CONFIG_USB_SERIAL_QUALCOMM
612 FILES:=$(LINUX_DIR)/drivers/usb/serial/qcserial.ko
613 AUTOLOAD:=$(call AutoProbe,qcserial)
614 $(call AddDepends/usb-serial,+kmod-usb-serial-wwan)
615 endef
616
617 define KernelPackage/usb-serial-qualcomm/description
618 Kernel support for Qualcomm USB Serial devices (Gobi)
619 endef
620
621 $(eval $(call KernelPackage,usb-serial-qualcomm))
622
623
624 define KernelPackage/usb-storage
625 TITLE:=USB Storage support
626 DEPENDS:= +kmod-scsi-core
627 KCONFIG:=CONFIG_USB_STORAGE
628 FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
629 AUTOLOAD:=$(call AutoProbe,usb-storage,1)
630 $(call AddDepends/usb)
631 endef
632
633 define KernelPackage/usb-storage/description
634 Kernel support for USB Mass Storage devices
635 endef
636
637 $(eval $(call KernelPackage,usb-storage))
638
639
640 define KernelPackage/usb-storage-extras
641 SUBMENU:=$(USB_MENU)
642 TITLE:=Extra drivers for usb-storage
643 DEPENDS:=+kmod-usb-storage
644 KCONFIG:= \
645 CONFIG_USB_STORAGE_ALAUDA \
646 CONFIG_USB_STORAGE_CYPRESS_ATACB \
647 CONFIG_USB_STORAGE_DATAFAB \
648 CONFIG_USB_STORAGE_FREECOM \
649 CONFIG_USB_STORAGE_ISD200 \
650 CONFIG_USB_STORAGE_JUMPSHOT \
651 CONFIG_USB_STORAGE_KARMA \
652 CONFIG_USB_STORAGE_SDDR09 \
653 CONFIG_USB_STORAGE_SDDR55 \
654 CONFIG_USB_STORAGE_USBAT
655 FILES:= \
656 $(LINUX_DIR)/drivers/usb/storage/ums-alauda.ko \
657 $(LINUX_DIR)/drivers/usb/storage/ums-cypress.ko \
658 $(LINUX_DIR)/drivers/usb/storage/ums-datafab.ko \
659 $(LINUX_DIR)/drivers/usb/storage/ums-freecom.ko \
660 $(LINUX_DIR)/drivers/usb/storage/ums-isd200.ko \
661 $(LINUX_DIR)/drivers/usb/storage/ums-jumpshot.ko \
662 $(LINUX_DIR)/drivers/usb/storage/ums-karma.ko \
663 $(LINUX_DIR)/drivers/usb/storage/ums-sddr09.ko \
664 $(LINUX_DIR)/drivers/usb/storage/ums-sddr55.ko \
665 $(LINUX_DIR)/drivers/usb/storage/ums-usbat.ko
666 AUTOLOAD:=$(call AutoProbe,ums-alauda ums-cypress ums-datafab \
667 ums-freecom ums-isd200 ums-jumpshot \
668 ums-karma ums-sddr09 ums-sddr55 ums-usbat)
669 endef
670
671 define KernelPackage/usb-storage-extras/description
672 Say Y here if you want to have some more drivers,
673 such as for SmartMedia card readers
674 endef
675
676 $(eval $(call KernelPackage,usb-storage-extras))
677
678
679 define KernelPackage/usb-atm
680 TITLE:=Support for ATM on USB bus
681 DEPENDS:=+kmod-atm
682 KCONFIG:=CONFIG_USB_ATM
683 FILES:=$(LINUX_DIR)/drivers/usb/atm/usbatm.ko
684 AUTOLOAD:=$(call AutoProbe,usbatm)
685 $(call AddDepends/usb)
686 endef
687
688 define KernelPackage/usb-atm/description
689 Kernel support for USB DSL modems
690 endef
691
692 $(eval $(call KernelPackage,usb-atm))
693
694
695 define AddDepends/usb-atm
696 SUBMENU:=$(USB_MENU)
697 DEPENDS+=kmod-usb-atm $(1)
698 endef
699
700
701 define KernelPackage/usb-atm-speedtouch
702 TITLE:=SpeedTouch USB ADSL modems support
703 KCONFIG:=CONFIG_USB_SPEEDTOUCH
704 FILES:=$(LINUX_DIR)/drivers/usb/atm/speedtch.ko
705 AUTOLOAD:=$(call AutoProbe,speedtch)
706 $(call AddDepends/usb-atm)
707 endef
708
709 define KernelPackage/usb-atm-speedtouch/description
710 Kernel support for SpeedTouch USB ADSL modems
711 endef
712
713 $(eval $(call KernelPackage,usb-atm-speedtouch))
714
715
716 define KernelPackage/usb-atm-ueagle
717 TITLE:=Eagle 8051 based USB ADSL modems support
718 FILES:=$(LINUX_DIR)/drivers/usb/atm/ueagle-atm.ko
719 KCONFIG:=CONFIG_USB_UEAGLEATM
720 AUTOLOAD:=$(call AutoProbe,ueagle-atm)
721 $(call AddDepends/usb-atm)
722 endef
723
724 define KernelPackage/usb-atm-ueagle/description
725 Kernel support for Eagle 8051 based USB ADSL modems
726 endef
727
728 $(eval $(call KernelPackage,usb-atm-ueagle))
729
730
731 define KernelPackage/usb-atm-cxacru
732 TITLE:=cxacru
733 FILES:=$(LINUX_DIR)/drivers/usb/atm/cxacru.ko
734 KCONFIG:=CONFIG_USB_CXACRU
735 AUTOLOAD:=$(call AutoProbe,cxacru)
736 $(call AddDepends/usb-atm)
737 endef
738
739 define KernelPackage/usb-atm-cxacru/description
740 Kernel support for cxacru based USB ADSL modems
741 endef
742
743 $(eval $(call KernelPackage,usb-atm-cxacru))
744
745
746 define KernelPackage/usb-net
747 TITLE:=Kernel modules for USB-to-Ethernet convertors
748 KCONFIG:=CONFIG_USB_USBNET CONFIG_MII=y
749 AUTOLOAD:=$(call AutoProbe,usbnet)
750 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,3.12.0)),1)
751 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko
752 else
753 FILES:=\
754 $(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko \
755 $(LINUX_DIR)/drivers/net/mii.ko
756 endif
757 $(call AddDepends/usb)
758 endef
759
760 define KernelPackage/usb-net/description
761 Kernel modules for USB-to-Ethernet convertors
762 endef
763
764 $(eval $(call KernelPackage,usb-net))
765
766
767 define AddDepends/usb-net
768 SUBMENU:=$(USB_MENU)
769 DEPENDS+=kmod-usb-net $(1)
770 endef
771
772
773 define KernelPackage/usb-net-asix
774 TITLE:=Kernel module for USB-to-Ethernet Asix convertors
775 DEPENDS:=+!LINUX_3_3:kmod-libphy
776 KCONFIG:=CONFIG_USB_NET_AX8817X
777 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
778 AUTOLOAD:=$(call AutoProbe,asix)
779 $(call AddDepends/usb-net)
780 endef
781
782 define KernelPackage/usb-net-asix/description
783 Kernel module for USB-to-Ethernet Asix convertors
784 endef
785
786 $(eval $(call KernelPackage,usb-net-asix))
787
788
789 define KernelPackage/usb-net-hso
790 TITLE:=Kernel module for Option USB High Speed Mobile Devices
791 KCONFIG:=CONFIG_USB_HSO
792 FILES:= \
793 $(LINUX_DIR)/drivers/$(USBNET_DIR)/hso.ko
794 AUTOLOAD:=$(call AutoProbe,hso)
795 $(call AddDepends/usb-net)
796 $(call AddDepends/rfkill)
797 endef
798
799 define KernelPackage/usb-net-hso/description
800 Kernel module for Option USB High Speed Mobile Devices
801 endef
802
803 $(eval $(call KernelPackage,usb-net-hso))
804
805
806 define KernelPackage/usb-net-kaweth
807 TITLE:=Kernel module for USB-to-Ethernet Kaweth convertors
808 KCONFIG:=CONFIG_USB_KAWETH
809 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/kaweth.ko
810 AUTOLOAD:=$(call AutoProbe,kaweth)
811 $(call AddDepends/usb-net)
812 endef
813
814 define KernelPackage/usb-net-kaweth/description
815 Kernel module for USB-to-Ethernet Kaweth convertors
816 endef
817
818 $(eval $(call KernelPackage,usb-net-kaweth))
819
820
821 define KernelPackage/usb-net-pegasus
822 TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
823 KCONFIG:=CONFIG_USB_PEGASUS
824 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/pegasus.ko
825 AUTOLOAD:=$(call AutoProbe,pegasus)
826 $(call AddDepends/usb-net)
827 endef
828
829 define KernelPackage/usb-net-pegasus/description
830 Kernel module for USB-to-Ethernet Pegasus convertors
831 endef
832
833 $(eval $(call KernelPackage,usb-net-pegasus))
834
835
836 define KernelPackage/usb-net-mcs7830
837 TITLE:=Kernel module for USB-to-Ethernet MCS7830 convertors
838 KCONFIG:=CONFIG_USB_NET_MCS7830
839 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/mcs7830.ko
840 AUTOLOAD:=$(call AutoProbe,mcs7830)
841 $(call AddDepends/usb-net)
842 endef
843
844 define KernelPackage/usb-net-mcs7830/description
845 Kernel module for USB-to-Ethernet MCS7830 convertors
846 endef
847
848 $(eval $(call KernelPackage,usb-net-mcs7830))
849
850
851 define KernelPackage/usb-net-dm9601-ether
852 TITLE:=Support for DM9601 ethernet connections
853 KCONFIG:=CONFIG_USB_NET_DM9601
854 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/dm9601.ko
855 AUTOLOAD:=$(call AutoProbe,dm9601)
856 $(call AddDepends/usb-net)
857 endef
858
859 define KernelPackage/usb-net-dm9601-ether/description
860 Kernel support for USB DM9601 devices
861 endef
862
863 $(eval $(call KernelPackage,usb-net-dm9601-ether))
864
865 define KernelPackage/usb-net-cdc-ether
866 TITLE:=Support for cdc ethernet connections
867 KCONFIG:=CONFIG_USB_NET_CDCETHER
868 FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ether.ko
869 AUTOLOAD:=$(call AutoProbe,cdc_ether)
870 $(call AddDepends/usb-net)
871 endef
872
873 define KernelPackage/usb-net-cdc-ether/description
874 Kernel support for USB CDC Ethernet devices
875 endef
876
877 $(eval $(call KernelPackage,usb-net-cdc-ether))
878
879
880 define KernelPackage/usb-net-qmi-wwan
881 TITLE:=QMI WWAN driver
882 KCONFIG:=CONFIG_USB_NET_QMI_WWAN
883 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko
884 AUTOLOAD:=$(call AutoProbe,qmi_wwan)
885 $(call AddDepends/usb-net,+kmod-usb-wdm)
886 endef
887
888 define KernelPackage/usb-net-qmi-wwan/description
889 QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
890 endef
891
892 $(eval $(call KernelPackage,usb-net-qmi-wwan))
893
894
895 define KernelPackage/usb-net-rndis
896 TITLE:=Support for RNDIS connections
897 KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
898 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/rndis_host.ko
899 AUTOLOAD:=$(call AutoProbe,rndis_host)
900 $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
901 endef
902
903 define KernelPackage/usb-net-rndis/description
904 Kernel support for RNDIS connections
905 endef
906
907 $(eval $(call KernelPackage,usb-net-rndis))
908
909
910 define KernelPackage/usb-net-cdc-mbim
911 SUBMENU:=$(USB_MENU)
912 TITLE:=Kernel module for MBIM Devices
913 KCONFIG:=CONFIG_USB_NET_CDC_MBIM
914 FILES:= \
915 $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_mbim.ko
916 AUTOLOAD:=$(call AutoProbe,cdc_mbim)
917 $(call AddDepends/usb-net,+kmod-usb-wdm +kmod-usb-net-cdc-ncm)
918 endef
919
920 define KernelPackage/usb-net-cdc-mbim/description
921 Kernel module for Option USB High Speed Mobile Devices
922 endef
923
924 $(eval $(call KernelPackage,usb-net-cdc-mbim))
925
926
927 define KernelPackage/usb-net-cdc-ncm
928 TITLE:=Support for CDC NCM connections
929 KCONFIG:=CONFIG_USB_NET_CDC_NCM
930 FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
931 AUTOLOAD:=$(call AutoProbe,cdc_ncm)
932 $(call AddDepends/usb-net)
933 endef
934
935 define KernelPackage/usb-net-cdc-ncm/description
936 Kernel support for CDC NCM connections
937 endef
938
939 $(eval $(call KernelPackage,usb-net-cdc-ncm))
940
941
942 define KernelPackage/usb-net-sierrawireless
943 TITLE:=Support for Sierra Wireless devices
944 KCONFIG:=CONFIG_USB_SIERRA_NET
945 FILES:=$(LINUX_DIR)/drivers/net/usb/sierra_net.ko
946 AUTOLOAD:=$(call AutoProbe,sierra_net)
947 $(call AddDepends/usb-net)
948 endef
949
950 define KernelPackage/usb-net-sierrawireless/description
951 Kernel support for Sierra Wireless devices
952 endef
953
954 $(eval $(call KernelPackage,usb-net-sierrawireless))
955
956
957 define KernelPackage/usb-net-ipheth
958 TITLE:=Apple iPhone USB Ethernet driver
959 KCONFIG:=CONFIG_USB_IPHETH
960 FILES:=$(LINUX_DIR)/drivers/net/usb/ipheth.ko
961 AUTOLOAD:=$(call AutoProbe,ipheth)
962 $(call AddDepends/usb-net)
963 endef
964
965 define KernelPackage/usb-net-ipheth/description
966 Kernel support for Apple iPhone USB Ethernet driver
967 endef
968
969 $(eval $(call KernelPackage,usb-net-ipheth))
970
971
972 define KernelPackage/usb-hid
973 TITLE:=Support for USB Human Input Devices
974 KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y
975 FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
976 AUTOLOAD:=$(call AutoProbe,usbhid)
977 $(call AddDepends/usb)
978 $(call AddDepends/hid)
979 $(call AddDepends/input,+kmod-input-evdev)
980 endef
981
982 define KernelPackage/usb-hid/description
983 Kernel support for USB HID devices such as keyboards and mice
984 endef
985
986 $(eval $(call KernelPackage,usb-hid))
987
988
989 define KernelPackage/usb-yealink
990 TITLE:=USB Yealink VOIP phone
991 KCONFIG:=CONFIG_USB_YEALINK CONFIG_INPUT_YEALINK CONFIG_INPUT=m CONFIG_INPUT_MISC=y
992 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/yealink.ko
993 AUTOLOAD:=$(call AutoProbe,yealink)
994 $(call AddDepends/usb)
995 $(call AddDepends/input,+kmod-input-evdev)
996 endef
997
998 define KernelPackage/usb-yealink/description
999 Kernel support for Yealink VOIP phone
1000 endef
1001
1002 $(eval $(call KernelPackage,usb-yealink))
1003
1004
1005 define KernelPackage/usb-cm109
1006 TITLE:=Support for CM109 device
1007 KCONFIG:=CONFIG_USB_CM109 CONFIG_INPUT_CM109 CONFIG_INPUT=m CONFIG_INPUT_MISC=y
1008 FILES:=$(LINUX_DIR)/drivers/$(USBINPUT_DIR)/cm109.ko
1009 AUTOLOAD:=$(call AutoProbe,cm109)
1010 $(call AddDepends/usb)
1011 $(call AddDepends/input,+kmod-input-evdev)
1012 endef
1013
1014 define KernelPackage/usb-cm109/description
1015 Kernel support for CM109 VOIP phone
1016 endef
1017
1018 $(eval $(call KernelPackage,usb-cm109))
1019
1020
1021 define KernelPackage/usb-test
1022 TITLE:=USB Testing Driver
1023 DEPENDS:=@DEVEL
1024 KCONFIG:=CONFIG_USB_TEST
1025 FILES:=$(LINUX_DIR)/drivers/usb/misc/usbtest.ko
1026 $(call AddDepends/usb)
1027 endef
1028
1029 define KernelPackage/usb-test/description
1030 Kernel support for testing USB Host Controller software
1031 endef
1032
1033 $(eval $(call KernelPackage,usb-test))
1034
1035
1036 define KernelPackage/usbip
1037 TITLE := USB-over-IP kernel support
1038 KCONFIG:= \
1039 CONFIG_USBIP_CORE \
1040 CONFIG_USBIP_DEBUG=n
1041 FILES:=$(LINUX_DIR)/drivers/staging/usbip/usbip-core.ko
1042 AUTOLOAD:=$(call AutoProbe,usbip-core)
1043 $(call AddDepends/usb)
1044 endef
1045
1046 $(eval $(call KernelPackage,usbip))
1047
1048
1049 define KernelPackage/usbip-client
1050 TITLE := USB-over-IP client driver
1051 DEPENDS := +kmod-usbip
1052 KCONFIG := CONFIG_USBIP_VHCI_HCD
1053 FILES := $(LINUX_DIR)/drivers/staging/usbip/vhci-hcd.$(LINUX_KMOD_SUFFIX)
1054 AUTOLOAD := $(call AutoProbe,vhci-hcd)
1055 $(call AddDepends/usb)
1056 endef
1057
1058 $(eval $(call KernelPackage,usbip-client))
1059
1060
1061 define KernelPackage/usbip-server
1062 $(call KernelPackage/usbip/Default)
1063 TITLE := USB-over-IP host driver
1064 DEPENDS := +kmod-usbip
1065 KCONFIG := CONFIG_USBIP_HOST
1066 FILES := $(LINUX_DIR)/drivers/staging/usbip/usbip-host.ko
1067 AUTOLOAD := $(call AutoProbe,usbip-host)
1068 $(call AddDepends/usb)
1069 endef
1070
1071 $(eval $(call KernelPackage,usbip-server))
1072
1073
1074 define KernelPackage/usb-chipidea
1075 TITLE:=Support for ChipIdea controllers
1076 DEPENDS:=+kmod-usb2
1077 KCONFIG:=\
1078 CONFIG_USB_CHIPIDEA \
1079 CONFIG_USB_CHIPIDEA_HOST=y \
1080 CONFIG_USB_CHIPIDEA_UDC=n \
1081 CONFIG_USB_CHIPIDEA_DEBUG=y
1082 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,3.11.0)),1)
1083 FILES:=\
1084 $(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc.ko \
1085 $(if $(CONFIG_OF_DEVICE),$(LINUX_DIR)/drivers/usb/chipidea/ci13xxx_imx.ko) \
1086 $(if $(CONFIG_OF_DEVICE),$(LINUX_DIR)/drivers/usb/chipidea/usbmisc_imx$(if $(call kernel_patchver_le,3.9),6q).ko)
1087 AUTOLOAD:=$(call AutoLoad,51,ci_hdrc $(if $(CONFIG_OF_DEVICE),ci13xxx_imx usbmisc_imx$(if $(call kernel_patchver_le,3.9),6q)),1)
1088 else
1089 FILES:=\
1090 $(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc.ko \
1091 $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/usb/chipidea/ci_hdrc_imx.ko) \
1092 $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/usb/chipidea/usbmisc_imx.ko)
1093 AUTOLOAD:=$(call AutoLoad,51,ci_hdrc $(if $(CONFIG_OF),ci_hdrc_imx usbmisc_imx),1)
1094 endif
1095 $(call AddDepends/usb)
1096 endef
1097
1098 define KernelPackage/usb-chipidea/description
1099 Kernel support for USB ChipIdea controllers
1100 endef
1101
1102 $(eval $(call KernelPackage,usb-chipidea,1))
1103
1104
1105 define KernelPackage/usb-mxs-phy
1106 TITLE:=Support for Freescale MXS USB PHY
1107 DEPENDS:=@TARGET_imx6
1108 KCONFIG:=CONFIG_USB_MXS_PHY
1109 FILES:=\
1110 $(LINUX_DIR)/drivers/usb/phy/phy-mxs-usb.ko
1111 AUTOLOAD:=$(call AutoLoad,52,phy-mxs-usb,1)
1112 $(call AddDepends/usb)
1113 endef
1114
1115 define KernelPackage/usb-mxs-phy/description
1116 Kernel support for Freescale MXS USB PHY
1117 endef
1118
1119 $(eval $(call KernelPackage,usb-mxs-phy,1))
1120
1121
1122 define KernelPackage/usbmon
1123 TITLE:=USB traffic monitor
1124 KCONFIG:=CONFIG_USB_MON
1125 $(call AddDepends/usb)
1126 FILES:=$(LINUX_DIR)/drivers/usb/mon/usbmon.ko
1127 AUTOLOAD:=$(call AutoProbe,usbmon)
1128 endef
1129
1130 define KernelPackage/usbmon/description
1131 Kernel support for USB traffic monitoring
1132 endef
1133
1134 $(eval $(call KernelPackage,usbmon))