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>
This commit is contained in:
parent
fd50eac910
commit
3695ea5deb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user