package/qemu: add optional vnc support
authorJared Bents <jared.bents@rockwellcollins.com>
Tue, 14 Jul 2020 16:57:49 +0000 (11:57 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Jul 2020 20:18:58 +0000 (22:18 +0200)
Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qemu/qemu.mk

index c013e6ffa015c62dceccad0c359ca09c664aed4c..a68f37542c0d32d52060ee7ba7a7776c17b8cb42 100644 (file)
@@ -98,6 +98,27 @@ else
 QEMU_OPTS += --disable-libusb
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVNCSERVER),y)
+QEMU_OPTS += \
+       --enable-vnc \
+       --disable-vnc-sasl
+QEMU_DEPENDENCIES += libvncserver
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+QEMU_OPTS += --enable-vnc-png
+QEMU_DEPENDENCIES += libpng
+else
+QEMU_OPTS += --disable-vnc-png
+endif
+ifeq ($(BR2_PACKAGE_JPEG),y)
+QEMU_OPTS += --enable-vnc-jpeg
+QEMU_DEPENDENCIES += jpeg
+else
+QEMU_OPTS += --disable-vnc-jpeg
+endif
+else
+QEMU_OPTS += --disable-vnc
+endif
+
 ifeq ($(BR2_PACKAGE_NETTLE),y)
 QEMU_OPTS += --enable-nettle
 QEMU_DEPENDENCIES += nettle
@@ -140,7 +161,6 @@ define QEMU_CONFIGURE_CMDS
                        --disable-bsd-user \
                        --disable-containers \
                        --disable-xen \
-                       --disable-vnc \
                        --disable-virtfs \
                        --disable-brlapi \
                        --disable-curses \