balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
968 stars 115 forks source link

tests: enable secure boot provisioning of cm4 #3444

Closed rcooke-warwick closed 3 months ago

rcooke-warwick commented 3 months ago

Enables the secure boot provisioning of cm4

It was difficult to come up with something more generalised due to not having many examples to work with. Requires the following PRs to work:

It also requires copying the secure-boot-msd folder into the suites directory before running the tests - either in the jenkins config scripts or manually if running locally

Also required, as shown in the changes to the leviathan config.js in this PR , you must add artifacts: <name of the artifact folder in your config.js. So for example, if you have copied secure-boot-msd into your suites folder, then you must add artifacts: 'secure-boot-msd' . This will send the entire contents of that folder to the worker, placing them in the worker /data volume for use by the autokit (or whatever else is desired)

notes on flashing:

Reviewer Guidelines

alexgg commented 3 months ago

I have rebased these changes onto https://github.com/balena-os/meta-balena/pull/3436/commits

alexgg commented 3 months ago

Also, all mentioned required PRs have already been merged.