Deploy datetime versioned dtb similar to other build fragments in meta-xilinx-tools layer
Tested-by: Vineeth Chowdary Karumanchi <[email protected]> Signed-off-by: Manjukumar Matha <[email protected]> --- 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 -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
