mbox series

[0/8] uboot-sign: prepare for HSM-backed FIT signing

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

Message

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

This series lays some groundwork for follow-up patches enabling FIT
signing with a hardware security module (HSM), where the public key is
not available as a file. It removes the need for private keys during
the U-Boot build: the U-Boot DTB can now be populated with FIT
verification keys using their certificates alone. The new
fdt_add_pubkey utility is installed from u-boot-tools and replaces the
dummy FIT signing previously used to add keys to the DTB.

The series also gives FIT signing keys consistent defaults, moves
shared U-Boot settings into conf/uboot.conf, and removes an unnecessary
uboot-config dependency from kernel-fit-image. It fixes FIT image task
dependency tracking for oe.fitimage, adjusts a selftest DTB load
address to avoid overlap, and adds coverage for adding keys when only
their certificates are available.

Adrian Freihofer (8):
  oe.fitimage: drop unused runCmd import
  lib/oe: add fitimage to BBIMPORTS
  oe-selftest: fitimage: avoid overlapping load regions in initramfs
    bundle test
  conf/uboot.conf: move shared U-Boot defaults out of uboot-config
  uboot.conf, image-fitimage.conf: add FIT signing key name defaults
  u-boot-tools: install fdt_add_pubkey
  uboot-sign: add public keys to the U-Boot DTB with fdt_add_pubkey
  oe-selftest: fitimage: add test_sign_uboot_kernel_crt_only

 meta/classes-recipe/kernel-fit-image.bbclass  | 11 ++--
 meta/classes-recipe/uboot-config.bbclass      | 21 +------
 meta/classes-recipe/uboot-sign.bbclass        | 61 ++++---------------
 meta/conf/image-fitimage.conf                 |  8 +++
 meta/conf/uboot.conf                          | 37 +++++++++++
 meta/lib/oe/__init__.py                       |  2 +-
 meta/lib/oe/fitimage.py                       |  2 -
 meta/lib/oeqa/selftest/cases/fitimage.py      | 52 ++++++++++++----
 meta/recipes-bsp/u-boot/u-boot-tools.inc      |  6 +-
 .../kernel-signing-keys-native.bb             |  1 +
 10 files changed, 110 insertions(+), 91 deletions(-)
 create mode 100644 meta/conf/uboot.conf