From: Tien Fong Chee Date: Tue, 12 Feb 2019 12:49:30 +0000 (+0800) Subject: cmd: ximg.c: Add support for getting external data address and length X-Git-Tag: v2019.07-rc1~11^2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3695ea5deb75b86e32a394a4f75c1f633eb07719;p=oweals%2Fu-boot.git 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 --- diff --git a/cmd/ximg.c b/cmd/ximg.c index 8572a67a00..32bfae8b22 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; }