[meta-xilinx] [meta-xilinx-bsp][PATCH v2 2/3] device-tree.bb: Add support to handle simpleImage for MB
Manjukumar Matha
manjukumar.harthikote-matha at xilinx.com
Mon Jan 22 16:55:09 PST 2018
simpleImage needs dts file to present while compiling. This patch add
dts to SYSROOTS dir for MB machines
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb
index dc49cbb..08b4201 100644
--- a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb
+++ b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb
@@ -19,8 +19,6 @@ COMPATIBLE_MACHINE ?= "^$"
PACKAGE_ARCH = "${MACHINE_ARCH}"
-FILES_${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo"
-
S = "${WORKDIR}"
B = "${WORKDIR}/build"
@@ -66,6 +64,7 @@ do_compile() {
dtc ${DEVICETREE_OFLAGS} -I dts -O dtb ${DEVICETREE_FLAGS} -o ${DTS_NAME}.dtbo `basename ${DTS_FILE}`.pp
else
dtc -I dts -O dtb ${DEVICETREE_FLAGS} -o ${DTS_NAME}.dtb `basename ${DTS_FILE}`.pp
+ dtc -I dtb -O dts -o ${DTS_NAME}.dts ${DTS_NAME}.dtb
fi
done
}
@@ -76,6 +75,13 @@ do_install() {
done
}
+do_install_append_microblaze() {
+ for DTS_FILE in `ls *.dts`; do
+ install -Dm 0644 ${B}/${DTS_FILE} ${D}/boot/devicetree/mb.dts
+ done
+}
+
+
do_deploy() {
for DTB_FILE in `ls *.dtb *.dtbo`; do
install -Dm 0644 ${B}/${DTB_FILE} ${DEPLOYDIR}/${DTB_FILE}
@@ -83,3 +89,5 @@ do_deploy() {
}
addtask deploy before do_build after do_install
+FILES_${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo"
+FILES_${PN}_append_microblaze = " /boot/devicetree/*.dts"
--
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