Skip to content
Snippets Groups Projects
Commit c250ce0f authored by Chris Packham's avatar Chris Packham Committed by Luka Perkov
Browse files

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: default avatarChris Packham <judge.packham@gmail.com>
Acked-by: default avatarStefan Roese <sr@denx.de>
Acked-by: default avatarPrafulla Wadaskar <prafulla@marvell.com>
parent e3c6c7bf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment