]> code.ossystems Code Review - meta-freescale.git/commitdiff
ceetm: use KBUILD_OUTPUT to point to build-artifacts
authorLiu Ting-B28495 <ting.liu@freescale.com>
Fri, 1 May 2015 15:53:46 +0000 (23:53 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 12 May 2015 06:42:20 +0000 (14:42 +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.

ceetm 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/ceetm/ceetm_git.bb

index 266261eb4a1370a933b3f8f2e0c29472df38af99..beaed31ed3b81da3448972a2e4d8c2b792f1dda4 100644 (file)
@@ -14,6 +14,11 @@ S = "${WORKDIR}/git"
 EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}"
 export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
 
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_configure_prepend () {
+    sed -i 's,$(KERNEL_PATH)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/ceetm_module/Makefile
+}
+
 do_install(){
        mkdir -p ${D}/usr/driver/ceetm
        mkdir -p ${D}/${libdir}/tc