[meta-freescale] [meta-fsl-ppc][PATCH 8/9] asf: use KBUILD_OUTPUT to point to build-artifacts

b28495 at freescale.com b28495 at freescale.com
Thu Jul 16 22:36:44 PDT 2015


From: Ting Liu <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.

It is needed to process all the Makefile with new revision.

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

diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb
index 0263b05..6e25ecf 100644
--- a/recipes-kernel/asf/asf_git.bb
+++ b/recipes-kernel/asf/asf_git.bb
@@ -17,7 +17,8 @@ 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
+    find ${S} -name Makefile -exec \
+        sed -i 's,$(KERNEL_PATH)/.config,$(KBUILD_OUTPUT)/.config,' {} \;
 }
 
 do_install(){
-- 
1.9.1



More information about the meta-freescale mailing list