* [Buildroot] [PATCH v2] package/qemu: enable usb passthrough on host variant
@ 2019-10-25 5:35 Angelo Compagnucci
2019-10-25 8:39 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Angelo Compagnucci @ 2019-10-25 5:35 UTC (permalink / raw)
To: buildroot
Usb passthrough is a useful feature while using qemu for debugging
purpose.
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
package/qemu/Config.in.host | 5 +++++
package/qemu/qemu.mk | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host
index 9eceba5021..e74bbafc26 100644
--- a/package/qemu/Config.in.host
+++ b/package/qemu/Config.in.host
@@ -83,4 +83,9 @@ config BR2_PACKAGE_HOST_QEMU_VIRTFS
Enables support for virtual filesystem in Qemu allowing
shared filesystem between Qemu and its emulated target.
+config BR2_PACKAGE_HOST_QEMU_USB
+ bool "USB passthrough support"
+ help
+ Enables usb passthrough from guest to host.
+
endif
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 1d3759a850..7e2faf8a54 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_HOST_QEMU_USB),y)
+HOST_QEMU_OPTS += --enable-libusb
+HOST_QEMU_DEPENDENCIES += host-libusb
+endif
+
# Override CPP, as it expects to be able to call it like it'd
# call the compiler.
define HOST_QEMU_CONFIGURE_CMDS
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2] package/qemu: enable usb passthrough on host variant
2019-10-25 5:35 [Buildroot] [PATCH v2] package/qemu: enable usb passthrough on host variant Angelo Compagnucci
@ 2019-10-25 8:39 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2019-10-25 8:39 UTC (permalink / raw)
To: buildroot
>>>>> "Angelo" == Angelo Compagnucci <angelo.compagnucci@gmail.com> writes:
> Usb passthrough is a useful feature while using qemu for debugging
> purpose.
It is now an option, so the commit message no longer fitted. I've
updated that.
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> package/qemu/Config.in.host | 5 +++++
> package/qemu/qemu.mk | 5 +++++
> 2 files changed, 10 insertions(+)
> diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host
> index 9eceba5021..e74bbafc26 100644
> --- a/package/qemu/Config.in.host
> +++ b/package/qemu/Config.in.host
> @@ -83,4 +83,9 @@ config BR2_PACKAGE_HOST_QEMU_VIRTFS
> Enables support for virtual filesystem in Qemu allowing
> shared filesystem between Qemu and its emulated target.
> +config BR2_PACKAGE_HOST_QEMU_USB
> + bool "USB passthrough support"
> + help
> + Enables usb passthrough from guest to host.
USB in an abbreviation, so in capitals.
> +
> endif
> diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
> index 1d3759a850..7e2faf8a54 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_HOST_QEMU_USB),y)
> +HOST_QEMU_OPTS += --enable-libusb
> +HOST_QEMU_DEPENDENCIES += host-libusb
> +endif
You forgot to pass --disable-libusb in the else clause.
Committed with these fixes, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-25 8:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-25 5:35 [Buildroot] [PATCH v2] package/qemu: enable usb passthrough on host variant Angelo Compagnucci
2019-10-25 8:39 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.