aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTien Fong Chee2019-02-12 20:49:30 +0800
committerTom Rini2019-04-22 18:13:22 -0400
commit3695ea5deb75b86e32a394a4f75c1f633eb07719 (patch)
tree7c392aa204ddbebc90dd35fe8f9aaca70026e348 /cmd
parentfd50eac9100e8dd04f657960f05a92a0d1a3f663 (diff)
cmd: ximg.c: Add support for getting external data address and length
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@intel.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ximg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ximg.c b/cmd/ximg.c
index 8572a67a006..32bfae8b22b 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;
}