From bf357b2e488b8edf9bb649f95eae32dacf22020b Mon Sep 17 00:00:00 2001 From: Joe MacDonald Date: Wed, 26 Apr 2017 15:07:46 -0400 Subject: wireguard: add dependencies and kernel build options Signed-off-by: Joe MacDonald --- .../wireguard/wireguard-module_0.0.20170421.bb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170421.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170421.bb index cb21bda93..0f59c86e2 100644 --- a/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170421.bb +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170421.bb @@ -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" -- cgit v1.2.3-54-g00ecf