Skip to contentSkip to conversation

usb: fix usb-host dependency check

PATCH In review Gerd Hoffmann 3 participants 3 messages Jul 21, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: fix usb-host dependency check

Fixes 627302afb2f8 ("usb: build usb-host as module")
---
 hw/usb/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/meson.build +1 -1
index 3ca61279374d..de853d780dd8 100644
@@ -72,7 +72,7 @@ if usbredir.found()
 endif
 
 # usb pass-through
-if config_host.has_key('CONFIG_USB_LIBUSB')
+if libusb.found()
   usbhost_ss = ss.source_set()
   usbhost_ss.add(when: ['CONFIG_USB', libusb],
                  if_true: files('host-libusb.c'))
Signature · 1 line
2.31.1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 13 lines · Gerd Hoffmann
Fixes 627302afb2f8 ("usb: build usb-host as module")
---
  hw/usb/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/meson.build +0 -0
index 3ca61279374d..de853d780dd8 100644

hw/usb/meson.build if usbredir.found() · line 78

Quoted 8 lines
hw/usb/meson.build +1 -1
@@ -72,7 +72,7 @@ if usbredir.found()
  endif
 
  # usb pass-through
-if config_host.has_key('CONFIG_USB_LIBUSB')
+if libusb.found()
    usbhost_ss = ss.source_set()
    usbhost_ss.add(when: ['CONFIG_USB', libusb],
                   if_true: files('host-libusb.c'))

Actually

Fixes 90540f3289 ("configure, meson: convert libusb detection to meson", 2021-06-25)

Sorry about that.

Paolo