meta-digi/meta-digi-dey
Hector Palacios 661f59967c trustfence: add function to generate a PKI tree if it doesn't exist
The stand-alone signing script 'trustfence-sign-artifact.sh' checks
if a valid PKI tree exists (by checking the existance of four SRK
files) and if they don't, it calls trustfence-gen-pki.sh (which is
a wrapper over different generators (for HAB or AHAB) to create one.

Recipes such as 'dualboot' or 'recovery-initramfs' may need to call
openssl functions over the PKI tree. These recipes do not currently
generate the PKI tree; they expect it to be already in place.
This might not be the case if the trustfence-sign-artifact.sh script
has not been called yet.

Originally, a fake dependency on virtual/kernel recipe was made to
force it, but it doesn't quite work since the calling only happens
on deploy() while regular DEPENDS doesn't wait for this task.
If the PKI does not exist, a recipe that requires the PKI tree will
fail.

The solution is to create a function on the trustfence.bbclass that
allows any recipe to check for the existance of a PKI tree and
generate it if it doesn't exist. This is repeated inside the
trustfence-sign-artifact.sh, but it needs to be in both places
because this script must work stand-alone.

The generation of the PKI tree takes some seconds so this commit
adds a lock dir to prevent race conditions when called from
different recipes.

It also removes the fake dependency on virtual/kernel and adds a
dependency on trustfence-cst-native (which is the recipe that
provides the PKI generation tool).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8430
(cherry picked from commit 6a8bf7afff)
2023-03-21 13:36:58 +01:00
..
classes trustfence: add function to generate a PKI tree if it doesn't exist 2023-03-21 13:36:58 +01:00
conf meta-digi-dey: bump distro version to 4.0-r2 2023-03-01 16:38:29 +01:00
dynamic-layers qt5: qt6: cinematicexperience: add shortcut to the demo in the desktop toolbar 2023-02-27 14:57:46 +01:00
recipes-aws meta-digi: remove True option to getVar 2023-02-24 16:24:47 +01:00
recipes-connectivity wpa_supplicant/hostapd: update Murata wireless support to version imx-kirkstone-fafnir_r1.0 2023-03-01 11:12:36 +01:00
recipes-core trustfence: add function to generate a PKI tree if it doesn't exist 2023-03-21 13:36:58 +01:00
recipes-crank meta-digi: remove True option to getVar 2023-02-24 16:24:47 +01:00
recipes-devtools ccmp1: add mtd-utils for CCMP1 platform 2023-02-16 10:06:29 +01:00
recipes-digi trustfence: add function to generate a PKI tree if it doesn't exist 2023-03-21 13:36:58 +01:00
recipes-extended kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
recipes-gnome kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
recipes-graphics meta-digi-dey: make QT5 optional 2023-02-02 18:03:38 +01:00
recipes-multimedia pulseaudio: launch pulseaudio in system mode 2023-03-08 12:05:52 +01:00
recipes-sato kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
recipes-support sdk: dey-image-webkit: fix creation of dey-image-webkit toolchain 2023-02-24 15:11:40 +01:00
DIGI_EULA DIGI_EULA: Update Digi EULA file. 2017-08-29 12:23:22 +02:00
DIGI_OPEN_EULA meta-digi: Rename from DEL to DEY. 2013-06-12 13:18:37 +02:00
README meta-digi: update support email address 2017-10-30 17:02:33 +01:00

README

OpenEmbedded/Yocto Digi Embedded Linux layer
============================================

This layer provides the Digi Embedded Linux distribution images.

This layer depends on:

git://git.yoctoproject.org/poky.git
git://git.openembedded.org/meta-openembedded.git
git://git.yoctoproject.org/meta-freescale.git
git://github.com/Freescale/meta-fsl-demos.git

Digi's license agreements
-------------------------

All software is covered by Digi's general EULA and Digi's Open Source
EULA. To have the right to use the software in your images you need to
read and accept both EULAs at the DIGI_EULA and DIGI_OPEN_EULA files.

NXP Semiconductors' software license agreement
----------------------------------------------

Some platforms depends on libraries and packages that are covered by
NXP Semiconductors' EULA. To have the right to use those binaries in
your images you need to read and accept the EULA file in meta-freescale
Yocto layer.

Support
-------

This layer is provided 'as is' with no guarantee. However, some support
may be available from tech.support@digi.com