diff options
| author | Benjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com> | 2025-11-21 10:54:12 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-12-01 07:34:55 -0800 |
| commit | 86f11fe94f607212f07add0145e754670fc6d125 (patch) | |
| tree | a1343e8a2f408e1754f9d8543a0cf379eae81dd0 | |
| parent | d1f8b0c6ddb1adad4be4cb465463e13d12c81ecc (diff) | |
| download | poky-86f11fe94f607212f07add0145e754670fc6d125.tar.gz | |
spdx: extend CVE_STATUS variables
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.
(From OE-Core rev: 23a4e02542252657fa45fd4a605aec0af9178e0b)
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>
| -rw-r--r-- | meta/classes/spdx-common.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/spdx-common.bbclass b/meta/classes/spdx-common.bbclass index 36feb56807..713a7fc651 100644 --- a/meta/classes/spdx-common.bbclass +++ b/meta/classes/spdx-common.bbclass | |||
| @@ -37,6 +37,11 @@ SPDX_CUSTOM_ANNOTATION_VARS ??= "" | |||
| 37 | 37 | ||
| 38 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" | 38 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" |
| 39 | 39 | ||
| 40 | python () { | ||
| 41 | from oe.cve_check import extend_cve_status | ||
| 42 | extend_cve_status(d) | ||
| 43 | } | ||
| 44 | |||
| 40 | def create_spdx_source_deps(d): | 45 | def create_spdx_source_deps(d): |
| 41 | import oe.spdx_common | 46 | import oe.spdx_common |
| 42 | 47 | ||
