Merge patch series "binman: properly error out if path provided to key-name-hint...
authorTom Rini <trini@konsulko.com>
Tue, 1 Jul 2025 16:52:04 +0000 (10:52 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 1 Jul 2025 16:52:04 +0000 (10:52 -0600)
commitcbb5672790d400e9ec6e9fceaf89ece2660c0117
tree4b0b189b36d905e49762a94c5f788102f41b3763
parent919ba46d7283c33026178dad8a0c6cc28ee58001
parent4e7e0ebcf59794b97542bb6b3d1e0a0fefa145f2
Merge patch series "binman: properly error out if path provided to key-name-hint in signature nodes"

Quentin Schulz <foss+uboot@0leil.net> says:

I misunderstood the documentation and put the signing key in a keys/
directory while setting key-name-hint property in the signature node and
u-boot-spl-pubkey-dtb to a path.

mkimage doesn't fail if it cannot find the public key when signing a
FIT but returns something on stderr to notify the user it couldn't find
the key. The issue is that bintool currently discards stderr if the
command successfully returns, so the FIT is not signed AND the user
isn't made aware of it unless the image is manually inspected.

mkimage does fail when trying to insert a public key in a DTB if it
isn't found but we can have a better error message.

Link: https://lore.kernel.org/r/20250418-binman-pubkey-dir-v2-0-b6b90a765ffe@cherry.de
tools/binman/etype/fit.py
tools/binman/ftest.py