commit | d656f5a0ee224f29253573a6641ccb8fc1a3afad | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Mon Oct 25 15:13:02 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Wed Nov 03 06:45:27 2021 +0100 |
tree | 67b32a8f130896e65752852cf4793093b54445b6 | |
parent | e511cc3b1ad8ced8e18464edf22f5b8a83ec1cb3 [diff] |
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>