[PATCH] cmd: source: Support FITs with external data

16 May
2022
16 May
'22
10:15 p.m.
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 --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; }
--
2.35.1.1320.gc452695387.dirty
1094
Age (days ago)
1094
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sean Anderson