[PATCH] fit: Allow external data for FDTs

John Keeping john at metanate.com
Fri Jun 25 18:58:04 CEST 2021


Switch to fit_image_get_data_and_size() for consistency with all other
data loaded from FIT.

Signed-off-by: John Keeping <john at metanate.com>
---
 common/image-fit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/image-fit.c b/common/image-fit.c
index 94501b1071..4c5a24806d 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1772,7 +1772,8 @@ int fit_conf_find_compat(const void *fit, const void *fdt)
 			}
 
 			/* search in this config's kernel FDT */
-			if (fit_image_get_data(fit, kfdt_noffset, &fdt, &sz)) {
+			if (fit_image_get_data_and_size(fit, kfdt_noffset,
+							&fdt, &sz)) {
 				debug("Failed to get fdt \"%s\".\n", kfdt_name);
 				continue;
 			}
-- 
2.32.0



More information about the U-Boot mailing list