clang: set CVE_PRODUCT

There are a number of recipes that are part of the LLVM Project, so set
CVE_PRODUCT to llvm:llvm in common.inc to ensure that all of the recipes
are covered.

Also add llvm:clang in the clang recipe, as there are a number of CVEs
with that product name.

(From OE-Core rev: 319e97643c1e342491931b6274996d1c8caa7d33)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2025-07-15 15:46:46 +01:00
committed by Richard Purdie
parent a83b6c53e0
commit e3220f1648
2 changed files with 4 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ require common-source.inc
BPN = "clang"
CVE_PRODUCT += "llvm:clang"
INHIBIT_DEFAULT_DEPS:class-native = "1"
LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed"

View File

@@ -71,3 +71,5 @@ B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
# The real WORKDIR location isn't a dependency for the shared workdir.
src_patches[vardepsexclude] = "WORKDIR"
should_apply[vardepsexclude] += "PN"
CVE_PRODUCT = "llvm:llvm"