package/connman: add option to enable wireguard support
authorJames Hilliard <james.hilliard1@gmail.com>
Sun, 8 Mar 2020 07:07:41 +0000 (00:07 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 26 Mar 2020 20:17:45 +0000 (21:17 +0100)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/connman/Config.in
package/connman/connman.mk

index 48a2ee421c6c3da25758565e9241c8021f4afeba..614b826f96bfaef3bedbd4920f198e82a34d6004 100644 (file)
@@ -52,6 +52,10 @@ config BR2_PACKAGE_CONNMAN_WIFI
          setup). ConnMan detects the start of wpa_supplicant
          automatically.
 
+config BR2_PACKAGE_CONNMAN_WIREGUARD
+       bool "enable wireguard support"
+       select BR2_PACKAGE_LIBMNL
+
 config BR2_PACKAGE_CONNMAN_WISPR
        bool "enable WISPr support"
        depends on !BR2_STATIC_LIBS # gnutls
index 1ebfe9cf14f6110b8fbd1c2712ea9a02e363b17e..23e7cb7797554e241b4581a799cf7aba22c212b2 100644 (file)
@@ -70,6 +70,13 @@ else
 CONNMAN_CONF_OPTS += --disable-wifi
 endif
 
+ifeq ($(BR2_PACKAGE_CONNMAN_WIREGUARD),y)
+CONNMAN_CONF_OPTS += --enable-wireguard
+CONNMAN_DEPENDENCIES += libmnl
+else
+CONNMAN_CONF_OPTS += --disable-wireguard
+endif
+
 ifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
 CONNMAN_CONF_OPTS += --enable-wispr
 CONNMAN_DEPENDENCIES += gnutls