[meta-ti,dunfell,RFC,6/6] ti-sci-fw: Deploy GP version of tiboot3.bin with HS SDK

Message ID 20220701220228.5449-7-afd@ti.com
State RFC
Delegated to: Ryan Eatmon
Headers show
Series HS SDK on GP EVM support | expand

Commit Message

Andrew Davis July 1, 2022, 10:02 p.m. UTC
This allows users of the HS SDK to run on GP EVMs. This file
can be used instead of the HS default.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 conf/machine/am64xx-hs-evm.conf        |  2 ++
 recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 13 +++++++++++++
 2 files changed, 15 insertions(+)

Patch

diff --git a/conf/machine/am64xx-hs-evm.conf b/conf/machine/am64xx-hs-evm.conf
index ebbe2e62..85c5325b 100644
--- a/conf/machine/am64xx-hs-evm.conf
+++ b/conf/machine/am64xx-hs-evm.conf
@@ -18,4 +18,6 @@  SPL_BINARY = "tispl.bin_HS"
 UBOOT_BINARY = "u-boot.img_HS"
 UBOOT_SYMLINK = "u-boot.img"
 
+IMAGE_BOOT_FILES += "tiboot3-am64x-gp-evm.bin"
+
 TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 1b2ea184..c96078e6 100644
--- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -69,6 +69,11 @@  do_compile() {
 	oe_runmake
 }
 
+do_compile_prepend_am64xx-hs-evm-k3r5() {
+	cd ${WORKDIR}/imggen/
+	oe_runmake SOC_TYPE=gp
+}
+
 do_install() {
 	install -d ${D}/boot
 
@@ -86,6 +91,10 @@  do_install() {
 	fi
 }
 
+do_install_append_am64xx-hs-evm-k3r5() {
+	install -m 644 ${WORKDIR}/imggen/tiboot3-${SYSFW_SOC}-gp-${SYSFW_CONFIG}.bin ${D}/boot/tiboot3-${SYSFW_SOC}-gp-${SYSFW_CONFIG}.bin
+}
+
 FILES_${PN} = "/boot"
 
 inherit deploy
@@ -109,4 +118,8 @@  do_deploy () {
 	install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
 }
 
+do_deploy_append_am64xx-hs-evm-k3r5() {
+	install -m 644 ${WORKDIR}/imggen/tiboot3-${SYSFW_SOC}-gp-${SYSFW_CONFIG}.bin ${DEPLOYDIR}/tiboot3-${SYSFW_SOC}-gp-${SYSFW_CONFIG}.bin
+}
+
 addtask deploy before do_build after do_compile