Message ID | 20250715144646.1863656-1-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | clang: set CVE_PRODUCT | expand |
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb index 4cbe22f4546..21f64fa9472 100644 --- a/meta/recipes-devtools/clang/clang_git.bb +++ b/meta/recipes-devtools/clang/clang_git.bb @@ -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" diff --git a/meta/recipes-devtools/clang/common.inc b/meta/recipes-devtools/clang/common.inc index a9d6f899c03..a49aa64f79e 100644 --- a/meta/recipes-devtools/clang/common.inc +++ b/meta/recipes-devtools/clang/common.inc @@ -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"
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. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/recipes-devtools/clang/clang_git.bb | 2 ++ meta/recipes-devtools/clang/common.inc | 2 ++ 2 files changed, 4 insertions(+)