From 29f26fd6f4fe7421f847ff278eed79f9b1af3942 Mon Sep 17 00:00:00 2001 From: Carlos Santos Date: Fri, 25 Oct 2019 15:28:52 -0300 Subject: [PATCH] package/qemu: use libusb (for usb passthrough) if it's selected This allows sharing a host USB port with the guest, which is helpful for the upcoming libvirt package. Signed-off-by: Carlos Santos Signed-off-by: Peter Korsgaard --- package/qemu/qemu.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 3c8b0f43d8..4e39fce8a6 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -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 -- 2.30.2