2021-05-05 12:45:55 +00:00
|
|
|
require wireguard.inc
|
|
|
|
|
|
|
|
SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat;branch=master"
|
2021-05-05 12:45:55 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
EXTRA_OEMAKE:append = " \
|
2021-05-05 12:45:55 +00:00
|
|
|
KERNELDIR=${STAGING_KERNEL_DIR} \
|
|
|
|
"
|
|
|
|
|
|
|
|
MAKE_TARGETS = "module"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
RRECOMMENDS:${PN} = "kernel-module-xt-hashlimit"
|
2021-05-05 12:45:55 +00:00
|
|
|
MODULE_NAME = "wireguard"
|
|
|
|
|
|
|
|
module_do_install() {
|
|
|
|
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
|
|
|
|
install -m 0644 ${MODULE_NAME}.ko \
|
|
|
|
${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko
|
|
|
|
}
|
|
|
|
|
|
|
|
# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
|
|
|
|
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
|
|
|
|
# for reference machines e.g. qemu
|
|
|
|
EXCLUDE_FROM_WORLD = "1"
|
|
|
|
|