wireguard: add dependencies and kernel build options

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Joe MacDonald 2017-04-26 15:07:46 -04:00
parent 9867ffa48e
commit bf357b2e48

View File

@ -1,12 +1,20 @@
require wireguard.inc
inherit module
inherit module-base 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
EXTRA_OEMAKE += "KERNELDIR=${STAGING_KERNEL_DIR}"
EXTRA_OEMAKE_append = " \
KERNELDIR=${STAGING_KERNEL_DIR} \
CC='${CC}' \
KERNEL_CC='${KERNEL_CC}' \
"
KERNEL_MODULES_META_PACKAGE = "${PN}"
MAKE_TARGETS = "module"
MODULES_INSTALL_TARGET = "module-install"