summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/llvm/llvm_git.bb
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-18 23:01:48 +0000
commit00f21a210a52256a979a5b2d4bca7d099cd55114 (patch)
tree68d1768263d5b04789a8fce8d81bd7d195f67994 /meta/recipes-devtools/llvm/llvm_git.bb
parent7fa83081fc3c32c96c83f8890cfe38443588e374 (diff)
downloadpoky-00f21a210a52256a979a5b2d4bca7d099cd55114.tar.gz
llvm: fix reproducibility
(From OE-Core rev: 5b9b559ceb0ef11175a37106abf8378cacda352a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a467c0a03d077861c37e317dcb2905b6388cb64c) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/llvm/llvm_git.bb')
-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() {
99 sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp 99 sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp
100} 100}
101 101
102# patch out build host paths for reproducibility
103do_compile_prepend_class-target() {
104 sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc
105}
106
102do_compile() { 107do_compile() {
103 ninja -v ${PARALLEL_MAKE} 108 ninja -v ${PARALLEL_MAKE}
104} 109}