aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-03-01 13:43:14 -0800
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-06-28 15:37:10 -0700
commitbf188829d22ddb94ecee005574bd0628046ab09d (patch)
tree726c70f7041fa026d6dc2a6326bdc75cd48b82d2 /meta-xilinx-bsp
parentda22e7c83ae127203b15058910587d196c644be5 (diff)
downloadmeta-xilinx-bf188829d22ddb94ecee005574bd0628046ab09d.tar.gz
meta-xilinx-bf188829d22ddb94ecee005574bd0628046ab09d.tar.bz2
meta-xilinx-bf188829d22ddb94ecee005574bd0628046ab09d.zip
linux-xlnx.inc: Use KBUILD_DEFCONFIG in externalsrc mode if defined
When external source is used for kernel, we need a starting point for kernel configuration, use KBUILD_DEFCONFIG if it is defined. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc
index a597dca..4cc3a9e 100644
--- a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc
+++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc
@@ -18,11 +18,19 @@ require linux-microblaze.inc
DESCRIPTION = "Xilinx Kernel"
+EXTKERNELSRC = "${@'1' if d.getVar('EXTERNALSRC') else ''}"
+
# Force the use of the KBUILD_DEFCONFIG even if some other defconfig was generated in the ${WORKDIR}
do_kernel_metadata_prepend () {
[ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig
}
+do_configure_prepend () {
+ if [ -n "${KBUILD_DEFCONFIG}" ] && [ -n "${EXTKERNELSRC}" ]; then
+ cp ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig
+ fi
+}
+
inherit kernel-simpleimage
# Default to be only compatible with specific machines or soc families