diff options
author | Andrew Davis <afd@ti.com> | 2023-02-15 13:33:53 -0600 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-03-01 09:24:28 -0600 |
commit | 2122ea84b63c2ef211a7458f43b6fb1d66e9aab4 (patch) | |
tree | 90b2f7958fc6f24729da8c2273a50e97b916ec3e | |
parent | 5d3e675b5dce06f8cf1bf91fdb0b8750d509e27d (diff) | |
download | meta-ti-2122ea84b63c2ef211a7458f43b6fb1d66e9aab4.tar.gz |
ti-rtos-firmware: Use a table instead of a list of copy commands
Using a table makes it easier to see what firmware is included with
each machine build. It also helps prevent errors here.
Since the same functions run across machines we now sign all the firmware
without needing to add a new signing function for each new machine.
Another fix is that we install the DM firmware to the deploy directory
for all machines that use need it. This was added for J7x machines
but missed for AM62x.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 276 |
1 files changed, 67 insertions, 209 deletions
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index 396850b4..1b8e1cd2 100644 --- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -62,78 +62,32 @@ C7X_4_FW = "ipc_echo_test_c7x_4_release_strip.xe71" | |||
62 | 62 | ||
63 | ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" | 63 | ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" |
64 | 64 | ||
65 | # J721e HS support | 65 | DM_FW_LIST = "" |
66 | do_install:prepend:j721e-hs-evm() { | 66 | DM_FW_LIST:am65xx = "" |
67 | ( cd ${RTOS_DM_FW_DIR}; \ | 67 | DM_FW_LIST:j721e = "${DM_FIRMWARE}" |
68 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | 68 | DM_FW_LIST:j7200 = "${DM_FIRMWARE}" |
69 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | 69 | DM_FW_LIST:j721s2 = "${DM_FIRMWARE}" |
70 | ) | 70 | DM_FW_LIST:am64xx = "" |
71 | ( | 71 | DM_FW_LIST:am62xx = "${DM_FIRMWARE}" |
72 | cd ${RTOS_IPC_FW_DIR}; \ | 72 | DM_FW_LIST:j784s4 = "${DM_FIRMWARE}" |
73 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_0_FW} \ | 73 | |
74 | ${MCU_2_0_FW}.signed; \ | 74 | IPC_FW_LIST = "" |
75 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_1_FW} \ | 75 | IPC_FW_LIST:am65xx = "${MCU_1_0_FW} ${MCU_1_1_FW}" |
76 | ${MCU_2_1_FW}.signed; \ | 76 | IPC_FW_LIST:j721e = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C66_1_FW} ${C66_2_FW} ${C7X_1_FW}" |
77 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_3_0_FW} \ | 77 | IPC_FW_LIST:j7200 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW}" |
78 | ${MCU_3_0_FW}.signed; \ | 78 | IPC_FW_LIST:j721s2 = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_2_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW}" |
79 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_3_1_FW} \ | 79 | IPC_FW_LIST:am64xx = "${MCU_1_0_FW} ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW}" |
80 | ${MCU_3_1_FW}.signed; \ | 80 | IPC_FW_LIST:am62xx = " ${MCU_2_0_FW}" |
81 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${C66_1_FW} \ | 81 | IPC_FW_LIST:j784s4 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW} ${C7X_4_FW}" |
82 | ${C66_1_FW}.signed; \ | 82 | |
83 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${C66_2_FW} \ | 83 | ETH_FW_LIST = "" |
84 | ${C66_2_FW}.signed; \ | 84 | ETH_FW_LIST:am65xx = "" |
85 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${C7X_1_FW} \ | 85 | ETH_FW_LIST:j721e = "${ETH_FW}" |
86 | ${C7X_1_FW}.signed; \ | 86 | ETH_FW_LIST:j7200 = "${ETH_FW}" |
87 | ) | 87 | ETH_FW_LIST:j721s2 = "" |
88 | ( | 88 | ETH_FW_LIST:am64xx = "" |
89 | cd ${RTOS_ETH_FW_DIR}; \ | 89 | ETH_FW_LIST:am62xx = "" |
90 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${ETH_FW} \ | 90 | ETH_FW_LIST:j784s4 = "${ETH_FW}" |
91 | ${ETH_FW}.signed; | ||
92 | ) | ||
93 | } | ||
94 | |||
95 | # J7200 HS support | ||
96 | do_install:prepend:j7200-hs-evm() { | ||
97 | ( cd ${RTOS_DM_FW_DIR}; \ | ||
98 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | ||
99 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | ||
100 | ) | ||
101 | ( | ||
102 | cd ${RTOS_IPC_FW_DIR}; \ | ||
103 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_0_FW} \ | ||
104 | ${MCU_2_0_FW}.signed; \ | ||
105 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_1_FW} \ | ||
106 | ${MCU_2_1_FW}.signed; \ | ||
107 | ) | ||
108 | ( | ||
109 | cd ${RTOS_ETH_FW_DIR}; \ | ||
110 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${ETH_FW} \ | ||
111 | ${ETH_FW}.signed; | ||
112 | ) | ||
113 | } | ||
114 | |||
115 | # J721s2 HS support | ||
116 | do_install:prepend:j721s2-hs-evm() { | ||
117 | ( cd ${RTOS_DM_FW_DIR}; \ | ||
118 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | ||
119 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | ||
120 | ) | ||
121 | ( | ||
122 | cd ${RTOS_IPC_FW_DIR}; \ | ||
123 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_0_FW} \ | ||
124 | ${MCU_2_0_FW}.signed; \ | ||
125 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_2_1_FW} \ | ||
126 | ${MCU_2_1_FW}.signed; \ | ||
127 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_3_0_FW} \ | ||
128 | ${MCU_3_0_FW}.signed; \ | ||
129 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${MCU_3_1_FW} \ | ||
130 | ${MCU_3_1_FW}.signed; \ | ||
131 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${C7X_1_FW} \ | ||
132 | ${C7X_1_FW}.signed; \ | ||
133 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${C7X_2_FW} \ | ||
134 | ${C7X_2_FW}.signed; \ | ||
135 | ) | ||
136 | } | ||
137 | 91 | ||
138 | # Update the am64xx ipc binaries to be consistent with other platforms | 92 | # Update the am64xx ipc binaries to be consistent with other platforms |
139 | do_install:prepend:am64xx() { | 93 | do_install:prepend:am64xx() { |
@@ -153,158 +107,62 @@ do_install:prepend:am62xx() { | |||
153 | ) | 107 | ) |
154 | } | 108 | } |
155 | 109 | ||
156 | #Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level | 110 | # Sign the firmware |
157 | do_install() { | 111 | do_install:prepend() { |
158 | : | ||
159 | } | ||
160 | |||
161 | do_install:j721e() { | ||
162 | install -d ${LEGACY_IPC_FW_DIR} | ||
163 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
164 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
165 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
166 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW} ${LEGACY_IPC_FW_DIR} | ||
167 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW} ${LEGACY_IPC_FW_DIR} | ||
168 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C66_1_FW} ${LEGACY_IPC_FW_DIR} | ||
169 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C66_2_FW} ${LEGACY_IPC_FW_DIR} | ||
170 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW} ${LEGACY_IPC_FW_DIR} | ||
171 | # DM Firmware | 112 | # DM Firmware |
172 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | 113 | for FW_NAME in ${DM_FW_LIST} |
173 | # ETH firmware | 114 | do |
174 | install -d ${LEGACY_ETH_FW_DIR} | 115 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${RTOS_DM_FW_DIR}/${FW_NAME} ${RTOS_DM_FW_DIR}/${FW_NAME}.signed |
175 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | 116 | done |
176 | } | ||
177 | 117 | ||
178 | do_install:append:j721e-hs-evm() { | 118 | # IPC Firmware |
179 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW}.signed ${LEGACY_IPC_FW_DIR} | 119 | for FW_NAME in ${IPC_FW_LIST} |
180 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW}.signed ${LEGACY_IPC_FW_DIR} | 120 | do |
181 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW}.signed ${LEGACY_IPC_FW_DIR} | 121 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${RTOS_IPC_FW_DIR}/${FW_NAME} ${RTOS_IPC_FW_DIR}/${FW_NAME}.signed |
182 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW}.signed ${LEGACY_IPC_FW_DIR} | 122 | done |
183 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C66_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
184 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C66_2_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
185 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
186 | # ETH firmware | ||
187 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW}.signed ${LEGACY_ETH_FW_DIR} | ||
188 | } | ||
189 | 123 | ||
190 | do_install:j7200-evm() { | ||
191 | install -d ${LEGACY_IPC_FW_DIR} | ||
192 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
193 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
194 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
195 | # DM Firmware | ||
196 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | ||
197 | # ETH firmware | 124 | # ETH firmware |
198 | install -d ${LEGACY_ETH_FW_DIR} | 125 | for FW_NAME in ${ETH_FW_LIST} |
199 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | 126 | do |
127 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${RTOS_ETH_FW_DIR}/${FW_NAME} ${RTOS_ETH_FW_DIR}/${FW_NAME}.signed; | ||
128 | done | ||
200 | } | 129 | } |
201 | 130 | ||
202 | do_install:j7200-hs-evm() { | 131 | #Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level |
203 | install -d ${LEGACY_IPC_FW_DIR} | 132 | do_install() { |
204 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
205 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
206 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
207 | # Signed Firmwares | ||
208 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
209 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
210 | # DM Firmware | ||
211 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | ||
212 | # ETH firmware | ||
213 | install -d ${LEGACY_ETH_FW_DIR} | ||
214 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | ||
215 | # ETH Signed firmware | ||
216 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW}.signed ${LEGACY_ETH_FW_DIR} | ||
217 | } | ||
218 | |||
219 | do_install:j721s2-evm() { | ||
220 | install -d ${LEGACY_IPC_FW_DIR} | ||
221 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
222 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
223 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
224 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW} ${LEGACY_IPC_FW_DIR} | ||
225 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW} ${LEGACY_IPC_FW_DIR} | ||
226 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW} ${LEGACY_IPC_FW_DIR} | ||
227 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_2_FW} ${LEGACY_IPC_FW_DIR} | ||
228 | # DM Firmware | 133 | # DM Firmware |
229 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | 134 | install -d ${LEGACY_DM_FW_DIR} |
230 | # ETH firmware | 135 | for FW_NAME in ${DM_FW_LIST} |
231 | # install -d ${LEGACY_ETH_FW_DIR} | 136 | do |
232 | # install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | 137 | install -m 0644 ${RTOS_DM_FW_DIR}/${FW_NAME} ${LEGACY_DM_FW_DIR}/${FW_NAME}.unsigned |
233 | } | 138 | install -m 0644 ${RTOS_DM_FW_DIR}/${FW_NAME}.signed ${LEGACY_DM_FW_DIR}/${FW_NAME} |
234 | 139 | done | |
235 | do_install:j721s2-hs-evm() { | 140 | |
141 | # IPC Firmware | ||
236 | install -d ${LEGACY_IPC_FW_DIR} | 142 | install -d ${LEGACY_IPC_FW_DIR} |
237 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | 143 | for FW_NAME in ${IPC_FW_LIST} |
238 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | 144 | do |
239 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | 145 | install -m 0644 ${RTOS_IPC_FW_DIR}/${FW_NAME} ${LEGACY_IPC_FW_DIR} |
240 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW} ${LEGACY_IPC_FW_DIR} | 146 | install -m 0644 ${RTOS_IPC_FW_DIR}/${FW_NAME}.signed ${LEGACY_IPC_FW_DIR} |
241 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW} ${LEGACY_IPC_FW_DIR} | 147 | done |
242 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW} ${LEGACY_IPC_FW_DIR} | ||
243 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_2_FW} ${LEGACY_IPC_FW_DIR} | ||
244 | # Signed firmware | ||
245 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
246 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
247 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
248 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
249 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
250 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_2_FW}.signed ${LEGACY_IPC_FW_DIR} | ||
251 | # DM Firmware | ||
252 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | ||
253 | # ETH firmware | ||
254 | # install -d ${LEGACY_ETH_FW_DIR} | ||
255 | # install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | ||
256 | } | ||
257 | 148 | ||
258 | do_install:j784s4-evm() { | ||
259 | install -d ${LEGACY_IPC_FW_DIR} | ||
260 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
261 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
262 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
263 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW} ${LEGACY_IPC_FW_DIR} | ||
264 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_1_FW} ${LEGACY_IPC_FW_DIR} | ||
265 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_4_0_FW} ${LEGACY_IPC_FW_DIR} | ||
266 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_4_1_FW} ${LEGACY_IPC_FW_DIR} | ||
267 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_1_FW} ${LEGACY_IPC_FW_DIR} | ||
268 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_2_FW} ${LEGACY_IPC_FW_DIR} | ||
269 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_3_FW} ${LEGACY_IPC_FW_DIR} | ||
270 | install -m 0644 ${RTOS_IPC_FW_DIR}/${C7X_4_FW} ${LEGACY_IPC_FW_DIR} | ||
271 | # DM Firmware | ||
272 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | ||
273 | # ETH firmware | 149 | # ETH firmware |
274 | install -d ${LEGACY_ETH_FW_DIR} | 150 | install -d ${LEGACY_ETH_FW_DIR} |
275 | install -m 0644 ${RTOS_ETH_FW_DIR}/${ETH_FW} ${LEGACY_ETH_FW_DIR} | 151 | for FW_NAME in ${ETH_FW_LIST} |
152 | do | ||
153 | install -m 0644 ${RTOS_ETH_FW_DIR}/${FW_NAME} ${LEGACY_ETH_FW_DIR} | ||
154 | install -m 0644 ${RTOS_ETH_FW_DIR}/${FW_NAME}.signed ${LEGACY_ETH_FW_DIR} | ||
155 | done | ||
276 | } | 156 | } |
277 | 157 | ||
278 | do_install:am65xx() { | ||
279 | install -d ${LEGACY_IPC_FW_DIR} | ||
280 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_0_FW} ${LEGACY_IPC_FW_DIR} | ||
281 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
282 | } | ||
283 | |||
284 | do_install:am64xx() { | ||
285 | install -d ${LEGACY_IPC_FW_DIR} | ||
286 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_0_FW} ${LEGACY_IPC_FW_DIR} | ||
287 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_1_1_FW} ${LEGACY_IPC_FW_DIR} | ||
288 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
289 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_1_FW} ${LEGACY_IPC_FW_DIR} | ||
290 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_3_0_FW} ${LEGACY_IPC_FW_DIR} | ||
291 | } | ||
292 | |||
293 | do_install:am62xx() { | ||
294 | install -d ${LEGACY_IPC_FW_DIR} | ||
295 | install -m 0644 ${RTOS_IPC_FW_DIR}/${MCU_2_0_FW} ${LEGACY_IPC_FW_DIR} | ||
296 | # DM Firmware | ||
297 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${LEGACY_DM_FW_DIR} | ||
298 | } | ||
299 | |||
300 | |||
301 | do_deploy() { | 158 | do_deploy() { |
159 | # DM Firmware is needed for rebuilding U-Boot | ||
302 | install -d ${DEPLOYDIR} | 160 | install -d ${DEPLOYDIR} |
303 | } | 161 | for FW_NAME in ${DM_FW_LIST} |
304 | 162 | do | |
305 | do_deploy:am62xx() { | 163 | install -m 0644 ${RTOS_DM_FW_DIR}/${FW_NAME} ${DEPLOYDIR}/${FW_NAME}.unsigned |
306 | install -d ${DEPLOYDIR} | 164 | install -m 0644 ${RTOS_DM_FW_DIR}/${FW_NAME}.signed ${DEPLOYDIR}/${FW_NAME} |
307 | install -m 0644 ${RTOS_DM_FW_DIR}/${DM_FIRMWARE} ${DEPLOYDIR} | 165 | done |
308 | } | 166 | } |
309 | 167 | ||
310 | # Set up names for the firmwares | 168 | # Set up names for the firmwares |