Skip to contentSkip to conversation

ti-llvm: Fix for buildpaths errors

PATCH In review Ryan Eatmon 2 participants 2 messages Jul 19, 2024 – Jul 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-llvm: Fix for buildpaths errors

Make sure that llvm-config does not have any absolute build paths within the compiled binary.

---
 meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb +4 -0
index 4b990b7f..395651d3 100644
@@ -72,6 +72,10 @@ do_compile:class-native() {
 }
 
 do_compile:class-nativesdk() {
+    # Fix for buildpaths error referring to TMPDIR
+    sed -i 's:@LLVM_SRC_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in
+    sed -i 's:@LLVM_OBJ_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in
+
     cd ${LLVM_BUILD_DIR}
 
     # Fix libdir for multilib
Signature · 1 line
2.17.1
#1 lore raw
Quoted 13 lines · Ryan Eatmon via lists.yoctoproject.org

Make sure that llvm-config does not have any absolute build paths within the compiled binary.

---
 meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb +0 -0
index 4b990b7f..395651d3 100644

meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb do_compile:class-native() { · line 77

Quoted 6 lines
meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb +3 -0
@@ -72,6 +72,10 @@ do_compile:class-native() {
 }
 
 do_compile:class-nativesdk() {
+    # Fix for buildpaths error referring to TMPDIR
+    sed -i 's:@LLVM_SRC_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in
+    sed -i 's:@LLVM_OBJ_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in

Yeah, I was also looking at patching this .in file, but got pre-occupied with upstream breakage lately... Thanks for taking care of this.

Quoted 5 lines
meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb +0 -0
     cd ${LLVM_BUILD_DIR}
 
     # Fix libdir for multilib
Signature · 1 line
2.17.1