]> git.baikalelectronics.ru Git - uboot.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)
commita075a68b1344dce1af4f04eaf94a8bcc01ae5475
tree67b32a8f130896e65752852cf4793093b54445b6
parent52cfa4745f82a2700c8ecbea83b39757e2bf022d
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