Skip to contentSkip to conversation

ti-rtos-firmware: Do not provide default CORESDK_RTOS_VERSION

PATCH New Andrew Davis 1 participant 2 messages Apr 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ti-rtos-firmware: Do not provide default CORESDK_RTOS_VERSION

The version information should come from the ti-linux-fw.inc and this version is old anyway.

---
 meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +1 -2
index ae7bdb81..4cac1bfa 100644
@@ -25,11 +25,10 @@ PLAT_SFX:am62axx = "am62axx"
 FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
-CORESDK_RTOS_VERSION ?= "08.00.00.26"
 PV = "${CORESDK_RTOS_VERSION}"
+PR = "${INC_PR}.0"
 
 CLEANBROKEN = "1"
-PR = "${INC_PR}.0"
 
 # Secure Build
 inherit ti-secdev
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 ti-rtos-firmware: Use the same directory structure as linux-firmware

Currently we move this firmware around and put it in a directories named pdk-ipc/ and ethfw/. This does not match what is in linux-firmware which is what projects should expect /lib/firmware to match. This causes issues for projects that want to work both on meta-ti and also on any other distro.

Switch to shipping the same directory structure as linux-firmware here.

---
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  |  12 +-
 .../ti-rtos-bin/ti-rtos-firmware.bb           | 191 +++++++++---------
 2 files changed, 105 insertions(+), 98 deletions(-)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +11 -1
index 4f73a7b9..8e236dfe 100644
@@ -27,9 +27,19 @@ DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native python3-se
 
 DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
 
+PLAT_SFX = ""
+PLAT_SFX:j721e = "j721e"
+PLAT_SFX:j7200 = "j7200"
+PLAT_SFX:j721s2 = "j721s2"
+PLAT_SFX:j784s4 = "j784s4"
+PLAT_SFX:am65xx = "am65xx"
+PLAT_SFX:am64xx = "am64xx"
+PLAT_SFX:am62xx = "am62xx"
+PLAT_SFX:am62axx = "am62axx"
+
 PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
 PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os"
-PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE},,ti-rtos-firmware"
+PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-rtos-firmware"
 
 PACKAGECONFIG:append:aarch64 = " atf optee"
 PACKAGECONFIG:append:j721e = " dm"
meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +94 -97

265 lines not on this page · raw message

Signature · 1 line
2.39.2