Skip to contentSkip to conversation

package/qemu: use libusb (for usb passthrough) if it's selected

PATCH New unixmania at gmail.com 2 participants 2 messages Oct 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qemu: use libusb (for usb passthrough) if it's selected

From: Carlos Santos <[email protected]>

This allows sharing a host USB port with the guest, which is helpful for the upcoming libvirt package.

---
 package/qemu/qemu.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/qemu/qemu.mk +7 -0
index 3c8b0f43d8..4e39fce8a6 100644
@@ -97,6 +97,13 @@ else
 QEMU_OPTS += --disable-libssh2
 endif
 
+ifeq ($(BR2_PACKAGE_LIBUSB),y)
+QEMU_OPTS += --enable-libusb
+QEMU_DEPENDENCIES += libusb
+else
+QEMU_OPTS += --disable-libusb
+endif
+
 ifeq ($(BR2_PACKAGE_NETTLE),y)
 QEMU_OPTS += --enable-nettle
 QEMU_DEPENDENCIES += nettle
Signature · 1 line
2.18.1
#1 lore raw

PATCH 1/1 package/qemu: use libusb (for usb passthrough) if it's selected

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"unixmania" == unixmania <[email protected]> writes:

From: Carlos Santos <[email protected]>
This allows sharing a host USB port with the guest, which is helpful for the upcoming libvirt package.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard