diff options
Diffstat (limited to 'meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb')
| -rw-r--r-- | meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb new file mode 100644 index 0000000000..bc94e29ea3 --- /dev/null +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | require wireguard.inc | ||
| 2 | |||
| 3 | SRCREV = "d553aa7c52ac78c1963886afb74ba861b0b7b0fc" | ||
| 4 | |||
| 5 | SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat" | ||
| 6 | |||
| 7 | inherit module kernel-module-split | ||
| 8 | |||
| 9 | DEPENDS = "virtual/kernel libmnl" | ||
| 10 | |||
| 11 | # This module requires Linux 3.10 higher and several networking related | ||
| 12 | # configuration options. For exact kernel requirements visit: | ||
| 13 | # https://www.wireguard.io/install/#kernel-requirements | ||
| 14 | |||
| 15 | EXTRA_OEMAKE_append = " \ | ||
| 16 | KERNELDIR=${STAGING_KERNEL_DIR} \ | ||
| 17 | " | ||
| 18 | |||
| 19 | MAKE_TARGETS = "module" | ||
| 20 | |||
| 21 | RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" | ||
| 22 | MODULE_NAME = "wireguard" | ||
| 23 | |||
| 24 | # Kernel module packages MUST begin with 'kernel-module-', otherwise | ||
| 25 | # multilib image generation can fail. | ||
| 26 | # | ||
| 27 | # The following line is only necessary if the recipe name does not begin | ||
| 28 | # with kernel-module-. | ||
| 29 | PKG_${PN} = "kernel-module-${MODULE_NAME}" | ||
| 30 | |||
| 31 | module_do_install() { | ||
| 32 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} | ||
| 33 | install -m 0644 ${MODULE_NAME}.ko \ | ||
| 34 | ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko | ||
| 35 | } | ||
