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 <ting.liu@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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