[meta-xilinx] [meta-xilinx-bsp][PATCH 3/4] linux-xlnx.inc: Support simpleImage.mb support for MB
Manjukumar Matha
manjukumar.harthikote-matha at xilinx.com
Mon Jan 22 16:46:42 PST 2018
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 <manjukumar.harthikote-matha at xilinx.com>
---
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.
More information about the meta-xilinx
mailing list