[meta-xilinx] [meta-xilinx-tools][PATCH] device-tree.bbappend: Deploy datetime versioned dtb

Manjukumar Matha manjukumar.harthikote-matha at xilinx.com
Mon Apr 23 15:28:40 PDT 2018


Deploy datetime versioned dtb similar to other build fragments in
meta-xilinx-tools layer

Tested-by: Vineeth Chowdary Karumanchi <vineethchowz.chowdary at xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
 recipes-bsp/device-tree/device-tree.bbappend | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/recipes-bsp/device-tree/device-tree.bbappend b/recipes-bsp/device-tree/device-tree.bbappend
index a999612..ba9742c 100644
--- a/recipes-bsp/device-tree/device-tree.bbappend
+++ b/recipes-bsp/device-tree/device-tree.bbappend
@@ -51,3 +51,12 @@ do_compile_prepend() {
 	[ -e ${DTS_FILES_PATH}/system.dts ] && rm ${DTS_FILES_PATH}/system.dts
 }
 
+DTB_BASE_NAME ?= "${MACHINE}-system-${DATETIME}"
+DTB_BASE_NAME[vardepsexclude] = "DATETIME"
+
+do_deploy() {
+	for DTB_FILE in `ls *.dtb *.dtbo`; do
+		install -Dm 0644 ${B}/${DTB_FILE} ${DEPLOYDIR}/${DTB_BASE_NAME}.${DTB_FILE#*.}
+		ln -sf ${DTB_BASE_NAME}.${DTB_FILE#*.} ${DEPLOYDIR}/${MACHINE}-system.${DTB_FILE#*.}
+	done
+}
-- 
2.7.4



More information about the meta-xilinx mailing list