From 4d6c5efbb9e6e19bfc8ba17433e7190a3e37eb06 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 3 Dec 2020 14:37:19 +0100 Subject: llvm: fix reproducibility (From OE-Core rev: 18004b4c1b2d595d081888437f6f9cbcb02bf746) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (cherry picked from commit a467c0a03d077861c37e317dcb2905b6388cb64c) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/recipes-devtools/llvm/llvm_git.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index a8607f5008..6ea1b80e1f 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -101,6 +101,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} } -- cgit v1.2.3-54-g00ecf