From patchwork Mon Jan 6 10:47:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 1218089 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fcuKtuuj"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47rsfj3GNWz9sR4 for ; Mon, 6 Jan 2020 21:47:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A688F204E1; Mon, 6 Jan 2020 10:47:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ikjH+b7HhIHr; Mon, 6 Jan 2020 10:47:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1E87D20503; Mon, 6 Jan 2020 10:47:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8D3911BF29C for ; Mon, 6 Jan 2020 10:47:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A6E083885 for ; Mon, 6 Jan 2020 10:47:50 +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 1yKF7vEnmdsH for ; Mon, 6 Jan 2020 10:47:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0284E8364D for ; Mon, 6 Jan 2020 10:47:48 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id p17so14800707wmb.0 for ; Mon, 06 Jan 2020 02:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OgQW8aVMYAktVNpIol50apRJCRgrN2c3/X9QPHOvOo8=; b=fcuKtuujzdtujRXJmL6vgnJD5ovEUbyLcAYhEYwuuon2nJ0odUsEybiOVwgAJmSvob cp1gbzHqgan5oaTFnYzlQk455G9fre8YBlsoy+/UY7iSpjBTAmNE69mBZoDmZqu/mMrv FxspXZlfUJj9xW1m0hJz5+cs2OMLvHjHYRSdUieUoRn44yRVNHDqaHQKCgmag4qzlIn2 tGExt7H8XxBQ6rIgm7ciets3/Y54wJW9iqOwLUdbUKbwuETW67j4CzXvoNIQhiJMW5Rb O8RFi6bnGyNPcOmBeX3CT5fBpzWoPTngQf/06trXCRLBiGs/eCJK7SAtxqr0vqQU1BUh bEpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=OgQW8aVMYAktVNpIol50apRJCRgrN2c3/X9QPHOvOo8=; b=b0oq7JAVfGmLvBA7icDElGOgucyC/c9Q2Goez0f7jtadMv+5wekFH1hJcxWi0lF/P6 t1nnKREtxxzGmnkYWtB5XFegPfGnFe1pzomWlMLG83qbqucdbVQCNSOZnZCwhxyB7QbR tGO5XUO04ggVBVXTnGWcnz7JN1syaxyz7jc9yUMsTN0e/DkHZ76zFdpLdNWD1SXzNU6S h2nQRTYcUpnvmq5Uz2wHl9zPDVdmWXGpdHcoEo/5mQTX9i0vQ3jWpY/2d8bhIMHSJZS+ 4HWjeBRIcG3vQ4K4/uzValiqLncyif9/KuNhv6DP8J3hr2ujSFb8MMcJayls2F9V8NRB KR2Q== X-Gm-Message-State: APjAAAWuPMmYUargpf5JJ1koUat28MLNoAyrKzlxgiezgz4vDEY9K1Kn E3ATW7HZMVCseCzj5AJAz2KZOCM7 X-Google-Smtp-Source: APXvYqzXbjBeFiNyUH/GZazuLnXDDOm7xjlYBjadXKCjLo/arg/LM3azgBdafSjtJ/rhOFBOmMhuiA== X-Received: by 2002:a1c:49c2:: with SMTP id w185mr32603814wma.138.1578307666079; Mon, 06 Jan 2020 02:47:46 -0800 (PST) Received: from dell.be.48ers.dk (d51A5BC31.access.telenet.be. [81.165.188.49]) by smtp.gmail.com with ESMTPSA id c195sm23822976wmd.45.2020.01.06.02.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 02:47:45 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.92) (envelope-from ) id 1ioPvE-0003U3-TE; Mon, 06 Jan 2020 11:47:44 +0100 From: Peter Korsgaard To: buildroot@buildroot.org Date: Mon, 6 Jan 2020 11:47:31 +0100 Message-Id: <20200106104731.13306-3-peter@korsgaard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200106104731.13306-1-peter@korsgaard.com> References: <20200106104731.13306-1-peter@korsgaard.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/wireguard-linux-compat: new package 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: Peter Korsgaard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" With the kernel support for WireGuard getting mainlined, the upstream repo has been split in a wireguard-tools repo for the userspace tooling and wireguard-linux-compat for the kernel side (for 3.10+ legacy kernels). Add a wireguard-linux-compat for the compatibility out-of-tree kernel module. Signed-off-by: Peter Korsgaard --- DEVELOPERS | 1 + package/Config.in | 1 + package/wireguard-linux-compat/Config.in | 23 +++++++++++++++++++ .../wireguard-linux-compat.hash | 4 ++++ .../wireguard-linux-compat.mk | 15 ++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 package/wireguard-linux-compat/Config.in create mode 100644 package/wireguard-linux-compat/wireguard-linux-compat.hash create mode 100644 package/wireguard-linux-compat/wireguard-linux-compat.mk diff --git a/DEVELOPERS b/DEVELOPERS index 63e6981570..ac10b9270b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1940,6 +1940,7 @@ F: package/sedutil/ F: package/tpm2-totp/ F: package/triggerhappy/ F: package/wireguard/ +F: package/wireguard-linux-compat/ F: support/testing/tests/package/test_docker_compose.py N: Peter Seiderer diff --git a/package/Config.in b/package/Config.in index 894284c650..00718d4fc9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2173,6 +2173,7 @@ endif source "package/wget/Config.in" source "package/whois/Config.in" source "package/wireguard/Config.in" + source "package/wireguard-linux-compat/Config.in" source "package/wireless-regdb/Config.in" source "package/wireless_tools/Config.in" source "package/wireshark/Config.in" diff --git a/package/wireguard-linux-compat/Config.in b/package/wireguard-linux-compat/Config.in new file mode 100644 index 0000000000..4ee214be63 --- /dev/null +++ b/package/wireguard-linux-compat/Config.in @@ -0,0 +1,23 @@ +config BR2_PACKAGE_WIREGUARD_LINUX_COMPAT + bool "wireguard linux-compat" + depends on BR2_LINUX_KERNEL + # kernel module requires 3.10+ + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 + help + WireGuard is an extremely simple yet fast and modern VPN + that utilizes state-of-the-art cryptography. It aims to be + faster, simpler, leaner, and more useful than IPSec, while + avoiding the massive headache. It intends to be considerably + more performant than OpenVPN. WireGuard is designed as a + general purpose VPN for running on embedded interfaces and + super computers alike, fit for many different + circumstances. + + Support for WireGuard is included in Linux 5.6+. This + package provides a backport of the kernel support for older + kernels. + + https://www.wireguard.com + +comment "wireguard-linux-compat needs a toolchain w/ headers >= 3.10" + depends on BR2_LINUX_KERNEL && !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 diff --git a/package/wireguard-linux-compat/wireguard-linux-compat.hash b/package/wireguard-linux-compat/wireguard-linux-compat.hash new file mode 100644 index 0000000000..1653eaa089 --- /dev/null +++ b/package/wireguard-linux-compat/wireguard-linux-compat.hash @@ -0,0 +1,4 @@ +# https://lists.zx2c4.com/pipermail/wireguard/2020-January/004844.html +sha256 9f12f68e96f6865325995c38213e09b05751cd1ef03e0bbc9f1bdc3e5680b337 wireguard-linux-compat-0.0.20200105.tar.xz +# Locally calculated +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING diff --git a/package/wireguard-linux-compat/wireguard-linux-compat.mk b/package/wireguard-linux-compat/wireguard-linux-compat.mk new file mode 100644 index 0000000000..ddceed5660 --- /dev/null +++ b/package/wireguard-linux-compat/wireguard-linux-compat.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# wireguard +# +################################################################################ + +WIREGUARD_LINUX_COMPAT_VERSION = 0.0.20200105 +WIREGUARD_LINUX_COMPAT_SITE = https://git.zx2c4.com/wireguard-linux-compat/snapshot +WIREGUARD_LINUX_COMPAT_SOURCE = wireguard-linux-compat-$(WIREGUARD_LINUX_COMPAT_VERSION).tar.xz +WIREGUARD_LINUX_COMPAT_LICENSE = GPL-2.0 +WIREGUARD_LINUX_COMPAT_LICENSE_FILES = COPYING +WIREGUARD_LINUX_COMPAT_MODULE_SUBDIRS = src + +$(eval $(kernel-module)) +$(eval $(generic-package))