[Buildroot] [PATCH] package/qemu: enable usb passthrough on host variant
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Oct 24 20:36:39 UTC 2019
On Thu, 24 Oct 2019 22:28:20 +0200
Angelo Compagnucci <angelo.compagnucci at gmail.com> wrote:
> Usb passthrough is a useful feature while using qemu for debugging
> purpose.
>
> Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
> ---
> package/qemu/qemu.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
> index 1d3759a850..4cf1c60030 100644
> --- a/package/qemu/qemu.mk
> +++ b/package/qemu/qemu.mk
> @@ -264,6 +264,11 @@ else
> HOST_QEMU_OPTS += --disable-virtfs
> endif
>
> +ifeq ($(BR2_PACKAGE_LIBUSB),y)
So, if the target libusb package is enabled...
> +HOST_QEMU_OPTS += --enable-libusb
> +HOST_QEMU_DEPENDENCIES += host-libusb
... you assume the user wants libusb support in host-qemu.
Sorry, but this is not good. Add an option in
package/qemu/Config.in.host to enable USB passthrough, and use that in
qemu.mk.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list