[U-Boot] [PATCH] cmd: ximg.c: Add support for getting external data address and length
tien.fong.chee at intel.com
tien.fong.chee at intel.com
Tue Feb 12 12:49:30 UTC 2019
From: Tien Fong Chee <tien.fong.chee at intel.com>
This function supports getting both data address and length for
existing FIT subimage and FIT external data.
Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
---
cmd/ximg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/ximg.c b/cmd/ximg.c
index 6880c74..0ca37b3 100644
--- a/cmd/ximg.c
+++ b/cmd/ximg.c
@@ -159,9 +159,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
}
}
- /* get subimage data address and length */
- if (fit_image_get_data(fit_hdr, noffset,
- &fit_data, &fit_len)) {
+ /* get subimage/external data address and length */
+ if (fit_image_get_data_and_size(fit_hdr, noffset,
+ &fit_data, &fit_len)) {
puts("Could not find script subimage data\n");
return 1;
}
--
1.7.7.4
More information about the U-Boot
mailing list