[meta-lsi] [PATCH 75/86] linux-yocto: Build KERNEL with defconfigs from kernel sources
Daniel Dragomir
daniel.dragomir at windriver.com
Wed Oct 29 08:36:23 PDT 2014
If in kernel sources exist /arch/$ARCH/configs/lsi_defconfig
or lsi_rt_defconfig (for preempt-rt), copy them in work directory
to be use for kernel build.
With this we are sure that the latest defconfig is used.
Signed-off-by: Daniel Dragomir <daniel.dragomir at windriver.com>
---
recipes-kernel/linux/linux-yocto.inc | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/recipes-kernel/linux/linux-yocto.inc b/recipes-kernel/linux/linux-yocto.inc
index e420a1c..d82a70a 100644
--- a/recipes-kernel/linux/linux-yocto.inc
+++ b/recipes-kernel/linux/linux-yocto.inc
@@ -116,3 +116,14 @@ do_deploy_append() {
fi
fi
}
+
+do_patch_append() {
+ if [ "${PN}" = "linux-yocto" ]
+ then
+ cp ${WORKDIR}/linux/arch/${KARCH}/configs/lsi_defconfig ${WORKDIR}/defconfig
+ elif [ "${PN}" = "linux-yocto-rt" ]
+ then
+ cp ${WORKDIR}/linux/arch/${KARCH}/configs/lsi_rt_defconfig ${WORKDIR}/defconfig
+ fi
+}
+
--
1.8.1.4
More information about the meta-lsi
mailing list