All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6
@ 2020-04-24 12:37 Thomas Petazzoni
  2020-04-25  8:50 ` Peter Korsgaard
  2020-05-08  9:51 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-04-24 12:37 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=da5afc10a45d1e1b5ab7ab6f9230ed7ba44581e7
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Since wireguard is built into kernels 5.6 and later we can't build
wireguard-linux-compat on them, so we need to depend on
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/wireguard-linux-compat/Config.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/wireguard-linux-compat/Config.in b/package/wireguard-linux-compat/Config.in
index 4ee214be63..6e41a0951b 100644
--- a/package/wireguard-linux-compat/Config.in
+++ b/package/wireguard-linux-compat/Config.in
@@ -3,6 +3,8 @@ config BR2_PACKAGE_WIREGUARD_LINUX_COMPAT
 	depends on BR2_LINUX_KERNEL
 	# kernel module requires 3.10+
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
+	# kernel module incompatible with 5.6+
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
 	help
 	  WireGuard is an extremely simple yet fast and modern VPN
 	  that utilizes state-of-the-art cryptography. It aims to be
@@ -20,4 +22,6 @@ config BR2_PACKAGE_WIREGUARD_LINUX_COMPAT
 	  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
+	depends on BR2_LINUX_KERNEL
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6
  2020-04-24 12:37 [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6 Thomas Petazzoni
@ 2020-04-25  8:50 ` Peter Korsgaard
  2020-05-08  9:51 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-04-25  8:50 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=da5afc10a45d1e1b5ab7ab6f9230ed7ba44581e7
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > Since wireguard is built into kernels 5.6 and later we can't build
 > wireguard-linux-compat on them, so we need to depend on
 > !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6.

 > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
 > ---
 >  package/wireguard-linux-compat/Config.in | 6 +++++-
 >  1 file changed, 5 insertions(+), 1 deletion(-)

 > diff --git a/package/wireguard-linux-compat/Config.in b/package/wireguard-linux-compat/Config.in
 > index 4ee214be63..6e41a0951b 100644
 > --- a/package/wireguard-linux-compat/Config.in
 > +++ b/package/wireguard-linux-compat/Config.in
 > @@ -3,6 +3,8 @@ config BR2_PACKAGE_WIREGUARD_LINUX_COMPAT
 >  	depends on BR2_LINUX_KERNEL
 >  	# kernel module requires 3.10+
 >  	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
 > +	# kernel module incompatible with 5.6+
 > +	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6

Maybe a better wording would be ".. in upstream linux since 5.6" rather
than incompatible so it is clearer what to do if you use 5.6+.

 >  	help
 >  	  WireGuard is an extremely simple yet fast and modern VPN
 >  	  that utilizes state-of-the-art cryptography. It aims to be
 > @@ -20,4 +22,6 @@ config BR2_PACKAGE_WIREGUARD_LINUX_COMPAT
 >  	  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
 > +	depends on BR2_LINUX_KERNEL
 > +	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
 > +	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10

If the headers are < than 3.10, then they are also < 5.6, so this is
redundant.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6
  2020-04-24 12:37 [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6 Thomas Petazzoni
  2020-04-25  8:50 ` Peter Korsgaard
@ 2020-05-08  9:51 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-05-08  9:51 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=da5afc10a45d1e1b5ab7ab6f9230ed7ba44581e7
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > Since wireguard is built into kernels 5.6 and later we can't build
 > wireguard-linux-compat on them, so we need to depend on
 > !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6.

 > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Committed to 2020.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-08  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 12:37 [Buildroot] [git commit] package/wireguard-linux-compat: depend on headers < 5.6 Thomas Petazzoni
2020-04-25  8:50 ` Peter Korsgaard
2020-05-08  9:51 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.