diff mbox series

[v1,3/3] package/qemu: add usb-redir support

Message ID 20200629205002.8087-3-jared.bents@rockwellcollins.com
State New
Headers show
Series [v1,1/3] package/qemu: add spice support | expand

Commit Message

Jared Bents June 29, 2020, 8:50 p.m. UTC
update to add usb-redir support to qemu if usbredir is enabled

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
---
 package/qemu/qemu.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Romain Naour July 7, 2020, 1:37 p.m. UTC | #1
Le 29/06/2020 à 22:50, Jared Bents a écrit :
> update to add usb-redir support to qemu if usbredir is enabled
> 
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>

Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain

> ---
>  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 520547e94e..3ed5565221 100644
> --- a/package/qemu/qemu.mk
> +++ b/package/qemu/qemu.mk
> @@ -126,6 +126,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
> @@ -158,7 +165,6 @@ define QEMU_CONFIGURE_CMDS
>  			--disable-docs \
>  			--disable-rbd \
>  			--disable-libiscsi \
> -			--disable-usb-redir \
>  			--disable-strip \
>  			--disable-sparse \
>  			--disable-mpath \
>
diff mbox series

Patch

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 520547e94e..3ed5565221 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -126,6 +126,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
@@ -158,7 +165,6 @@  define QEMU_CONFIGURE_CMDS
 			--disable-docs \
 			--disable-rbd \
 			--disable-libiscsi \
-			--disable-usb-redir \
 			--disable-strip \
 			--disable-sparse \
 			--disable-mpath \