summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-12-03 14:37:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-09 12:20:33 +0000
commit8d8e8708a3151fa78c4b8ac38f54ac01c2cddb83 (patch)
tree4c9dbbc301509118589f758165758b1e3a3283f7
parent9b534f334df9cfbfd752dff001cbd447b5cc2a46 (diff)
downloadpoky-8d8e8708a3151fa78c4b8ac38f54ac01c2cddb83.tar.gz
poky-8d8e8708a3151fa78c4b8ac38f54ac01c2cddb83.tar.bz2
poky-8d8e8708a3151fa78c4b8ac38f54ac01c2cddb83.zip
llvm: fix reproducibility
(From OE-Core rev: a467c0a03d077861c37e317dcb2905b6388cb64c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/llvm/llvm_git.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index 4c2d490315..b146d0e6e3 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -99,6 +99,11 @@ do_configure_prepend() {
sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp
}
+# patch out build host paths for reproducibility
+do_compile_prepend_class-target() {
+ sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc
+}
+
do_compile() {
ninja -v ${PARALLEL_MAKE}
}