summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2017-10-03 10:04:48 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-10-05 22:54:20 +0200
commit1afda25ed281b0e842833cf85c3f3aa7cca343df (patch)
tree451f07f05006f0520b4fe647e89420e1a3149f29
parent456cd09fb92f13ce592e470056d50a753b0407cc (diff)
downloadbuildroot-1afda25ed281b0e842833cf85c3f3aa7cca343df.tar.gz
buildroot-1afda25ed281b0e842833cf85c3f3aa7cca343df.zip
wireguard: needs 3.10+ kernel
The dependency is actually only for the kernel module (and thus on the runtime kernel version rather than kernel headers), but as we don't know the runtime version in kconfig and the user space part doesn't make much sense without the kernel module this will have to do. [Peter: extend commit message, add comment to Config.in as suggested by Arnout, fix off-by-one in comment text] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/wireguard/Config.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/wireguard/Config.in b/package/wireguard/Config.in
index 0321755db3..fe92fd6cfc 100644
--- a/package/wireguard/Config.in
+++ b/package/wireguard/Config.in
@@ -1,5 +1,7 @@
config BR2_PACKAGE_WIREGUARD
bool "wireguard"
+ # kernel module requires 3.10+, userspace makes no sense without it
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
select BR2_PACKAGE_LIBMNL
help
WireGuard is an extremely simple yet fast and modern VPN
@@ -16,3 +18,6 @@ config BR2_PACKAGE_WIREGUARD
VPN solution in the industry.
https://www.wireguard.com
+
+comment "wireguard needs a toolchain w/ headers >= 3.10"
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
OpenPOWER on IntegriCloud