On Fri, Aug 25, 2023 at 10:10:14AM +0200, Roman Azarenko wrote: > Padding the header of an external FIT image is achieved by truncating > the existing temporary FIT file to match the required alignment before > appending image data. Reusing an existing file this way means that the > padding will likely contain a portion of the original data not > overwritten by the new header. > > Zero out any data past the end of the new header, and stop at either > the end of the desired padding, or the end of the old FIT file, > whichever comes first. > > Fixes: 7946a814a319 ("Revert "mkimage: fit: Do not tail-pad fitImage with > external data"") > Signed-off-by: Roman Azarenko <roman.azare...@iopsys.eu> > Reviewed-by: Simon Glass <s...@chromium.org>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: PGP signature