diff options
author | Chris Packham <judge.packham@gmail.com> | 2015-02-23 11:25:20 +1300 |
---|---|---|
committer | Luka Perkov <luka.perkov@sartura.hr> | 2015-03-05 22:08:59 +0100 |
commit | c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a (patch) | |
tree | aff8efb999c4dcf973729309fa3b31897354a2df /tools | |
parent | e3c6c7bfee388ceeb98991e9b08c83f097f3b02c (diff) | |
download | u-boot-imx-c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a.zip u-boot-imx-c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a.tar.gz u-boot-imx-c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a.tar.bz2 |
kwbimage: align v1 binary header to 4B
According to the Armada-XP documentation the binary header format
requires the header length to be aligned to 4B.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwbimage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index de5c808..9540e7e 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -498,6 +498,7 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params, binhdrsz = sizeof(struct opt_hdr_v1) + (binarye->binary.nargs + 1) * sizeof(unsigned int) + s.st_size; + binhdrsz = ALIGN_SUP(binhdrsz, 32); hdr->headersz_lsb = binhdrsz & 0xFFFF; hdr->headersz_msb = (binhdrsz & 0xFFFF0000) >> 16; |