package/wireguard-linux-compat: depend on headers < 5.6
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 10 Apr 2020 21:34:14 +0000 (15:34 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 24 Apr 2020 12:37:03 +0000 (14:37 +0200)
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

index 4ee214be63b19cd3199d1c10ef0e2dc47fc9a525..6e41a0951b68d774c8aa77a0afc903bd806e9fee 100644 (file)
@@ -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