diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-07-15 15:46:46 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-17 10:41:18 +0100 |
| commit | e3220f16481d5a460ae7a54e9c5c984e063f29e4 (patch) | |
| tree | 801b2a8f0c1b22d26fe7671dbca14a419b412b63 | |
| parent | a83b6c53e0cf6bdbd4eb3565802007684e147b4c (diff) | |
| download | poky-e3220f16481d5a460ae7a54e9c5c984e063f29e4.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-devtools/clang/clang_git.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/clang/common.inc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb index 1daac48eda..aa4aec1cd1 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 | |||
| 19 | 19 | ||
| 20 | BPN = "clang" | 20 | BPN = "clang" |
| 21 | 21 | ||
| 22 | CVE_PRODUCT += "llvm:clang" | ||
| 23 | |||
| 22 | INHIBIT_DEFAULT_DEPS:class-native = "1" | 24 | INHIBIT_DEFAULT_DEPS:class-native = "1" |
| 23 | 25 | ||
| 24 | LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 26 | 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 a9d6f899c0..a49aa64f79 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}" | |||
| 71 | # The real WORKDIR location isn't a dependency for the shared workdir. | 71 | # The real WORKDIR location isn't a dependency for the shared workdir. |
| 72 | src_patches[vardepsexclude] = "WORKDIR" | 72 | src_patches[vardepsexclude] = "WORKDIR" |
| 73 | should_apply[vardepsexclude] += "PN" | 73 | should_apply[vardepsexclude] += "PN" |
| 74 | |||
| 75 | CVE_PRODUCT = "llvm:llvm" | ||
