[Buildroot] [PATCH v2 2/2] package/qemu: add usb-redir support

Jared Bents jared.bents at rockwellcollins.com
Tue Jul 14 16:57:50 UTC 2020


update to add usb-redir support to qemu if usbredir is enabled

Signed-off-by: Jared Bents <jared.bents at rockwellcollins.com>
--
v1->v2: N/A. Update in v2 was to handle suboptions for vnc support.
        No change for usb-redir support.
---
 package/qemu/qemu.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index ff234622f4..d08dcdc057 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -141,6 +141,13 @@ else
 QEMU_OPTS += --disable-spice
 endif
 
+ifeq ($(BR2_PACKAGE_USBREDIR),y)
+QEMU_OPTS += --enable-usb-redir
+QEMU_DEPENDENCIES += usbredir
+else
+QEMU_OPTS += --disable-usb-redir
+endif
+
 # Override CPP, as it expects to be able to call it like it'd
 # call the compiler.
 define QEMU_CONFIGURE_CMDS
@@ -173,7 +180,6 @@ define QEMU_CONFIGURE_CMDS
 			--disable-docs \
 			--disable-rbd \
 			--disable-libiscsi \
-			--disable-usb-redir \
 			--disable-strip \
 			--disable-sparse \
 			--disable-mpath \
-- 
2.17.1



More information about the buildroot mailing list