meta-digi/meta-digi-dey/recipes-core
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
..
base-files base-files: fix conflict with procps about sysctl.conf 2024-09-12 13:55:26 +02:00
busybox global: add Upstream-Status tag to all patches 2024-10-17 13:03:37 +02:00
images trustfence.bbclass: copy public key to fs only if TRUSTFENCE_SIGN is enabled 2024-11-14 13:30:03 +01:00
init-ifupdown init-ifupdown: virtwlans: add support to ConnectCore MP2 platform 2024-09-19 13:37:01 +02:00
initscripts Update Digi Copyright header 2024-07-15 09:28:58 +02:00
packagegroups meta-digi: integrate ConnectCore MP25 DVK platform on common recipes 2024-07-22 17:12:33 +02:00
psplash dey: cosmetic, mark patches as DEY specific 2024-10-22 15:48:00 +02:00
readline Update Digi Copyright header 2024-07-15 09:28:58 +02:00
recovery recovery-utils: add preprocessor flag to change recovery tool usage help 2024-09-04 11:34:40 +02:00
system-monitor Update Digi Copyright header 2024-07-15 09:28:58 +02:00
systemd dey: cosmetic, mark patches as DEY specific 2024-10-22 15:48:00 +02:00
sysvinit dey: cosmetic, mark patches as DEY specific 2024-10-22 15:48:00 +02:00
trustfence mca-tool/trustfence-tool: don't install files in /sbin when usrmerge is enabled 2024-10-17 13:03:37 +02:00