Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require wireguard.inc |
| 2 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 3 | SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 15 | EXTRA_OEMAKE:append = " \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | KERNELDIR=${STAGING_KERNEL_DIR} \ |
| 17 | " |
| 18 | |
| 19 | MAKE_TARGETS = "module" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 20 | MODULES_INSTALL_TARGET = "module-install" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | RRECOMMENDS:${PN} = "kernel-module-xt-hashlimit" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | MODULE_NAME = "wireguard" |
| 24 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 25 | |
| 26 | # WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required. |
| 27 | # OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds |
| 28 | # for reference machines e.g. qemu |
| 29 | EXCLUDE_FROM_WORLD = "1" |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 30 | |