poky/scripts/contrib/oe-image-files-spdx
Joshua Watt 36be59464c scripts/contrib: Add oe-image-files-spdx script
Adds a template for a python project that processes the SPDX 3.0.1
output from a build and lists all the files on the root file system with
their checksums

This is intended to be an example to show how to deal with the SPDX data
to do common tasks.

(From OE-Core rev: 3d9c5588ce6181b519810e3378b55826ffcaee49)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-02-18 11:56:03 +00:00
..
src/oe_image_files scripts/contrib: Add oe-image-files-spdx script 2025-02-18 11:56:03 +00:00
.gitignore scripts/contrib: Add oe-image-files-spdx script 2025-02-18 11:56:03 +00:00
pyproject.toml scripts/contrib: Add oe-image-files-spdx script 2025-02-18 11:56:03 +00:00
README.md scripts/contrib: Add oe-image-files-spdx script 2025-02-18 11:56:03 +00:00

OE Image Files from SBoM

This is an example python script that will list the packaged files with their checksums based on the SPDX 3.0.1 SBoM.

It can be used as a template for other programs to investigate output based on OE SPDX SBoMs

Installation

This project can be installed using an virtual environment:

python3 -m venv .venv
.venv/bin/activate
python3 -m pip install -e '.[dev]'

Usage

After installing, the oe-image-files program can be used to show the files, e.g.:

oe-image-files core-image-minimal-qemux86-64.rootfs.spdx.json