[U-Boot] [PATCH] common: image: Remove FIT header update from image post-processing

Simon Glass sjg at chromium.org
Thu Nov 24 03:20:50 CET 2016


On 21 November 2016 at 13:37, Andrew F. Davis <afd at ti.com> wrote:
> After an image is selected out of a FIT blob for further processing we
> run an optional, platform specific, post-processing function on this
> component. This post-processing may modify the position and size of the
> image, so after post-processing we update the location and size for this
> image in the FIT header. This can cause problems as the position of
> subsequent components in the FIT blob are only referenced by relative
> position to the end of the last component. When we resize or move a
> component the following components position will be calculated
> incorrectly. To fix this, we do not update the FIT header but instead
> only update our local understanding of the image data. This also allows
> us to re-run post-processing steps if needed.
>
> Signed-off-by: Andrew F. Davis <afd at ti.com>
> Tested-by: Carlos Hernandez <ceh at ti.com>
> ---
>  common/image-fit.c | 29 ++++++-----------------------
>  1 file changed, 6 insertions(+), 23 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list