do_create_runtime_spdx dependencies for SBOMs

"Oliver Westermann" <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <[email protected]>
Hey,

I'm looking into a SPDX / SBOM issue in scarthgap and I'm looking for some documentation/advise. I can only assume the issue is caused by the tegra BSP layer I'm using, but I'm more curious about understanding the issue / setup beneath while fixing it.

The problem is that the do_rootfs step fails with the error message below on incremental build with every update of the kernel SHA.

Cannot find any SPDX file for document http://spdx.org/spdxdocs/kernel-module-ip-tables-<version><branch>+g<git sha>

<version>, <branch> and <git sha> replaced for readability there. The interesting part in here is the <git sha>: It's the SHA of the kernel that was just updated, so the previous kernel version. Upon digging (grep), I did find the reference from the error message in the ip tables build output. I can also "update" it with a simple clean/rebuild of the iptables package.

It can also be fixed by adding explicit dependencies for the SPDX do_create_runtime_spdx, but it feels off that this is needed. Further search did not yield anything interesting in the BSP layer: No appends and nothing suspicious. I do see some kernel module related RRECOMMENDS in the iptables recipe in the poky meta layer.

Is there any further reading material on the SBOM inner workings?
Is it expected that there would be a reference to the specific kernel SHA in the iptables SBOM?

Best regards

Olli
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.