tools: binman: add 'fit, encrypt' property to pass keys directory to mkimage
authorPaul HENRYS <paul.henrys_ext@softathome.com>
Mon, 25 Nov 2024 17:47:16 +0000 (18:47 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Dec 2024 15:10:34 +0000 (09:10 -0600)
commite2cc9b4fc10f521fac098ab5e324446125e6a85d
tree6556201ffc3ee11f980e6f48ca3442bb04fa6bbc
parent79d7b11102e31f3b92afff1c94dd9fe1a8b9a9e4
tools: binman: add 'fit, encrypt' property to pass keys directory to mkimage

mkimage can be used for both signing the FIT or encrypt its content and the
option '-k' can be used to pass a directory where both signing and encryption
keys can be retrieved. Adding 'fit,encrypt' property to the 'fit' node, leads to
try to find keys directory among binman include directories.
_get_priv_keys_dir() is renamed as _get_keys_dir() and adapted to support both
signing and encryption nodes in the FIT.

Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/binman/btool/mkimage.py
tools/binman/entries.rst
tools/binman/etype/fit.py