aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar James Hilliard <james.hilliard1@gmail.com>2020-03-08 00:07:41 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-03-26 21:17:45 +0100
commit2cb778612565e8395c8814a047fc58cc5d746722 (patch)
treef15af5c4387a3e9cc4824f2bd741fdc38c969424
parent76defe49ac278a74f05e00c70be0921eeab9d277 (diff)
downloadbuildroot-2cb778612565e8395c8814a047fc58cc5d746722.tar.gz
buildroot-2cb778612565e8395c8814a047fc58cc5d746722.tar.bz2
package/connman: add option to enable wireguard support
Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/connman/Config.in4
-rw-r--r--package/connman/connman.mk7
2 files changed, 11 insertions, 0 deletions
diff --git a/package/connman/Config.in b/package/connman/Config.in
index 48a2ee421c..614b826f96 100644
--- a/package/connman/Config.in
+++ b/package/connman/Config.in
@@ -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
diff --git a/package/connman/connman.mk b/package/connman/connman.mk
index 1ebfe9cf14..23e7cb7797 100644
--- a/package/connman/connman.mk
+++ b/package/connman/connman.mk
@@ -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