Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
As of rauc 1.10 the recipe for building and compiling the rauc binary, expects the rauc ca.cert.pem file to be in it's ${WORKDIR} (i.e. provided as SRC_URI).
This is different than before where it required an absolute system path.
Solution
Ideally we would like to preserve the current directory structure (keep all certificates in the same place) AND keep them only as a part of the Leda Distro Quickstart image, since they are here only to serve as examples and users might forget to add their own certificates if they become part of meta-leda (in cases when they are building their own distros).
That's why we use the new variable provided by the rauc 1.10 recipe
RAUC_KEYRING_URI
, adding to our local.conf the single new lineRAUC_KEYRING_URI = "file://${TOPDIR}/../examples/example-ca/ca.cert.pem"
. This copies the cert file to the recipe's workdir + thefile://
fetcher recreates the original directory structure, thus preserving everything to be the same as before.Integration test results:
eclipse-leda-tests.zip