diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-06-25 17:20:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-26 11:03:14 +0100 |
commit | 6ef2f58d9eeea799a179f4d3e1e2731c58f6d6e1 (patch) | |
tree | 12938df4080ad277e5f521431d5e3a93760cb8bd /documentation/kernel-dev/faq.rst | |
parent | 65b368dc442d955b4d8e550fea31816a72fe32f0 (diff) | |
download | poky-master-next.tar.gz |
create-spdx-2.2.bbclass: support to override the version of a package in SBOM 2master-next
By default, still use ${PV} as the the version of a package in SBOM 2
$ echo 'INHERIT:remove = "create-spdx"' >> conf/local.conf
$ echo 'INHERIT += "create-spdx-2.2"' >> conf/local.conf
$ bitbake acl
$ jq . tmp/deploy/spdx/2.2/core2-64/recipes/recipe-acl.spdx.json
...
"name": "acl",
"summary": "Utilities for managing POSIX Access Control Lists",
"supplier": "Organization: OpenEmbedded ()",
"versionInfo": "2.3.2"
},
...
Support to override it by setting SPDX_PACKAGE_VERSION, such as
set SPDX_PACKAGE_VERSION = "${EXTENDPKGV}" in local.conf to append
PR to versionInfo in SBOM 2
$ echo 'SPDX_PACKAGE_VERSION = "${EXTENDPKGV}"' >> conf/local.conf
$ bitbake acl
$ jq . tmp/deploy/spdx/2.2/core2-64/recipes/recipe-acl.spdx.json
...
"name": "acl",
"summary": "Utilities for managing POSIX Access Control Lists",
"supplier": "Organization: OpenEmbedded ()",
"versionInfo": "2.3.2-r0"
},
...
(From OE-Core rev: e1dc0cde0ce1266c4777cca7b7b57b22c5fb5cb5)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev/faq.rst')
0 files changed, 0 insertions, 0 deletions