From 64ba09ca3f79f4ebe52116af8de98d0bfbe70b49 Mon Sep 17 00:00:00 2001 From: Yannick Gicquel Date: Mon, 18 Jan 2016 15:08:36 +0100 Subject: modules-common: handle kernel build path in work-shared Since 46cdaf1c7b in poky (v1.8), kernel source and build artefact are in two separated directories. This patch prepares to use STAGING_KERNEL_BUILDDIR as it is used in KBUILD_OUTPUT from modules-base.bbclass It also set this variable to keep same state as before for poky < 1.8 Change-Id: I958c7ed44b4a3148e83c628f94908e4ee9357bdf Signed-off-by: Yannick Gicquel --- meta-rcar-gen2/include/rcar-gen2-modules-common.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-rcar-gen2/include/rcar-gen2-modules-common.inc b/meta-rcar-gen2/include/rcar-gen2-modules-common.inc index 4a3658a..f2b520a 100644 --- a/meta-rcar-gen2/include/rcar-gen2-modules-common.inc +++ b/meta-rcar-gen2/include/rcar-gen2-modules-common.inc @@ -2,7 +2,8 @@ export BUILDDIR = "${STAGING_INCDIR}/.." export LIBSHARED = "${STAGING_LIBDIR}" export KERNELSRC = "${STAGING_KERNEL_DIR}" export CROSS_COMPILE = "${TARGET_PREFIX}" -export KERNELDIR = "${STAGING_KERNEL_DIR}" +STAGING_KERNEL_BUILDDIR ?= "${STAGING_KERNEL_DIR}" +export KERNELDIR = "${STAGING_KERNEL_BUILDDIR}" export LDFLAGS = "" export CP = "cp" -- cgit 1.2.3-korg