tools: fit_image: Use fit_image_get_data_and_size for getting offset/size
authorAndrew F. Davis <afd@ti.com>
Tue, 17 Sep 2019 21:09:34 +0000 (17:09 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jan 2020 16:12:46 +0000 (11:12 -0500)
commite5b5628e8a3e4476509a025121315480ea7b79ca
tree4c9e2f53390f1e50beaadee96f0e70031e0009d1
parent79e984c470f7a2bfa4d292214a985ec39185d935
tools: fit_image: Use fit_image_get_data_and_size for getting offset/size

This is very similar to fit_image_get_data but has the benefit of working
on FIT images with external data unlike fit_image_get_data. This is
useful for extracting sub-images from type of FIT image as this would
previously just silently fail. Add an error message also so if this
still fails it is easier to find out why.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
tools/fit_image.c