diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-01-09 08:51:50 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-01-16 21:53:09 -0800 |
commit | ce3ef41769d33b99f5b0d2fcb84ce1d868d93b61 (patch) | |
tree | e69a4260b2df907229bd90f8ea240097ec250e1c /meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.bb | |
parent | 57091c7dd00855aeb27afbfba7eec6c22291afd7 (diff) | |
download | meta-openembedded-contrib-ce3ef41769d33b99f5b0d2fcb84ce1d868d93b61.tar.gz |
wireguard: udpate to 20171221 version
this fixes build issue on a 4.14 kernel:
/src/compat/padata/padata.c:831:9: error: implicit declaration of function 'padata_alloc'; did you mean 'padata_alloc_pd'? [-Werror=implicit-function-declaration]
| return padata_alloc(wq, cpu_possible_mask, cpu_possible_mask);
| ^~~~~~~~~~~~
| padata_alloc_pd
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.bb')
-rw-r--r-- | meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.bb new file mode 100644 index 0000000000..2c69c58f8b --- /dev/null +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20171221.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 +} |