From d42166b0decb1a2c98f4db9e946d10811a7ad7d3 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 16 Jul 2024 18:34:06 -0400 Subject: [PATCH] llvm: extend llvm-config reproducibility fix to nativesdk class It's not limited to "target", but also happens to nativesdk: ERROR: nativesdk-llvm-18.1.8-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/llvm-config in package nativesdk-llvm contains reference to TMPDIR [buildpaths] (From OE-Core rev: 714a99a9ba1aff458c1743ad8be9b38ee106b58f) Signed-off-by: Denys Dmytriyenko Signed-off-by: Richard Purdie --- meta/recipes-devtools/llvm/llvm_18.1.8.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/llvm/llvm_18.1.8.bb b/meta/recipes-devtools/llvm/llvm_18.1.8.bb index 8dad952923..a700a1b2b1 100644 --- a/meta/recipes-devtools/llvm/llvm_18.1.8.bb +++ b/meta/recipes-devtools/llvm/llvm_18.1.8.bb @@ -99,6 +99,10 @@ do_compile:prepend:class-target() { sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc } +do_compile:prepend:class-nativesdk() { + sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc +} + do_compile() { if ${@bb.utils.contains('PACKAGECONFIG', 'libllvm', 'true', 'false', d)}; then ninja -v ${PARALLEL_MAKE}