Skip to contentSkip to conversation

cmd: source: Support FITs with external data

PATCH New Sean Anderson 1 participant 1 message May 16, 2022

lore
Share & tools
lore
#0 lore raw

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.

---

 cmd/source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/source.c +1 -1
index 81e015b64e..bb98255fe8 100644
@@ -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