summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-10-08 15:26:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-09 10:58:07 +0100
commit8bd63e170c95b60cab100b77d13d7c5dca7fd088 (patch)
treee71185b166ee6575c0d35fdc98bc87d9be751695
parent905b746bddcb780cb1e9f9b0d768aca244e0ca94 (diff)
downloadpoky-8bd63e170c95b60cab100b77d13d7c5dca7fd088.tar.gz
clang: consolidate LLVM_APPEND_VC_REV=OFF
Whilst the change to add TMPDIR to GIT_CEILING_DIRECTORIES should stop LLVM from embedding git information into the recipes, also disable this behaviour explicitly. We do this because it's not just the sha of the source tree but also the full URL of the repository, which would be an information leak if an internal git mirror was being used. (From OE-Core rev: 9247e242bf0e2384142427b67e5f1f7b4018c45d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/clang/clang_git.bb1
-rw-r--r--meta/recipes-devtools/clang/common-clang.inc4
-rw-r--r--meta/recipes-devtools/clang/openmp_git.bb1
3 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb
index ca53963590..e10c327a2a 100644
--- a/meta/recipes-devtools/clang/clang_git.bb
+++ b/meta/recipes-devtools/clang/clang_git.bb
@@ -57,7 +57,6 @@ SOLIBSDEV:mingw32 = ".pyd"
57#CMAKE_VERBOSE = "VERBOSE=1" 57#CMAKE_VERBOSE = "VERBOSE=1"
58 58
59EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \ 59EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \
60 -DLLVM_APPEND_VC_REV=OFF \
61 -DLLVM_ENABLE_PIC=ON \ 60 -DLLVM_ENABLE_PIC=ON \
62 -DCLANG_DEFAULT_PIE_ON_LINUX=ON \ 61 -DCLANG_DEFAULT_PIE_ON_LINUX=ON \
63 -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ 62 -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \
diff --git a/meta/recipes-devtools/clang/common-clang.inc b/meta/recipes-devtools/clang/common-clang.inc
index f7b7a1cf9a..2e9d3d73f9 100644
--- a/meta/recipes-devtools/clang/common-clang.inc
+++ b/meta/recipes-devtools/clang/common-clang.inc
@@ -48,4 +48,8 @@ def get_clang_target_arch(bb, d):
48# install they cause non-deterministic binaries. 48# install they cause non-deterministic binaries.
49EXTRA_OECMAKE += "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON" 49EXTRA_OECMAKE += "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
50 50
51# Don't embed found git information into the version string as this
52# will include the git server URL.
53EXTRA_OECMAKE += "-DLLVM_APPEND_VC_REV=OFF"
54
51require common.inc 55require common.inc
diff --git a/meta/recipes-devtools/clang/openmp_git.bb b/meta/recipes-devtools/clang/openmp_git.bb
index 2d86718dee..b6b1cc2978 100644
--- a/meta/recipes-devtools/clang/openmp_git.bb
+++ b/meta/recipes-devtools/clang/openmp_git.bb
@@ -18,7 +18,6 @@ inherit cmake pkgconfig perlnative python3native python3targetconfig
18DEPENDS += "elfutils libffi clang" 18DEPENDS += "elfutils libffi clang"
19 19
20EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \ 20EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \
21 -DLLVM_APPEND_VC_REV=OFF \
22 -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \ 21 -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
23 -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ 22 -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
24 -DOPENMP_STANDALONE_BUILD=ON \ 23 -DOPENMP_STANDALONE_BUILD=ON \