cmd: source: Support FITs with external data
PATCH 1/1 cmd: source: Support FITs with external data
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 <[email protected]>
---
cmd/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/source.c +1 -1
@@ -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 ; }
Signature · 1 line
2.35.1.1320.gc452695387.dirty