diff options
author | Tom Rini <trini@konsulko.com> | 2020-01-08 15:08:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-08 15:08:34 -0500 |
commit | 3e99c183739afe698df8a4ba813940c94379095b (patch) | |
tree | 846ac3ff496f57d6440b17028bc0c801007bbdc3 /tools/fit_image.c | |
parent | d8a3f5259a36e76d1de127f65714c40918e8ee4c (diff) | |
parent | 964b90f61d2b49844bd42d0a0580e1a404063ee1 (diff) |
Merge branch '2020-01-07-master-imports'
- DT overlay support in FIT images in SPL
- remoteproc update
- Assorted SATA fixes
- Other assorted fixes
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 0201cc44d8..114df5af30 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -741,9 +741,14 @@ static int fit_image_extract( { const void *file_data; size_t file_size = 0; + int ret; - /* get the "data" property of component at offset "image_noffset" */ - fit_image_get_data(fit, image_noffset, &file_data, &file_size); + /* get the data address and size of component at offset "image_noffset" */ + ret = fit_image_get_data_and_size(fit, image_noffset, &file_data, &file_size); + if (ret) { + fprintf(stderr, "Could not get component information\n"); + return ret; + } /* save the "file_data" into the file specified by "file_name" */ return imagetool_save_subimage(file_name, (ulong) file_data, file_size); |