]> code.ossystems Code Review - meta-freescale.git/commitdiff
asf: use KBUILD_OUTPUT to point to build-artifacts
authorTing Liu <ting.liu@freescale.com>
Fri, 17 Jul 2015 05:36:44 +0000 (13:36 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 02:26:57 +0000 (23:26 -0300)
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@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-ppc/recipes-kernel/asf/asf_git.bb

index 0263b0580fb53c3d96f48913d58b51599f7aa5e5..6e25ecf5fda9924f8603a0eabf266672bf51e8d4 100644 (file)
@@ -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(){