tools: kwbimage: Do not put final image padding to the image data size
authorPali Rohár <pali@kernel.org>
Mon, 8 Nov 2021 17:12:47 +0000 (18:12 +0100)
committerStefan Roese <sr@denx.de>
Wed, 10 Nov 2021 11:08:06 +0000 (12:08 +0100)
commite23ad5d55cbc16581e8686b09da0258e068e6653
tree2c1bc50c7af47ce4e0e551be7b30c97f807afa1d
parent188099ed7ff4f606a2a74ac82350a78c26bdfe2c
tools: kwbimage: Do not put final image padding to the image data size

This change allows to convert image from one format to another without need
to include unnecessary padding (e.g. when target image format has smaller
alignment requirement as source image format).

Do it by storing real image data size without padding to the kwbimage
header.

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