diff options
author | Yogesh Siraswar <yogeshs@ti.com> | 2021-07-22 06:17:28 +0000 |
---|---|---|
committer | Yogesh Siraswar <yogeshs@ti.com> | 2021-07-23 00:11:06 +0000 |
commit | 15f3d4a3c3773294f1cdb66a88744930941a892e (patch) | |
tree | 7d5163b99eccc0e96b5eec98ce59e771b7f557f8 /recipes-ti | |
parent | 96852ff4ff5bb8fcb696af662c82ad91c8a912d6 (diff) | |
download | meta-ti-15f3d4a3c3773294f1cdb66a88744930941a892e.tar.gz |
ti-rtos-firmware: Add soft link to the rtos firmware binaries08.00.00.004
Changes for firmware update( eff643e5 ti-rtos-firmware: update the
source to ti-linux-firmware) were in-complete without soft link.
1) Added soft link missing for the rtos firmware.
2) Updated the IPC am64x firmware name to be consistent with 7.3
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 185 |
1 files changed, 166 insertions, 19 deletions
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index e50cb933..198426ed 100644 --- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -10,6 +10,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
10 | INHIBIT_DEFAULT_DEPS = "1" | 10 | INHIBIT_DEFAULT_DEPS = "1" |
11 | 11 | ||
12 | inherit deploy | 12 | inherit deploy |
13 | inherit update-alternatives | ||
13 | 14 | ||
14 | PLAT_SFX = "" | 15 | PLAT_SFX = "" |
15 | PLAT_SFX_j7 = "j721e" | 16 | PLAT_SFX_j7 = "j721e" |
@@ -23,8 +24,7 @@ CORESDK_RTOS_VERSION ?= "08.00.00.26" | |||
23 | PV = "${CORESDK_RTOS_VERSION}" | 24 | PV = "${CORESDK_RTOS_VERSION}" |
24 | 25 | ||
25 | CLEANBROKEN = "1" | 26 | CLEANBROKEN = "1" |
26 | PR = "r1" | 27 | PR = "${INC_PR}.0" |
27 | |||
28 | 28 | ||
29 | # Secure Build | 29 | # Secure Build |
30 | DEPENDS += "openssl-native" | 30 | DEPENDS += "openssl-native" |
@@ -39,13 +39,13 @@ RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}" | |||
39 | 39 | ||
40 | # For back-ward compatability keeping legacy firmware folder name | 40 | # For back-ward compatability keeping legacy firmware folder name |
41 | # TODO: fix this in next version | 41 | # TODO: fix this in next version |
42 | LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw" | 42 | LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/" |
43 | LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc" | 43 | LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" |
44 | LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/ethfw" | 44 | LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" |
45 | 45 | ||
46 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | 46 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" |
47 | 47 | ||
48 | # Install | 48 | # J7 HS support |
49 | do_install_prepend_j7-hs-evm() { | 49 | do_install_prepend_j7-hs-evm() { |
50 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | 50 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} |
51 | ( cd ${RTOS_DM_FW_DIR}; \ | 51 | ( cd ${RTOS_DM_FW_DIR}; \ |
@@ -54,35 +54,182 @@ do_install_prepend_j7-hs-evm() { | |||
54 | ) | 54 | ) |
55 | } | 55 | } |
56 | 56 | ||
57 | # Update the am64xx ipc binaries to be consistent with other platforms | ||
58 | do_install_prepend_am64xx() { | ||
59 | ( cd ${RTOS_IPC_FW_DIR}; \ | ||
60 | mv am64-main-r5f0_0-fw ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f; \ | ||
61 | mv am64-main-r5f0_1-fw ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f; \ | ||
62 | mv am64-main-r5f1_0-fw ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f; \ | ||
63 | mv am64-main-r5f1_1-fw ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f; \ | ||
64 | ) | ||
65 | } | ||
66 | |||
67 | #Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level | ||
57 | do_install() { | 68 | do_install() { |
58 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 69 | |
59 | install -d ${LEGACY_ETH_FW_DIR} | 70 | } |
60 | install -d ${LEGACY_IPC_FW_DIR} | 71 | |
61 | cp ${CP_ARGS} "${RTOS_ETH_FW_DIR}/." ${LEGACY_ETH_FW_DIR} | 72 | do_install_j7() { |
62 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | 73 | install -d ${LEGACY_IPC_FW_DIR} |
63 | cp ${CP_ARGS} "${RTOS_DM_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | 74 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
75 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
76 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
77 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
78 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
79 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_1_release_strip.xe66 ${LEGACY_IPC_FW_DIR} | ||
80 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_2_release_strip.xe66 ${LEGACY_IPC_FW_DIR} | ||
81 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | ||
82 | # DM Firmware | ||
83 | install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} | ||
84 | # ETH firmware | ||
85 | install -d ${LEGACY_ETH_FW_DIR} | ||
86 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} | ||
87 | } | ||
88 | |||
89 | do_install_j7200-evm() { | ||
90 | install -d ${LEGACY_IPC_FW_DIR} | ||
91 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
92 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
93 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
94 | # DM Firmware | ||
95 | install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} | ||
96 | # ETH firmware | ||
97 | install -d ${LEGACY_ETH_FW_DIR} | ||
98 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} | ||
64 | } | 99 | } |
65 | 100 | ||
66 | do_install_am65xx() { | 101 | do_install_am65xx() { |
67 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 102 | install -d ${LEGACY_IPC_FW_DIR} |
68 | install -d ${LEGACY_IPC_FW_DIR} | 103 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
69 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | 104 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
70 | } | 105 | } |
71 | 106 | ||
72 | do_install_am64xx() { | 107 | do_install_am64xx() { |
73 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 108 | install -d ${LEGACY_IPC_FW_DIR} |
74 | install -d ${LEGACY_IPC_FW_DIR} | 109 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
75 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | 110 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
111 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
112 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
76 | } | 113 | } |
77 | 114 | ||
115 | # Set up names for the firmwares | ||
116 | ALTERNATIVE_${PN}_am65xx = "\ | ||
117 | am65x-mcu-r5f0_0-fw \ | ||
118 | am65x-mcu-r5f0_1-fw \ | ||
119 | " | ||
120 | |||
121 | ALTERNATIVE_${PN}_am64xx = "\ | ||
122 | am64-main-r5f0_0-fw \ | ||
123 | am64-main-r5f0_1-fw \ | ||
124 | am64-main-r5f1_0-fw \ | ||
125 | am64-main-r5f1_1-fw \ | ||
126 | " | ||
127 | |||
128 | ALTERNATIVE_${PN}_j7 = "\ | ||
129 | j7-mcu-r5f0_0-fw \ | ||
130 | j7-mcu-r5f0_1-fw \ | ||
131 | j7-main-r5f0_0-fw \ | ||
132 | j7-main-r5f0_1-fw \ | ||
133 | j7-main-r5f1_0-fw \ | ||
134 | j7-main-r5f1_1-fw \ | ||
135 | j7-c66_0-fw \ | ||
136 | j7-c66_1-fw \ | ||
137 | j7-c71_0-fw\ | ||
138 | " | ||
139 | |||
140 | ALTERNATIVE_${PN}_j7200-evm = "\ | ||
141 | j7200-mcu-r5f0_0-fw \ | ||
142 | j7200-mcu-r5f0_1-fw \ | ||
143 | j7200-main-r5f0_0-fw \ | ||
144 | j7200-main-r5f0_1-fw \ | ||
145 | " | ||
146 | |||
147 | # Set up link names for the firmwares | ||
148 | |||
149 | TARGET_MCU_R5FSS0_0_am65xx = "am65x-mcu-r5f0_0-fw" | ||
150 | TARGET_MCU_R5FSS0_1_am65xx = "am65x-mcu-r5f0_1-fw" | ||
151 | |||
152 | TARGET_MAIN_R5FSS0_0_am64xx = "am64-main-r5f0_0-fw" | ||
153 | TARGET_MAIN_R5FSS0_1_am64xx = "am64-main-r5f0_1-fw" | ||
154 | TARGET_MAIN_R5FSS1_0_am64xx = "am64-main-r5f1_0-fw" | ||
155 | TARGET_MAIN_R5FSS1_1_am64xx = "am64-main-r5f1_1-fw" | ||
156 | |||
157 | TARGET_MCU_R5FSS0_0_j7 = "j7-mcu-r5f0_0-fw" | ||
158 | TARGET_MCU_R5FSS0_1_j7 = "j7-mcu-r5f0_1-fw" | ||
159 | TARGET_MAIN_R5FSS0_0_j7 = "j7-main-r5f0_0-fw" | ||
160 | TARGET_MAIN_R5FSS0_1_j7 = "j7-main-r5f0_1-fw" | ||
161 | TARGET_MAIN_R5FSS1_0_j7 = "j7-main-r5f1_0-fw" | ||
162 | TARGET_MAIN_R5FSS1_1_j7 = "j7-main-r5f1_1-fw" | ||
163 | TARGET_C66_0_j7 = "j7-c66_0-fw" | ||
164 | TARGET_C66_1_j7 = "j7-c66_1-fw" | ||
165 | TARGET_C7X_j7 = "j7-c71_0-fw" | ||
166 | |||
167 | TARGET_MCU_R5FSS0_0_j7200-evm = "j7200-mcu-r5f0_0-fw" | ||
168 | TARGET_MCU_R5FSS0_1_j7200-evm = "j7200-mcu-r5f0_1-fw" | ||
169 | TARGET_MAIN_R5FSS0_0_j7200-evm = "j7200-main-r5f0_0-fw" | ||
170 | TARGET_MAIN_R5FSS0_1_j7200-evm = "j7200-main-r5f0_1-fw" | ||
171 | |||
172 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
173 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
174 | |||
175 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
176 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
177 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
178 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
179 | |||
180 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
181 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
182 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
183 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
184 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
185 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
186 | ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}" | ||
187 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}" | ||
188 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}" | ||
189 | |||
190 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
191 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
192 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
193 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
194 | |||
195 | # Create the firmware alternatives | ||
196 | |||
197 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" | ||
198 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
199 | |||
200 | ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f" | ||
201 | ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f" | ||
202 | ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f" | ||
203 | ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f" | ||
204 | |||
205 | ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
206 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
207 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
208 | ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
209 | ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f" | ||
210 | ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f" | ||
211 | ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66" | ||
212 | ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" | ||
213 | ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" | ||
214 | |||
215 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
216 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
217 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
218 | ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
219 | |||
220 | ALTERNATIVE_PRIORITY = "10" | ||
78 | 221 | ||
79 | # make sure that lib/firmware, and all its contents are part of the package | 222 | # make sure that lib/firmware, and all its contents are part of the package |
80 | FILES_${PN} += "${base_libdir}/firmware" | 223 | FILES_${PN} += "${base_libdir}/firmware" |
81 | 224 | ||
82 | 225 | # This is used to prevent the build system to_strip the executables | |
83 | INHIBIT_PACKAGE_STRIP = "1" | 226 | INHIBIT_PACKAGE_STRIP = "1" |
227 | INHIBIT_SYSROOT_STRIP = "1" | ||
228 | # This is used to prevent the build system to split the debug info in a separate file | ||
84 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 229 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
230 | # As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP | ||
85 | INSANE_SKIP_${PN} += "arch" | 231 | INSANE_SKIP_${PN} += "arch" |
86 | 232 | ||
233 | # we don't want to configure and build the source code | ||
87 | do_compile[noexec] = "1" | 234 | do_compile[noexec] = "1" |
88 | do_configure[noexec] = "1" | 235 | do_configure[noexec] = "1" |