Skip to contentSkip to conversation

ti-tros-firmware: Add DM firmware binary to deploy directory for am62xx-evm

PATCH In review Aparna M 2 participants 2 messages May 13, 2022

lore
Share & tools
lore

Aparna M

author
#0 lore raw

PATCH 1/1 ti-tros-firmware: Add DM firmware binary to deploy directory for am62xx-evm

The DM firmware binary is required for building uboot binaries for am62xx-evm using toplevel makefile in SDK. Add this file to deploy directory so it can be included in prebuilt-images directory of SDK for am62xx-evm.

---

I have had to include a dummy do_deplo without which yocto build fails with a "Task do_deploy is empty" error. Any suggestions as to why this could be happening?

 recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +12 -0
index 56a74899..0f2ba9af 100644
@@ -169,6 +169,16 @@ do_install_am62xx() {
     install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
 }
 
+
+do_deploy() {
+    install -d ${DEPLOYDIR}
+}
+
+do_deploy_am62xx() {
+    install -d ${DEPLOYDIR}
+    install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR}
+}
+
 # Set up names for the firmwares
 ALTERNATIVE_${PN}_am65xx = "\
                     am65x-mcu-r5f0_0-fw \
@@ -357,3 +367,5 @@ INSANE_SKIP_${PN} += "arch"
 # we don't want to configure and build the source code
 do_compile[noexec] = "1"
 do_configure[noexec] = "1"
+
+addtask deploy after do_install
Signature · 1 line
2.17.1
#1 lore raw
Quoted 11 lines · Aparna M

The DM firmware binary is required for building uboot binaries for am62xx-evm using toplevel makefile in SDK. Add this file to deploy directory so it can be included in prebuilt-images directory of SDK for am62xx-evm.

---

I have had to include a dummy do_deplo without which yocto build fails with a "Task do_deploy is empty" error. Any suggestions as to why this could be happening?

You could have an empty do_deploy with a single colon symbol (NOP) in it:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-support/user-creation/xuser-account_0.1.bb?h=dunfell

Quoted 33 lines
 recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +12 -0
index 56a74899..0f2ba9af 100644
@@ -169,6 +169,16 @@ do_install_am62xx() {
     install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
 }
 
+
+do_deploy() {
+    install -d ${DEPLOYDIR}
+}
+
+do_deploy_am62xx() {
+    install -d ${DEPLOYDIR}
+    install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR}
+}
+
 # Set up names for the firmwares
 ALTERNATIVE_${PN}_am65xx = "\
                     am65x-mcu-r5f0_0-fw \
@@ -357,3 +367,5 @@ INSANE_SKIP_${PN} += "arch"
 # we don't want to configure and build the source code
 do_compile[noexec] = "1"
 do_configure[noexec] = "1"
+
+addtask deploy after do_install
Signature · 1 line
2.17.1