aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-26 00:19:21 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-31 14:59:52 +0200
commit08f08527620064afda78dff2b7ebf411403b1a69 (patch)
tree70b0ebe7cc6f307f48bfc569b6b42e87e6ccf46f /meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb
parent2cb8fcb0acff670cab1f1c3de2a28dd8857b7b6f (diff)
downloadmeta-openembedded-contrib-08f08527620064afda78dff2b7ebf411403b1a69.tar.gz
meta-openembedded-contrib-08f08527620064afda78dff2b7ebf411403b1a69.tar.bz2
meta-openembedded-contrib-08f08527620064afda78dff2b7ebf411403b1a69.zip
wireguard: Upgrade to 20170810 snapshot
Fixes build with linux kernel 4.12+ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb')
-rw-r--r--meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb
new file mode 100644
index 0000000000..2c69c58f8b
--- /dev/null
+++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb
@@ -0,0 +1,31 @@
+require wireguard.inc
+
+inherit module kernel-module-split
+
+DEPENDS = "virtual/kernel libmnl"
+
+# This module requires Linux 3.10 higher and several networking related
+# configuration options. For exact kernel requirements visit:
+# https://www.wireguard.io/install/#kernel-requirements
+
+EXTRA_OEMAKE_append = " \
+ KERNELDIR=${STAGING_KERNEL_DIR} \
+ "
+
+MAKE_TARGETS = "module"
+
+RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit"
+MODULE_NAME = "wireguard"
+
+# Kernel module packages MUST begin with 'kernel-module-', otherwise
+# multilib image generation can fail.
+#
+# The following line is only necessary if the recipe name does not begin
+# with kernel-module-.
+PKG_${PN} = "kernel-module-${MODULE_NAME}"
+
+module_do_install() {
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
+ install -m 0644 ${MODULE_NAME}.ko \
+ ${D}/lib/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko
+}