summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2_timing.h
diff options
context:
space:
mode:
authorRoman Azarenko <roman.azarenko@iopsys.eu>2023-08-25 10:10:14 +0200
committerTom Rini <trini@konsulko.com>2023-10-11 13:22:32 -0400
commit0cf1a136d861533645b901d5d3f09a1908883a63 (patch)
treeff5c7bec236fa0ce5efa00b9afb31abcbf41c0fc /drivers/ddr/microchip/ddr2_timing.h
parent6442434d5184188871a33154b610f7ffdb13a406 (diff)
tools: ensure zeroed padding in external FIT images
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.azarenko@iopsys.eu> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_timing.h')
0 files changed, 0 insertions, 0 deletions