diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-26 00:19:21 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-09-12 10:55:06 -0400 |
commit | 54684b2b17777cc18d08a1f7de367e0fbc2a068b (patch) | |
tree | b31e1770186c8077c29cd52ef71e1877c5bff3f6 /meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb | |
parent | 2179687c99ba1435eae188d939db650ad07e21cb (diff) | |
download | meta-openembedded-54684b2b17777cc18d08a1f7de367e0fbc2a068b.tar.gz |
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>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.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.bb | 31 |
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 000000000..2c69c58f8 --- /dev/null +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170810.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | require wireguard.inc | ||
2 | |||
3 | inherit module kernel-module-split | ||
4 | |||
5 | DEPENDS = "virtual/kernel libmnl" | ||
6 | |||
7 | # This module requires Linux 3.10 higher and several networking related | ||
8 | # configuration options. For exact kernel requirements visit: | ||
9 | # https://www.wireguard.io/install/#kernel-requirements | ||
10 | |||
11 | EXTRA_OEMAKE_append = " \ | ||
12 | KERNELDIR=${STAGING_KERNEL_DIR} \ | ||
13 | " | ||
14 | |||
15 | MAKE_TARGETS = "module" | ||
16 | |||
17 | RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" | ||
18 | MODULE_NAME = "wireguard" | ||
19 | |||
20 | # Kernel module packages MUST begin with 'kernel-module-', otherwise | ||
21 | # multilib image generation can fail. | ||
22 | # | ||
23 | # The following line is only necessary if the recipe name does not begin | ||
24 | # with kernel-module-. | ||
25 | PKG_${PN} = "kernel-module-${MODULE_NAME}" | ||
26 | |||
27 | module_do_install() { | ||
28 | install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} | ||
29 | install -m 0644 ${MODULE_NAME}.ko \ | ||
30 | ${D}/lib/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko | ||
31 | } | ||