Procházet zdrojové kódy

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>
James Hilliard před 5 roky
rodič
revize
2cb7786125
2 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. 4 0
      package/connman/Config.in
  2. 7 0
      package/connman/connman.mk

+ 4 - 0
package/connman/Config.in

@@ -52,6 +52,10 @@ config BR2_PACKAGE_CONNMAN_WIFI
 	  setup). ConnMan detects the start of wpa_supplicant
 	  setup). ConnMan detects the start of wpa_supplicant
 	  automatically.
 	  automatically.
 
 
+config BR2_PACKAGE_CONNMAN_WIREGUARD
+	bool "enable wireguard support"
+	select BR2_PACKAGE_LIBMNL
+
 config BR2_PACKAGE_CONNMAN_WISPR
 config BR2_PACKAGE_CONNMAN_WISPR
 	bool "enable WISPr support"
 	bool "enable WISPr support"
 	depends on !BR2_STATIC_LIBS # gnutls
 	depends on !BR2_STATIC_LIBS # gnutls

+ 7 - 0
package/connman/connman.mk

@@ -70,6 +70,13 @@ else
 CONNMAN_CONF_OPTS += --disable-wifi
 CONNMAN_CONF_OPTS += --disable-wifi
 endif
 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)
 ifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
 CONNMAN_CONF_OPTS += --enable-wispr
 CONNMAN_CONF_OPTS += --enable-wispr
 CONNMAN_DEPENDENCIES += gnutls
 CONNMAN_DEPENDENCIES += gnutls