qemu

Форк
0
/
meson.build 
94 строки · 3.9 Кб
1
hw_usb_modules = {}
2

3
# usb subsystem core
4
system_ss.add(when: 'CONFIG_USB', if_true: files(
5
  'bus.c',
6
  'combined-packet.c',
7
  'core.c',
8
  'desc.c',
9
  'desc-msos.c',
10
  'libhw.c',
11
  'pcap.c',
12
), if_false: files('bus-stub.c'))
13

14
# usb host adapters
15
system_ss.add(when: 'CONFIG_USB_UHCI', if_true: files('hcd-uhci.c'))
16
system_ss.add(when: 'CONFIG_USB_OHCI', if_true: files('hcd-ohci.c'))
17
system_ss.add(when: 'CONFIG_USB_OHCI_PCI', if_true: files('hcd-ohci-pci.c'))
18
system_ss.add(when: 'CONFIG_USB_OHCI_SYSBUS', if_true: files('hcd-ohci-sysbus.c'))
19
system_ss.add(when: 'CONFIG_USB_EHCI', if_true: files('hcd-ehci.c'))
20
system_ss.add(when: 'CONFIG_USB_EHCI_PCI', if_true: files('hcd-ehci-pci.c'))
21
system_ss.add(when: 'CONFIG_USB_EHCI_SYSBUS', if_true: files('hcd-ehci-sysbus.c'))
22
system_ss.add(when: 'CONFIG_USB_XHCI', if_true: files('hcd-xhci.c'))
23
system_ss.add(when: 'CONFIG_USB_XHCI_PCI', if_true: files('hcd-xhci-pci.c'))
24
system_ss.add(when: 'CONFIG_USB_XHCI_SYSBUS', if_true: files('hcd-xhci-sysbus.c'))
25
system_ss.add(when: 'CONFIG_USB_XHCI_NEC', if_true: files('hcd-xhci-nec.c'))
26
system_ss.add(when: 'CONFIG_USB_MUSB', if_true: files('hcd-musb.c'))
27
system_ss.add(when: 'CONFIG_USB_DWC2', if_true: files('hcd-dwc2.c'))
28
system_ss.add(when: 'CONFIG_USB_DWC3', if_true: files('hcd-dwc3.c'))
29

30
system_ss.add(when: 'CONFIG_TUSB6010', if_true: files('tusb6010.c'))
31
system_ss.add(when: 'CONFIG_IMX', if_true: files('chipidea.c'))
32
system_ss.add(when: 'CONFIG_IMX_USBPHY', if_true: files('imx-usb-phy.c'))
33
system_ss.add(when: 'CONFIG_VT82C686', if_true: files('vt82c686-uhci-pci.c'))
34
system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-usb2-ctrl-regs.c'))
35
system_ss.add(when: 'CONFIG_XLNX_USB_SUBSYS', if_true: files('xlnx-usb-subsystem.c'))
36

37
# emulated usb devices
38
system_ss.add(when: 'CONFIG_USB_HUB', if_true: files('dev-hub.c'))
39
system_ss.add(when: 'CONFIG_USB_HID', if_true: files('dev-hid.c'))
40
system_ss.add(when: 'CONFIG_USB_TABLET_WACOM', if_true: files('dev-wacom.c'))
41
system_ss.add(when: 'CONFIG_USB_STORAGE_CORE', if_true: files('dev-storage.c'))
42
system_ss.add(when: 'CONFIG_USB_STORAGE_BOT', if_true: files('dev-storage-bot.c'))
43
system_ss.add(when: 'CONFIG_USB_STORAGE_CLASSIC', if_true: files('dev-storage-classic.c'))
44
system_ss.add(when: 'CONFIG_USB_STORAGE_UAS', if_true: files('dev-uas.c'))
45
system_ss.add(when: 'CONFIG_USB_AUDIO', if_true: files('dev-audio.c'))
46
system_ss.add(when: 'CONFIG_USB_SERIAL', if_true: files('dev-serial.c'))
47
system_ss.add(when: 'CONFIG_USB_NETWORK', if_true: files('dev-network.c'))
48
if host_os != 'windows'
49
  system_ss.add(when: 'CONFIG_USB_STORAGE_MTP', if_true: files('dev-mtp.c'))
50
endif
51

52
# smartcard
53
system_ss.add(when: 'CONFIG_USB_SMARTCARD', if_true: files('dev-smartcard-reader.c'))
54

55
if cacard.found()
56
  usbsmartcard_ss = ss.source_set()
57
  usbsmartcard_ss.add(when: 'CONFIG_USB_SMARTCARD',
58
                      if_true: [cacard, files('ccid-card-emulated.c', 'ccid-card-passthru.c')])
59
  hw_usb_modules += {'smartcard': usbsmartcard_ss}
60
endif
61

62
# U2F
63
system_ss.add(when: 'CONFIG_USB_U2F', if_true: files('u2f.c'))
64
if host_os == 'linux'
65
  system_ss.add(when: 'CONFIG_USB_U2F', if_true: [libudev, files('u2f-passthru.c')])
66
endif
67
if u2f.found()
68
  system_ss.add(when: 'CONFIG_USB_U2F', if_true: [u2f, files('u2f-emulated.c')])
69
endif
70

71
# CanoKey
72
if canokey.found()
73
  system_ss.add(when: 'CONFIG_USB_CANOKEY', if_true: [canokey, files('canokey.c')])
74
endif
75

76
# usb redirect
77
if usbredir.found()
78
  usbredir_ss = ss.source_set()
79
  usbredir_ss.add(when: 'CONFIG_USB',
80
                  if_true: [usbredir, files('redirect.c', 'quirks.c')])
81
  hw_usb_modules += {'redirect': usbredir_ss}
82
endif
83

84
# usb pass-through
85
if libusb.found()
86
  usbhost_ss = ss.source_set()
87
  usbhost_ss.add(when: ['CONFIG_USB', libusb],
88
                 if_true: files('host-libusb.c'))
89
  hw_usb_modules += {'host': usbhost_ss}
90
endif
91

92
system_ss.add(when: ['CONFIG_USB', 'CONFIG_XEN_BUS', libusb], if_true: files('xen-usb.c'))
93

94
modules += { 'hw-usb': hw_usb_modules }
95

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.