diff options
author | Colin Finck <c.finck@enlyze.com> | 2022-08-31 15:04:38 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-10-30 14:47:43 -0400 |
commit | 7203130ed8b58c0df75cb72222ac2bcf546bce44 (patch) | |
tree | dd93728c82c1ad402d78f138ad6fb3cdc9c0c90f | |
parent | 44d843ecad0e316b30d689b4b99e3f01b801d31e (diff) | |
download | meta-openembedded-7203130ed8b58c0df75cb72222ac2bcf546bce44.tar.gz |
[dunfell] wireguard: Upgrade to 1.0.20220627 (module) and 1.0.20210914 (tools)
Quoting Jason A. Donenfeld on IRC:
<zx2c4> Colin_Finck: you should never, ever use old versions
<zx2c4> Notice that neither the major nor minor version numbers change
<zx2c4> Use the latest versions on your LTS
With that definite answer, I'd like to fix the problem described in https://lore.kernel.org/yocto/CswA.1659543156268567471.pbrp@lists.yoctoproject.org/ by importing the latest versions instead of maintaining our own fork of wireguard 1.0.20200401.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/files/0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch | 29 | ||||
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch | 32 | ||||
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb | 30 | ||||
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20220627.bb | 23 | ||||
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb (renamed from meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb) | 4 |
5 files changed, 25 insertions, 93 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/files/0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch b/meta-networking/recipes-kernel/wireguard/files/0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch deleted file mode 100644 index a9dc9dc2b7..0000000000 --- a/meta-networking/recipes-kernel/wireguard/files/0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From ce8faa3ee266ea69431805e6ed4bd7102d982508 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Jason A. Donenfeld" <Jason@zx2c4.com> | ||
3 | Date: Thu, 12 Nov 2020 09:43:38 +0100 | ||
4 | Subject: [PATCH] compat: SYM_FUNC_{START,END} were backported to 5.4 | ||
5 | |||
6 | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Fixes build failure in Dunfell. | ||
10 | |||
11 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
12 | |||
13 | --- | ||
14 | compat/compat-asm.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | Index: src/compat/compat-asm.h | ||
18 | =================================================================== | ||
19 | --- src.orig/compat/compat-asm.h | ||
20 | +++ src/compat/compat-asm.h | ||
21 | @@ -40,7 +40,7 @@ | ||
22 | #undef pull | ||
23 | #endif | ||
24 | |||
25 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) | ||
26 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) | ||
27 | #define SYM_FUNC_START ENTRY | ||
28 | #define SYM_FUNC_END ENDPROC | ||
29 | #endif | ||
diff --git a/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch b/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch deleted file mode 100644 index f01cfe4e1c..0000000000 --- a/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 122f06bfd8fc7b06a0899fa9adc4ce8e06900d98 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Jason A. Donenfeld" <Jason@zx2c4.com> | ||
3 | Date: Sun, 7 Mar 2021 08:14:33 -0700 | ||
4 | Subject: [PATCH] compat: icmp_ndo_send functions were backported extensively | ||
5 | |||
6 | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | |||
10 | Fixes build with 5.4.103 update. | ||
11 | /include/linux/icmpv6.h:56:6: note: previous declaration of 'icmpv6_ndo_send' was here | ||
12 | | 56 | void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info); | ||
13 | |||
14 | Signed-of-by: Armin Kuster <akuster808@gmail.com> | ||
15 | |||
16 | --- | ||
17 | src/compat/compat.h | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | Index: src/compat/compat.h | ||
21 | =================================================================== | ||
22 | --- src.orig/compat/compat.h | ||
23 | +++ src/compat/compat.h | ||
24 | @@ -946,7 +946,7 @@ static inline int skb_ensure_writable(st | ||
25 | } | ||
26 | #endif | ||
27 | |||
28 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0) | ||
29 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 102) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 178) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 223) && LINUX_VERSION_CODE > KERNEL_VERSION(4, 10, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 259) || defined(ISRHEL8) || defined(ISUBUNTU1804) | ||
30 | #if IS_ENABLED(CONFIG_NF_NAT) | ||
31 | #include <linux/ip.h> | ||
32 | #include <linux/icmpv6.h> | ||
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb deleted file mode 100644 index 9215f4a6d8..0000000000 --- a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | require wireguard.inc | ||
2 | |||
3 | SRCREV = "43f57dac7b8305024f83addc533c9eede6509129" | ||
4 | |||
5 | SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat;branch=master \ | ||
6 | file://0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch \ | ||
7 | file://0001-compat-icmp_ndo_send-functions-were-backported-exten.patch " | ||
8 | |||
9 | inherit module kernel-module-split | ||
10 | |||
11 | DEPENDS = "virtual/kernel libmnl" | ||
12 | |||
13 | # This module requires Linux 3.10 higher and several networking related | ||
14 | # configuration options. For exact kernel requirements visit: | ||
15 | # https://www.wireguard.io/install/#kernel-requirements | ||
16 | |||
17 | EXTRA_OEMAKE_append = " \ | ||
18 | KERNELDIR=${STAGING_KERNEL_DIR} \ | ||
19 | " | ||
20 | |||
21 | MAKE_TARGETS = "module" | ||
22 | |||
23 | RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" | ||
24 | MODULE_NAME = "wireguard" | ||
25 | |||
26 | module_do_install() { | ||
27 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} | ||
28 | install -m 0644 ${MODULE_NAME}.ko \ | ||
29 | ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko | ||
30 | } | ||
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20220627.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20220627.bb new file mode 100644 index 0000000000..df2db15349 --- /dev/null +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20220627.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | require wireguard.inc | ||
2 | |||
3 | SRCREV = "18fbcd68a35a892527345dc5679d0b2d860ee004" | ||
4 | |||
5 | SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat;protocol=https;branch=master" | ||
6 | |||
7 | inherit module kernel-module-split | ||
8 | |||
9 | DEPENDS = "virtual/kernel libmnl" | ||
10 | |||
11 | # This module requires Linux 3.10 higher and several networking related | ||
12 | # configuration options. For exact kernel requirements visit: | ||
13 | # https://www.wireguard.io/install/#kernel-requirements | ||
14 | |||
15 | EXTRA_OEMAKE_append = " \ | ||
16 | KERNELDIR=${STAGING_KERNEL_DIR} \ | ||
17 | " | ||
18 | |||
19 | MAKE_TARGETS = "module" | ||
20 | MODULES_INSTALL_TARGET = "module-install" | ||
21 | |||
22 | RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" | ||
23 | MODULE_NAME = "wireguard" | ||
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb index 9e486ecc34..b63ef88182 100644 --- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require wireguard.inc | 1 | require wireguard.inc |
2 | 2 | ||
3 | SRCREV = "a8063adc8ae9b4fc9848500e93f94bee8ad2e585" | 3 | SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8" |
4 | SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master" | 4 | SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master" |
5 | 5 | ||
6 | inherit bash-completion systemd pkgconfig | 6 | inherit bash-completion systemd pkgconfig |
@@ -9,7 +9,7 @@ DEPENDS += "wireguard-module libmnl" | |||
9 | 9 | ||
10 | do_install () { | 10 | do_install () { |
11 | oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ | 11 | oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ |
12 | SYSTEMDUNITDIR="${systemd_unitdir}" \ | 12 | SYSTEMDUNITDIR="${systemd_system_unitdir}" \ |
13 | WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ | 13 | WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ |
14 | WITH_BASHCOMPLETION=yes \ | 14 | WITH_BASHCOMPLETION=yes \ |
15 | WITH_WGQUICK=yes \ | 15 | WITH_WGQUICK=yes \ |