diff mbox series

cmd: source: Support FITs with external data

Message ID 20220516201503.4071179-1-sean.anderson@seco.com
State Deferred
Delegated to: Tom Rini
Headers show
Series cmd: source: Support FITs with external data | expand

Commit Message

Sean Anderson May 16, 2022, 8:15 p.m. UTC
fit_image_get_data only supports FITs with inline data. Switch to
fit_image_get_data_and_size to support FITs with external data as well.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

 cmd/source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/cmd/source.c b/cmd/source.c
index 81e015b64e..bb98255fe8 100644
--- a/cmd/source.c
+++ b/cmd/source.c
@@ -141,7 +141,7 @@  int image_source_script(ulong addr, const char *fit_uname)
 		}
 
 		/* get script subimage data address and length */
-		if (fit_image_get_data (fit_hdr, noffset, &fit_data, &fit_len)) {
+		if (fit_image_get_data_and_size(fit_hdr, noffset, &fit_data, &fit_len)) {
 			puts ("Could not find script subimage data\n");
 			return 1;
 		}