]> code.ossystems Code Review - meta-freescale.git/commitdiff
ipc: use KBUILD_OUTPUT to point to build-artifacts
authorLiu Ting-B28495 <ting.liu@freescale.com>
Wed, 13 May 2015 10:15:50 +0000 (18:15 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 20 May 2015 04:05:49 +0000 (12:05 +0800)
In poky commit 46cdaf1, the kernel build output was put into
kernel-build-artifacts, and kernel-source is kept "pristine".

KERNEL_PATH points to kernel-source, while KBUILD_OUTPUT points
to build-artifacts which can be used for external module build.

ipc Makefile tries to include the .config, use KBUILD_OUTPUT to
avoid build error.

Signed-off-by: Liu Ting-B28495 <ting.liu@freescale.com>
meta-fsl-ppc/recipes-kernel/ipc/ipc-modules.inc

index e403e6bb0b2f4064a2e5e36aa3c201d49ba35939..79ba7ef1b8757f218eb8bf707def26cba0875d23 100644 (file)
@@ -9,6 +9,11 @@ inherit  module qoriq_build_64bit_kernel
 
 S = "${WORKDIR}/git"
 
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_configure_prepend() {
+    sed -i 's,$(KERNEL_DIR)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/kernel/Makefile
+}
+
 do_compile_prepend () {
     cd ${S}/kernel
     case ${MACHINE} in