meta-digi/meta-digi-dey/classes
Gabriel Valcazar 171e5a5db1 trustfence.bbclass: copy public key to fs only if TRUSTFENCE_SIGN is enabled
Commit 998598415a moved this logic to the
trustfence.bbclass file, but in doing so, it removed the TRUSTFENCE_SIGN check
it used to have. The check is needed for two reasons:

* The signing of SWU packages only occurs when TRUSTFENCE_SIGN is enabled, so
  there's no need to copy the key if it's disabled
* When building a project from scratch that has Trustfence enabled but
  TRUSTFENCE_SIGN disabled, a PKI is never generated and the key doesn't exist.
  Because of this, the key won't be found and an error will occur. Note that
  if your project is already pointing to a populated PKI, the error won't
  happen, only if there's no PKI to begin with.

Although the PKI is guaranteed to exist by the time the rootfs is populated,
make sure to check that it has been properly generated and create it if it
doesn't exist. This logic depends on the trustfence-gen-pki.sh from
trustfence-sign-tools-native, so add it as a dependency for
dey-image-recovery-initramfs. The dependency is already there for another
feature in the dey-image recipes, so simply reflect this new dependency in a
comment.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 8e52c27d5a8e8071c3a17754e91c1819bcceee15)
2024-11-14 13:30:03 +01:00
..
aws-iot.bbclass meta-digi: remove True option to getVar 2023-02-24 16:24:47 +01:00
dey-image-installer.bbclass dey-image-installer: add USB driver installation script for ccmp2 2024-07-30 22:22:09 +02:00
dey-image.bbclass trustfence.bbclass: copy public key to fs only if TRUSTFENCE_SIGN is enabled 2024-11-14 13:30:03 +01:00
dey-swupdate-common.bbclass swupdate: ccmp25: update variables to match the ccmp25 partition table 2024-09-13 15:59:36 +02:00
dey-swupdate.bbclass meta-digi-dey: swupdate: add firmware update support based on differences for R/O systems 2023-08-14 10:59:16 +02:00
populate_sdk_qt6.bbclass meta-digi-dey: add QT6 support 2023-02-02 18:03:38 +01:00
qt-version.bbclass meta-digi-dey: add QT6 support 2023-02-02 18:03:38 +01:00
trustfence.bbclass trustfence.bbclass: copy public key to fs only if TRUSTFENCE_SIGN is enabled 2024-11-14 13:30:03 +01:00