[PATCH] tools: mkimage/dumpimage: Allow to use -l with -T

Tom Rini trini at konsulko.com
Mon Feb 28 21:46:52 CET 2022


On Sun, Feb 13, 2022 at 01:09:46AM +0100, Pali Rohár wrote:

> Currently -l option for mkimage and dumpimage ignores option -T and always
> tries to autodetect image type.
> 
> With this change it is possible to tell mkimage and dumpimage to parse
> image file as specific type (and not random autodetected type). This allows
> to use mkimage -l or dumpimage -l as tool for validating image.
> 
> params.type for -l option is now by default initialized to zero
> (IH_TYPE_INVALID) instead of IH_TYPE_KERNEL. imagetool_get_type() for
> IH_TYPE_INVALID returns NULL, which is assigned to tparams. mkimage and
> dumpimage code is extended to handle tparams with NULL for -l option. And
> imagetool_verify_print_header() is extended to do validation via tparams if
> is not NULL.
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220228/f61b6732/attachment.sig>


More information about the U-Boot mailing list