]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Align kwbimage header to proper size
authorPali Rohár <pali@kernel.org>
Mon, 8 Nov 2021 17:12:48 +0000 (18:12 +0100)
committerStefan Roese <sr@denx.de>
Wed, 10 Nov 2021 11:08:06 +0000 (12:08 +0100)
commit5cad2e6ccee1e5a53107dd6c74c60a6d0da46690
tree30311ea891e3a21b7b4963835a2a129ef59f9b8d
parente23ad5d55cbc16581e8686b09da0258e068e6653
tools: kwbimage: Align kwbimage header to proper size

Currently kwbimage header is always aligned to 4096 bytes. But it does not
have to be aligned to such a high value.

The header needs to be just 4-byte aligned, while some image types have
additional alignment restrictions.

This change reduces size of kwbimage binaries by removing extra padding
between header and data part.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c