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

asf 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/asf/asf_git.bb

index b3379c1a3463a9711bbeda216d90638658dbbf42..1ca4c8ea6961cb2180a5ef94b267854af3b65d8a 100644 (file)
@@ -7,15 +7,17 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;nobranch=1"
 SRCREV = "16eb472d6b2b34c8b605a86c469611bc8ddec1c9"
 
 inherit module qoriq_build_64bit_kernel
-do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
 S = "${WORKDIR}/git/asfmodule"
 
 EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
 export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
+
 INHIBIT_PACKAGE_STRIP = "1"
 
-do_configure_append (){
-    cp ${STAGING_KERNEL_BUILDDIR}/.config  ${STAGING_KERNEL_DIR}/
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_configure_prepend () {
+    sed -i 's,$(KERNEL_PATH)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/Makefile
 }
 
 do_install(){
@@ -28,3 +30,4 @@ do_install(){
 
 FILES_${PN} += "${libexecdir} /lib/modules/${KERNEL_VERSION}/asf"
 RDEPENDS_${PN} += "ipsec-tools"
+