]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
spdx: extend CVE_STATUS variables
authorBenjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com>
Fri, 21 Nov 2025 09:54:12 +0000 (10:54 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 24 Nov 2025 16:08:18 +0000 (08:08 -0800)
If spdx is generated without inheriting cve/vex classes (which is poky
default), only explicitly set CVE_STATUS fields are handled.
Calculated ones (e.g. from CVE_STATUS_GROUPS) are ignored.

Fix this by expanding the CVE_STATUS in spdx classes.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ead9c6a8770463c21210a57cc5320f44f7754dd3)
Signed-off-by: Benjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/spdx-common.bbclass

index 36feb5680777d8e6aac80ac32a3f0644cbaac686..713a7fc651e55ba7bfdff68b493fa99328d5958d 100644 (file)
@@ -37,6 +37,11 @@ SPDX_CUSTOM_ANNOTATION_VARS ??= ""
 
 SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}"
 
+python () {
+    from oe.cve_check import extend_cve_status
+    extend_cve_status(d)
+}
+
 def create_spdx_source_deps(d):
     import oe.spdx_common