aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-01-18 15:08:36 +0100
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-01-18 15:08:36 +0100
commit64ba09ca3f79f4ebe52116af8de98d0bfbe70b49 (patch)
tree7fec228c6ff1d8d36963b715f7798e5f008bb74a
parent3e8aefb1dbb23d6f1da7ea881e7ba977b9f0fba3 (diff)
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 <yannick.gicquel@iot.bzh>
-rw-r--r--meta-rcar-gen2/include/rcar-gen2-modules-common.inc3
1 files changed, 2 insertions, 1 deletions
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"