From 714adf181910a0004165efef191ca77504f0b048 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Fri, 10 Jul 2015 17:45:18 +0800 Subject: asf: use KBUILD_OUTPUT to point to build-artifacts 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: Ting Liu Signed-off-by: Otavio Salvador --- openembedded-layer/recipes-kernel/asf/asf_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openembedded-layer/recipes-kernel/asf/asf_git.bb b/openembedded-layer/recipes-kernel/asf/asf_git.bb index bc8dcbc..7cf8f57 100644 --- a/openembedded-layer/recipes-kernel/asf/asf_git.bb +++ b/openembedded-layer/recipes-kernel/asf/asf_git.bb @@ -15,6 +15,12 @@ export KERNEL_PATH = "${STAGING_KERNEL_DIR}" INHIBIT_PACKAGE_STRIP = "1" +do_configure[depends] += "virtual/kernel:do_shared_workdir" +do_configure_prepend () { + find ${S} -name Makefile -exec \ + sed -i 's,$(KERNEL_PATH)/.config,$(KBUILD_OUTPUT)/.config,' {} \; +} + do_install(){ mkdir -p ${D}/${libexecdir} mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/asf -- cgit v1.2.3-54-g00ecf