Re:Yocto, RockPi and SBOMs: Building Modern Embedded Linux I...
by mostthingsweb on Friday February 21, 2025 @07:58PM
(#43134980)
There's ongoing work on an official setup solution, "bitbake-setup". See https://lists.openembedded.org/g/openembedded-core/topic/111....
Shameless plug, there is also my own tool, yb. It's very early days though: https://github.com/Agilent/yb
Re:Yocto, RockPi and SBOMs: Building Modern Embedded Linux I...
by finnthehuman on Friday February 21, 2025 @07:20PM
(#43134786)
I recently found out about the 'kas' tool that tries to be a better version of the hacky scripts we all write for this. Here's a link to an example YAML config to give you a taste: https://kas.readthedocs.io/en/1.0/userguide.html#project-con...
Re:Yocto, RockPi and SBOMs: Building Modern Embedded Linux I...
by unitexe on Saturday February 22, 2025 @01:20PM
(#43141559)
+1 for kas I won't build yocto images any other way. Using their kas-container script makes building with their container a breeze.
Other kas features I love: - Patching 3rd party layers with quilt - Configuration fragments - Chaining together configuration fragments
As another example, here is my kas setup for building rootfs images and container images for various different boards:
I've got a script that does all this, but it's still a pain.
I've been thinking about putting everything in a monorepo, and adding poky, the third-party layers, and my proprietary layers as submodules. Then, when the build server needs to check out the code or a new developer needs to be onboarded, they just `git clone` and `git submodule update`. When it's time to update to the latest version of Yocto, update your layer submodules to the new branch. If you need to go back in time and build an older version of your firmware image, just roll back to the appropriate tag from your monorepo.
Anyone else have another solution to this issue?
Oh yeah, and the build times. It's crazy disk I/O bound. But if you're using something like Jenkins on an AWS instance with 96GB of RAM, set up your build job to use `/tmp` as your work directory and you can do a whole-OS CI build in minutes.