Commit 3695ea5deb75b86e32a394a4f75c1f633eb07719

Authored by Tien Fong Chee
Committed by Tom Rini
1 parent fd50eac910

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>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -159,9 +159,9 @@
159 159 }
160 160 }
161 161  
162   - /* get subimage data address and length */
163   - if (fit_image_get_data(fit_hdr, noffset,
164   - &fit_data, &fit_len)) {
  162 + /* get subimage/external data address and length */
  163 + if (fit_image_get_data_and_size(fit_hdr, noffset,
  164 + &fit_data, &fit_len)) {
165 165 puts("Could not find script subimage data\n");
166 166 return 1;
167 167 }