]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Calculate real used space in kwbimage header when calling kwboot_img_g...
authorPali Rohár <pali@kernel.org>
Mon, 25 Oct 2021 13:13:02 +0000 (15:13 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
commitd656f5a0ee224f29253573a6641ccb8fc1a3afad
tree67b32a8f130896e65752852cf4793093b54445b6
parente511cc3b1ad8ced8e18464edf22f5b8a83ec1cb3
tools: kwboot: Calculate real used space in kwbimage header when calling kwboot_img_grow_hdr()

Size of the header stored in kwbimage may be larger than real used size in
the kwbimage header. If there is unused space in kwbimage header then use
it for growing it. So update code to calculate used space of kwbimage
header.

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