From: Khem Raj Date: Tue, 15 Aug 2017 22:03:30 +0000 (-0700) Subject: llvm: Swith to ARM ISA on armv5 and armv4t X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0c9d19b46ccefbb90eea5965e11ea21d13242b4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git llvm: Swith to ARM ISA on armv5 and armv4t When Thumb1 is used as default ISA, there are linker issues, therefore always use ARM ISA Fixes relocation truncated to fit: R_ARM_THM_CALL against symbol `__gnu_thumb1_case_uhi' defined in .text section Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index 09031f54772..632178fd779 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -52,6 +52,9 @@ LLVM_TARGETS ?= "${@get_llvm_target_arch(bb, d)}" LLVM_TARGETS_prepend_x86 = "AMDGPU;" LLVM_TARGETS_prepend_x86-64 = "AMDGPU;" +ARM_INSTRUCTION_SET_armv5 = "arm" +ARM_INSTRUCTION_SET_armv4t = "arm" + EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \ -DLLVM_ENABLE_EXPENSIVE_CHECKS=OFF \ -DLLVM_ENABLE_PIC=ON \