diff mbox series

[6/8] u-boot-tools: install fdt_add_pubkey

Message ID 20261203143044.592073-7-adrian.freihofer@siemens.com
State Under Review
Headers show
Series uboot-sign: prepare for HSM-backed FIT signing | expand

Commit Message

AdrianF Dec. 3, 2026, 2:30 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

fdt_add_pubkey adds a public key from <keydir>/<keyname>.crt to a DTB
without signing anything. It is built by cross_tools since U-Boot
2023.04 but was not installed. uboot-sign will use it to add the kernel
FIT verification keys to the U-Boot DTB.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 meta/recipes-bsp/u-boot/u-boot-tools.inc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-bsp/u-boot/u-boot-tools.inc b/meta/recipes-bsp/u-boot/u-boot-tools.inc
index 738d843591..b94a360784 100644
--- a/meta/recipes-bsp/u-boot/u-boot-tools.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-tools.inc
@@ -56,6 +56,10 @@  do_install () {
 	install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-fit_check_sign
 	ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign
 
+	# fdt_add_pubkey
+	install -m 0755 tools/fdt_add_pubkey ${D}${bindir}/uboot-fdt_add_pubkey
+	ln -sf uboot-fdt_add_pubkey ${D}${bindir}/fdt_add_pubkey
+
 	# mkeficapsule
 	install -m 0755 tools/mkeficapsule ${D}${bindir}/uboot-mkeficapsule
 	ln -sf uboot-mkeficapsule ${D}${bindir}/mkeficapsule
@@ -63,7 +67,7 @@  do_install () {
 
 ALLOW_EMPTY:${PN} = "1"
 FILES:${PN} = ""
-FILES:${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign"
+FILES:${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign ${bindir}/uboot-fdt_add_pubkey ${bindir}/fdt_add_pubkey"
 FILES:${PN}-mkenvimage = "${bindir}/uboot-mkenvimage ${bindir}/mkenvimage"
 FILES:${PN}-mkeficapsule = "${bindir}/uboot-mkeficapsule ${bindir}/mkeficapsule"