Support simpleImage.mb for MB machines. simpleImage.mb depends on dts to be included while kernel is being compiled. This patch enables copying the dts from device-tree recipe to kernel work area so that simpleImage.mb can be built
Signed-off-by: Manjukumar Matha <[email protected]> --- meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc index 7b4f9ac..e05890c 100644 --- a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc @@ -23,6 +23,24 @@ do_kernel_metadata_prepend () { [ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig } +python __anonymous () { + kerneltypes = d.getVar('KERNEL_IMAGETYPES') or "" + if 'simpleImage.mb' in kerneltypes.split(): + providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") or "" + if providerdtb: + d.appendVarFlag('do_compile', 'depends', ' virtual/dtb:do_populate_sysroot') + else: + bb.error("For MB dts/dtb provider needs to be set") +} + +do_compile_prepend_microblaze () { + if (echo "${KERNEL_IMAGETYPES}" | grep -wq "simpleImage.mb"); then + install -d ${B}/arch/microblaze/boot/dts + cp ${RECIPE_SYSROOT}/boot/devicetree/*.dts ${B}/arch/microblaze/boot/dts/mb.dts + fi +} + + # Default to be only compatible with specific machines or soc families COMPATIBLE_MACHINE ?= "^$" COMPATIBLE_MACHINE_zynq = ".*" -- 2.7.4 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
