]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
ovmf: set CVE_PRODUCT and CVE_VERSION
authorChen Qi <Qi.Chen@windriver.com>
Wed, 6 Mar 2024 06:54:43 +0000 (22:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Apr 2024 13:02:24 +0000 (14:02 +0100)
Set CVE_PRODUCT and CVE_VERSION for ovmf. NVD uses 'edk2' and the
version should be the date only. Here's an example:
https://nvd.nist.gov/vuln/detail/CVE-2023-45232

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ovmf/ovmf_git.bb

index 3dc031d3b67e1b55a680f15e000d9ea4b2c313e9..5b1353b8e87bb728097ff2cc104aea37b3506ed8 100644 (file)
@@ -30,6 +30,9 @@ PV = "edk2-stable202308"
 SRCREV = "819cfc6b42a68790a23509e4fcc58ceb70e1965e"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>edk2-stable.*)"
 
+CVE_PRODUCT = "edk2"
+CVE_VERSION = "${@d.getVar('PV').split('stable')[1]}"
+
 inherit deploy
 
 PARALLEL_MAKE = ""