diff options
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 10 |
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" | |||
37 | PR = "${INC_PR}.0" | 37 | PR = "${INC_PR}.0" |
38 | 38 | ||
39 | # Secure Build | 39 | # Secure Build |
40 | include recipes-ti/includes/ti-paths.inc | ||
40 | DEPENDS += "openssl-native" | 41 | DEPENDS += "openssl-native" |
41 | 42 | ||
42 | FILES_${PN} += "${base_libdir}" | 43 | FILES_${PN} += "${base_libdir}" |
43 | 44 | ||
44 | TI_SECURE_DEV_PKG ?= "" | 45 | DEPENDS_append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" |
46 | TI_SECURE_DEV_PKG = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" | ||
47 | export TI_SECURE_DEV_PKG | ||
45 | 48 | ||
46 | RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" | 49 | RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" |
47 | RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}" | 50 | RTOS_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 |
59 | do_install_prepend_j7-hs-evm() { | 62 | do_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 |
90 | do_install_prepend_j7200-hs-evm() { | 92 | do_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 |
111 | do_install_prepend_j721s2-hs-evm() { | 112 | do_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 |
135 | do_install_prepend_j784s4-hs-evm() { | 135 | do_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 |
178 | do_install_prepend_am62xx() { | 177 | do_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}; \ |