Skip to contentSkip to conversation

Deploy sysfw and dm binaries

PATCH In review Aniket Limaye 2 participants 4 messages Oct 4, 2023 – Oct 5, 2023

lore
Share & tools
lore
#0 lore raw

cover Deploy sysfw and dm binaries

Deploy the ti-sysfw and ti-dm binaries to the deploy_dir, while preserving the directory structure. This will allow directly using the deploy_dir as input to u-boot binman build if required, and also easier to copy these to tisdk-core-bundle's prebuilt-binaries dir

Aniket Limaye (2):
ti-sci-fw: Deploy the fw binaries to the deploy directory
ti-dm-dw: Preserve structure of the deployed ti-dm-fw binaries

 meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb       |  6 +++---
 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 11 +++++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 ti-sci-fw: Deploy the fw binaries to the deploy directory

Deploy the sysfw binaries to the DEPLOYDIR, to be picked up by the tisdk-core-bundle... for the prebuilt binaries directory

---
 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +11 -0
index ab9356b6..801c8768 100644
@@ -1,5 +1,7 @@
 SUMMARY = "TI SYSFW/TIFS Firmware"
 
+inherit deploy
+
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
 COMPATIBLE_MACHINE = "k3r5"
@@ -23,3 +25,12 @@ do_install() {
 }
 
 FILES:${PN} = "${nonarch_base_libdir}/firmware"
+
+do_deploy() {
+	install -d ${DEPLOYDIR}/ti-sysfw
+	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
+	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
+	install -m 644 ${S}/ti-sysfw/ti-fs-stub-firmware-* ${DEPLOYDIR}/ti-sysfw
+}
+
+addtask deploy before do_build after do_compile
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 ti-dm-dw: Preserve structure of the deployed ti-dm-fw binaries

In reply to Aniket Limaye

Preserve the directory structure of the deployed dm firmware so that one can directly specify the deploy directory for binman based u-boot build.

Additionally, this makes it easier to preserve the same structure inside the prebuilt-images directory of the tisdk-core-bundle for the same reason.

---
 meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb +3 -3
index f635565d..49638ee9 100644
@@ -67,11 +67,11 @@ do_install() {
 
 do_deploy() {
     # DM Firmware is needed for rebuilding U-Boot
-    install -d ${DEPLOYDIR}
+    install -d ${DEPLOYDIR}/${DM_FW_DIR}
     for FW_NAME in ${DM_FW_LIST}
     do
-        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}        ${DEPLOYDIR}/
-        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}.signed ${DEPLOYDIR}/
+        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}        ${DEPLOYDIR}/${DM_FW_DIR}
+        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}.signed ${DEPLOYDIR}/${DM_FW_DIR}
     done
 }
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [meta-ti][master/kirkstone][PATCH 2/2] ti-dm-dw: Preserve structure of the deployed ti-dm-fw binaries

Small typo in the Subject - ti-dm-dw

Quoted 32 lines · Aniket Limaye via lists.yoctoproject.org

Preserve the directory structure of the deployed dm firmware so that one can directly specify the deploy directory for binman based u-boot build.

Additionally, this makes it easier to preserve the same structure inside the prebuilt-images directory of the tisdk-core-bundle for the same reason.

---
 meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb +3 -3
index f635565d..49638ee9 100644
@@ -67,11 +67,11 @@ do_install() {
 
 do_deploy() {
     # DM Firmware is needed for rebuilding U-Boot
-    install -d ${DEPLOYDIR}
+    install -d ${DEPLOYDIR}/${DM_FW_DIR}
     for FW_NAME in ${DM_FW_LIST}
     do
-        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}        ${DEPLOYDIR}/
-        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}.signed ${DEPLOYDIR}/
+        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}        ${DEPLOYDIR}/${DM_FW_DIR}
+        install -m 0644 ${S}/${DM_FW_DIR}/${FW_NAME}.signed ${DEPLOYDIR}/${DM_FW_DIR}
     done
 }
 
Signature · 1 line
2.34.1