From patchwork Sun Mar 8 07:07:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1250994 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=id7sj0Z9; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48ZsrL3Wlgz9sNg for ; Sun, 8 Mar 2020 18:07:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3AB2387BE0; Sun, 8 Mar 2020 07:07:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WcoUFjfGNJl4; Sun, 8 Mar 2020 07:07:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 72B3687938; Sun, 8 Mar 2020 07:07:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D1D621BF298 for ; Sun, 8 Mar 2020 07:07:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE9F487B62 for ; Sun, 8 Mar 2020 07:07:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lNBP89E78+JE for ; Sun, 8 Mar 2020 07:07:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3A39A87B59 for ; Sun, 8 Mar 2020 07:07:47 +0000 (UTC) Received: by mail-io1-f49.google.com with SMTP id r15so6176125iog.0 for ; Sat, 07 Mar 2020 23:07:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dl57nHoNfKPcHw1kK75o73HUi8w2HSsYCiHHt1JWONA=; b=id7sj0Z9zu8QeZ5v6dRrWOikA247k9VQDtrv7e3R5iAjycesJzEUltyYlLYWX1GXr1 EsDjyNw/KTMDzeAfh/XIKVwIwTO7Ae5tBowE9gu7BiaQkj2QPuNcHRIJRvbpF3hiPdsE 4Bxq2WVxD445VLsTwNQvigpHGkFhhifW29pW94cDzw0d6maa+XgSWUcmssOr/mBZEWZ8 W0aVJVHVID8wI9OCmn7A/FX/1Zp/hiLI2k54B9rIHJexSKxWm+C1dw66CX4W4OFtfXqi O9E1LSaX1G3yyrHD3Qrn54oDgG1eV/dc3tXopoWamE0DLWPbDEqqNAJJqhDDGpYh0UsK DxKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dl57nHoNfKPcHw1kK75o73HUi8w2HSsYCiHHt1JWONA=; b=KhzgynvthBuTUlUmrAes+S5WMUiwu0emIUbcA1D4JfIvH3dVH1u69o88E7L/6H8JWw 4UM+NJi/2lngYGfM3/3AagPZlLaDwZKLLYygygDHsvFy7XcsOarIIMMDhWpgAAt9mmM+ Yh1OLG5Cln0z3LrzArRbqwY2EYRFZeZwIu80xgjfahYl79qhVvsBhk/D2ky40vCUgKoH vl8k/wmylt1qJSSN+VOk48zQZlI8XNh6bkkLQfp9vjpulNiJb677TqiDFcBnBKZsDyii AwihAlvLFOEf+JhcpwoCZGpGHQvB30FhZ8Opmg7S/Gb3oyXbdqZxbvVjh63Tl1cRTceR ZOLQ== X-Gm-Message-State: ANhLgQ1cUfVfjNZNlwHY4wrc+ABcAmmqekRpRtxljHLZMqfRoA5+LTlg ZuNBl7wdCf1ZPv6QEWLKB8pyE1xJ X-Google-Smtp-Source: ADFU+vtRh65EzB+DUSIglmkfRyLXUR8stv4kcdGGsyze7iD4GNzyYPhZJZSrnfHzNh0gbgdKl/emlg== X-Received: by 2002:a6b:4f09:: with SMTP id d9mr8698472iob.94.1583651266051; Sat, 07 Mar 2020 23:07:46 -0800 (PST) Received: from james-x399.localdomain (71-33-129-6.hlrn.qwest.net. [71.33.129.6]) by smtp.gmail.com with ESMTPSA id g132sm9764204iof.44.2020.03.07.23.07.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 23:07:45 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Sun, 8 Mar 2020 00:07:41 -0700 Message-Id: <20200308070741.42542-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/connman: enable wireguard X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard , Martin Bark Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We also need to select libmnl when building with wireguard support or with nftables. Signed-off-by: James Hilliard --- package/connman/Config.in | 5 +++++ package/connman/connman.mk | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package/connman/Config.in b/package/connman/Config.in index ac012dda54..614b826f96 100644 --- a/package/connman/Config.in +++ b/package/connman/Config.in @@ -33,6 +33,7 @@ config BR2_PACKAGE_CONNMAN_NFTABLES bool "nftables" depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 + select BR2_PACKAGE_LIBMNL select BR2_PACKAGE_NFTABLES help Use nftables as firewall. @@ -51,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 701be8b59d..23e7cb7797 100644 --- a/package/connman/connman.mk +++ b/package/connman/connman.mk @@ -41,7 +41,7 @@ CONNMAN_CONF_OPTS += --with-firewall=iptables CONNMAN_DEPENDENCIES += iptables else ifeq ($(BR2_PACKAGE_CONNMAN_NFTABLES),y) CONNMAN_CONF_OPTS += --with-firewall=nftables -CONNMAN_DEPENDENCIES += nftables +CONNMAN_DEPENDENCIES += libmnl nftables endif ifeq ($(BR2_PACKAGE_CONNMAN_LOOPBACK),y) @@ -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