summaryrefslogtreecommitdiffstats
path: root/recipes-ti
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2023-02-08 13:26:31 -0600
committerRyan Eatmon <reatmon@ti.com>2023-02-08 15:20:27 -0600
commitb61b2a22201821bdabb96d9bddc024cab30e8435 (patch)
treee3faa908725c77f288903b79c5dca0214edcf700 /recipes-ti
parent280e7b4b3a171946c65581b2cfab4502d14cb99d (diff)
downloadmeta-ti-b61b2a22201821bdabb96d9bddc024cab30e8435.tar.gz
ti-rtos-firmware: Use ti-k3-secdev if TI_SECURE_DEV_PKG_K3 not defined
Use ti-k3-secdev native package to provide secure-binary-image.sh script when it is not passed on as an environment variable. This fixes and issue with AM64xx which is always HS but should not require TI_SECURE_DEV_PKG when building for HS-FS platforms. This is backported from a patch for kirkstone. [1] [1] https://lists.yoctoproject.org/g/meta-ti/topic/master_kirkstone_patch_1_8/96819771 Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r--recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb10
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
index 72d85a6b..982171e6 100644
--- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
+++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -37,11 +37,14 @@ CLEANBROKEN = "1"
37PR = "${INC_PR}.0" 37PR = "${INC_PR}.0"
38 38
39# Secure Build 39# Secure Build
40include recipes-ti/includes/ti-paths.inc
40DEPENDS += "openssl-native" 41DEPENDS += "openssl-native"
41 42
42FILES_${PN} += "${base_libdir}" 43FILES_${PN} += "${base_libdir}"
43 44
44TI_SECURE_DEV_PKG ?= "" 45DEPENDS_append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
46TI_SECURE_DEV_PKG = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
47export TI_SECURE_DEV_PKG
45 48
46RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" 49RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}"
47RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}" 50RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}"
@@ -57,7 +60,6 @@ DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
57 60
58# J7 HS support 61# J7 HS support
59do_install_prepend_j7-hs-evm() { 62do_install_prepend_j7-hs-evm() {
60 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
61 ( cd ${RTOS_DM_FW_DIR}; \ 63 ( cd ${RTOS_DM_FW_DIR}; \
62 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ 64 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
63 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ 65 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
@@ -88,7 +90,6 @@ do_install_prepend_j7-hs-evm() {
88 90
89# J7 HS support 91# J7 HS support
90do_install_prepend_j7200-hs-evm() { 92do_install_prepend_j7200-hs-evm() {
91 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
92 ( cd ${RTOS_DM_FW_DIR}; \ 93 ( cd ${RTOS_DM_FW_DIR}; \
93 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ 94 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
94 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ 95 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
@@ -109,7 +110,6 @@ do_install_prepend_j7200-hs-evm() {
109 110
110# J7 HS support 111# J7 HS support
111do_install_prepend_j721s2-hs-evm() { 112do_install_prepend_j721s2-hs-evm() {
112 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
113 ( cd ${RTOS_DM_FW_DIR}; \ 113 ( cd ${RTOS_DM_FW_DIR}; \
114 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ 114 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
115 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ 115 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
@@ -133,7 +133,6 @@ do_install_prepend_j721s2-hs-evm() {
133 133
134# J784S4 support 134# J784S4 support
135do_install_prepend_j784s4-hs-evm() { 135do_install_prepend_j784s4-hs-evm() {
136 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
137 ( cd ${RTOS_DM_FW_DIR}; \ 136 ( cd ${RTOS_DM_FW_DIR}; \
138 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ 137 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
139 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ 138 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
@@ -176,7 +175,6 @@ do_install_prepend_am64xx() {
176 175
177# AM62Q HS-SE support 176# AM62Q HS-SE support
178do_install_prepend_am62xx() { 177do_install_prepend_am62xx() {
179 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
180 ( cd ${RTOS_DM_FW_DIR}; \ 178 ( cd ${RTOS_DM_FW_DIR}; \
181 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ 179 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
182 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ 180 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \