[meta-freescale] [meta-fsl-ppc fido][PATCH 1/3] asf: use KBUILD_OUTPUT to point to build-artifacts

b28495 at freescale.com b28495 at freescale.com
Fri May 1 08:54:00 PDT 2015


From: Liu Ting-B28495 <ting.liu at freescale.com>

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.

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

Signed-off-by: Liu Ting-B28495 <ting.liu at freescale.com>
---
 recipes-kernel/asf/asf_git.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb
index 8070f5a..1ca4c8e 100644
--- a/recipes-kernel/asf/asf_git.bb
+++ b/recipes-kernel/asf/asf_git.bb
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
 SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;nobranch=1"
 SRCREV = "16eb472d6b2b34c8b605a86c469611bc8ddec1c9"
 
-
 inherit module qoriq_build_64bit_kernel
 
 S = "${WORKDIR}/git/asfmodule"
@@ -16,6 +15,11 @@ export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
 
 INHIBIT_PACKAGE_STRIP = "1"
 
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_configure_prepend () {
+    sed -i 's,$(KERNEL_PATH)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/Makefile
+}
+
 do_install(){
     install -d ${D}/${libexecdir} 
     install -d ${D}/lib/modules/${KERNEL_VERSION}/asf
-- 
1.9.1



More information about the meta-freescale mailing list