1*4882a593Smuzhiyunrequire wireguard.inc
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSRCREV = "18fbcd68a35a892527345dc5679d0b2d860ee004"
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunSRC_URI = "git://git.zx2c4.com/wireguard-linux-compat;protocol=https;branch=master"
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuninherit module kernel-module-split
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunDEPENDS = "virtual/kernel libmnl"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun# This module requires Linux 3.10 higher and several networking related
12*4882a593Smuzhiyun# configuration options. For exact kernel requirements visit:
13*4882a593Smuzhiyun# https://www.wireguard.io/install/#kernel-requirements
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunEXTRA_OEMAKE:append = " \
16*4882a593Smuzhiyun    KERNELDIR=${STAGING_KERNEL_DIR} \
17*4882a593Smuzhiyun    "
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunMAKE_TARGETS = "module"
20*4882a593SmuzhiyunMODULES_INSTALL_TARGET = "module-install"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunRRECOMMENDS:${PN} = "kernel-module-xt-hashlimit"
23*4882a593SmuzhiyunMODULE_NAME = "wireguard"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
27*4882a593Smuzhiyun# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
28*4882a593Smuzhiyun# for reference machines e.g. qemu
29*4882a593SmuzhiyunEXCLUDE_FROM_WORLD = "1"
30*4882a593Smuzhiyun
31