From: Andrew Davis <a...@ti.com>

Add SYSFW_TIBOOT3_SYMLINK and use it the same way we use SYSFW_SYMLINK
for the non-combined boot flow, to allow not setting the default for
some machine types.

Signed-off-by: Andrew Davis <a...@ti.com>
Signed-off-by: Ryan Eatmon <reat...@ti.com>
Signed-off-by: Denys Dmytriyenko <de...@konsulko.com>
---
 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 3daf0c68..506052ca 100644
--- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -37,6 +37,7 @@ SYSFW_PREFIX:am62xx-evm-k3r5 = "fs"
 SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin"
 
 SYSFW_TIBOOT3 = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.bin"
+SYSFW_TIBOOT3_SYMLINK ?= "tiboot3.bin"
 
 SYSFW_BINARY = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
 SYSFW_VBINARY = "sysfw-${PV}-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
@@ -80,7 +81,9 @@ do_install() {
 
        if [ -f "${WORKDIR}/imggen/${SYSFW_TIBOOT3}" ]; then
                install -m 644 ${WORKDIR}/imggen/${SYSFW_TIBOOT3} 
${D}/boot/${SYSFW_TIBOOT3}
-               ln -sf ${SYSFW_TIBOOT3} ${D}/boot/tiboot3.bin
+               if [ ! -z "${SYSFW_TIBOOT3_SYMLINK}" ]; then
+                       ln -sf ${SYSFW_TIBOOT3} 
${D}/boot/${SYSFW_TIBOOT3_SYMLINK}
+               fi
        fi
 }
 
@@ -101,7 +104,9 @@ do_deploy () {
 
        if [ -f "${WORKDIR}/imggen/${SYSFW_TIBOOT3}" ]; then
                install -m 644 ${WORKDIR}/imggen/${SYSFW_TIBOOT3} 
${DEPLOYDIR}/${SYSFW_TIBOOT3}
-               ln -sf ${SYSFW_TIBOOT3} ${DEPLOYDIR}/tiboot3.bin
+               if [ ! -z "${SYSFW_TIBOOT3_SYMLINK}" ]; then
+                       ln -sf ${SYSFW_TIBOOT3} 
${DEPLOYDIR}/${SYSFW_TIBOOT3_SYMLINK}
+               fi
        fi
 
        install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15277): 
https://lists.yoctoproject.org/g/meta-ti/message/15277
Mute This Topic: https://lists.yoctoproject.org/mt/94817227/21656
Group Owner: meta-ti+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to