mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue