From: Carlos Santos Date: Fri, 25 Oct 2019 18:28:52 +0000 (-0300) Subject: package/qemu: use libusb (for usb passthrough) if it's selected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29f26fd6f4fe7421f847ff278eed79f9b1af3942;p=buildroot.git 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 --- 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