SBOMgensbomgen

Creating SBOMs From Yocto Projects

Introduction

This tutorial illustrates how to generate an SBOM from a Yocto project using the Wind-River meta-wr-sbom tool.

Requirements

Installation

Within your Yocto project build/ directory run:

git clone https://github.com/Wind-River/meta-wr-sbom

If you are working with Yocto 4.2 or higher, run the following commands:

cd meta-wr-sbom
git checkout 4.2_or_higher

Open the file conf/bblayers.conf in your build directory, and append the following:

BBLAYERS += "/<path-to-directory>/meta-wr-sbom"

Usage

Run:

bitbake <target-image-name>

An SPDX JSON SBOM should appear in the path tmp/deploy/images/<machine-name>/<target-image-name>.spdx.json in relation to your Yocto project directory upon build completion.

Notes

Example SBOM

The following section illustrates an SPDX JSON SBOM of a core-image-minimal Yocto build, created via meta-wr-sbom.

Pretty JSON Display

core-image-minimal


    

References