diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-03-01 13:43:14 -0800 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-06-28 15:37:10 -0700 |
| commit | bf188829d22ddb94ecee005574bd0628046ab09d (patch) | |
| tree | 726c70f7041fa026d6dc2a6326bdc75cd48b82d2 | |
| parent | da22e7c83ae127203b15058910587d196c644be5 (diff) | |
| download | meta-xilinx-bf188829d22ddb94ecee005574bd0628046ab09d.tar.gz | |
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>
| -rw-r--r-- | meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc | 8 |
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 a597dca1..4cc3a9e2 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 | |||
| 18 | 18 | ||
| 19 | DESCRIPTION = "Xilinx Kernel" | 19 | DESCRIPTION = "Xilinx Kernel" |
| 20 | 20 | ||
| 21 | EXTKERNELSRC = "${@'1' if d.getVar('EXTERNALSRC') else ''}" | ||
| 22 | |||
| 21 | # Force the use of the KBUILD_DEFCONFIG even if some other defconfig was generated in the ${WORKDIR} | 23 | # Force the use of the KBUILD_DEFCONFIG even if some other defconfig was generated in the ${WORKDIR} |
| 22 | do_kernel_metadata_prepend () { | 24 | do_kernel_metadata_prepend () { |
| 23 | [ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig | 25 | [ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig |
| 24 | } | 26 | } |
| 25 | 27 | ||
| 28 | do_configure_prepend () { | ||
| 29 | if [ -n "${KBUILD_DEFCONFIG}" ] && [ -n "${EXTKERNELSRC}" ]; then | ||
| 30 | cp ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig | ||
| 31 | fi | ||
| 32 | } | ||
| 33 | |||
| 26 | inherit kernel-simpleimage | 34 | inherit kernel-simpleimage |
| 27 | 35 | ||
| 28 | # Default to be only compatible with specific machines or soc families | 36 | # Default to be only compatible with specific machines or soc families |
