| Message ID | 20261203143044.592073-1-adrian.freihofer@siemens.com |
|---|---|
| Headers | show
Received: from mta-64-225.siemens.flowmailer.net
(mta-64-225.siemens.flowmailer.net [185.136.64.225])
by mx.groups.io with SMTP id smtpd.msgproc02-g2.15325.1796308258690838220
for <openembedded-core@lists.openembedded.org>;
Thu, 03 Dec 2026 06:30:59 -0800
Authentication-Results: mx.groups.io;
dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1
header.b=a5d71gQF;
spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225,
mailfrom: fm-1329275-202612031430554c0118766500020723-n9avsf@rts-flowmailer.siemens.com)
Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id
202612031430554c0118766500020723
for <openembedded-core@lists.openembedded.org>;
Thu, 03 Dec 2026 15:30:56 +0100
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1;
d=siemens.com; i=adrian.freihofer@siemens.com;
h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:Date:Message-ID:MIME-Version;
bh=wLcW1dIw4NmLw0Vkj6/k9eA7eCQ2aJUWfFjI88rHQWU=;
b=a5d71gQFfvWca9U12PBf5jq2YVjlPNs7rDaBu6ocfpUO0pAMY/NDGKGUrMEeOkHFV3kmdS
57ts8oqJsy8MGDqOFEWHe+AvrPtfErhCCRLD7QQswd9RSW3etm7XRrUrVOunEFJkxbka4GWr
P9MlPOIL3cRf5DSUSn42U8bpibeCdIva0x/40LNjDN9GG/5WO4TiLnxXWlQneReLdaaHdBs6
i0/xkZHsnqjcEmXso6xCP0/P421IeHJ1oNK5qmiMiViruZks4UAE4ecxUSsHySrEqV7k/w84
ZLpKf0y+VyPjav4jwQH84wcdjBk5yOU838afgYMOJ9VRp9s6I7clkUJA==;
From: AdrianF <adrian.freihofer@siemens.com>
To: openembedded-core@lists.openembedded.org
Cc: marex@nabladev.com,
Adrian Freihofer <adrian.freihofer@siemens.com>
Subject: [PATCH 0/8] uboot-sign: prepare for HSM-backed FIT signing
Date: Thu, 3 Dec 2026 15:30:03 +0100
Message-ID: <20261203143044.592073-1-adrian.freihofer@siemens.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Flowmailer-Platform: Siemens
Feedback-ID: 519:519-1329275:519-21489:flowmailer
List-Id: <openembedded-core.lists.openembedded.org>
X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com
[45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for
<openembedded-core@lists.openembedded.org>; Thu, 03 Dec 2026 14:31:06 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/251902
Content-Type: text/plain; charset="utf-8"
|
| Series |
uboot-sign: prepare for HSM-backed FIT signing
|
expand
|
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