binman: etype: Add u-boot-spl-pubkey-dtb etype
authorLukas Funke <lukas.funke@weidmueller.com>
Tue, 18 Jul 2023 11:53:15 +0000 (13:53 +0200)
committerSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2023 15:34:10 +0000 (09:34 -0600)
commit5609843b57a42a3b05b2e14e3bb51b0451c429a1
treed50bc6f98e3cc41c1e3e2c3f98de10deda4a823d
parent671bc4334668fc4280f9d56e83a7b208cdd9ba8f
binman: etype: Add u-boot-spl-pubkey-dtb etype

This adds a new etype 'u-boot-spl-pubkey-dtb'. The etype adds the public
key from a certificate to the dtb. This creates a '/signature' node which
is turn contains the fields which make up the public key. Usually this
is done by 'mkimage -K'. However, 'binman sign' does not add the public
key to the SPL. This is why the pubkey is added using this etype.

The etype calls the underlying 'fdt_add_pubkey' tool.

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/binman/entries.rst
tools/binman/etype/u_boot_spl_pubkey_dtb.py [new file with mode: 0644]