]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sbom-cve-check: Fix breakage with empty IMAGE_LINK_NAME
authorNiko Mauno <niko.mauno@vaisala.com>
Thu, 28 May 2026 16:55:57 +0000 (19:55 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Jun 2026 13:07:38 +0000 (14:07 +0100)
Avoid following build breakage:

  sbom-cve-check: error: [Errno 2] No such file or directory: '/build/layers/openembedded-core/build/tmp/deploy/images/qemuarm/.spdx.json'

when IMAGE_LINK_NAME is set as empty string, by changing the reference
to IMAGE_NAME instead.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/sbom-cve-check.bbclass

index fe145a2212be1ab0fcc6be25f72b3ddeebbca6d5..451595f1d760360034b70d763a219c6635bff790 100644 (file)
@@ -14,7 +14,7 @@ python do_sbom_cve_check() {
     """
     Task: Run sbom-cve-check analysis on SBOM.
     """
-    sbom_path = d.expand("${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.spdx.json")
+    sbom_path = d.expand("${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.spdx.json")
     image_name = d.getVar("IMAGE_NAME")
     link_name = d.getVar("IMAGE_LINK_NAME")
     run_sbom_cve_check(d, sbom_path, image_name, link_name)