diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/llvm/llvm_git.bb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index d853d4151d..df7c1dddd3 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb | |||
@@ -44,14 +44,15 @@ def get_llvm_arch(bb, d, arch_var): | |||
44 | else: | 44 | else: |
45 | raise bb.parse.SkipRecipe("Cannot map '%s' to a supported LLVM architecture" % a) | 45 | raise bb.parse.SkipRecipe("Cannot map '%s' to a supported LLVM architecture" % a) |
46 | 46 | ||
47 | def get_llvm_target_arch(bb, d): | 47 | def get_llvm_host_arch(bb, d): |
48 | return get_llvm_arch(bb, d, 'TARGET_ARCH') | 48 | return get_llvm_arch(bb, d, 'HOST_ARCH') |
49 | |||
49 | # | 50 | # |
50 | # Default to build all OE-Core supported target arches (user overridable). | 51 | # Default to build all OE-Core supported target arches (user overridable). |
51 | # | 52 | # |
52 | LLVM_TARGETS ?= "${@get_llvm_target_arch(bb, d)}" | 53 | LLVM_TARGETS ?= "${@get_llvm_host_arch(bb, d)}" |
53 | LLVM_TARGETS_prepend_x86 = "AMDGPU;" | 54 | LLVM_TARGETS_prepend_class-target_x86 = "AMDGPU;" |
54 | LLVM_TARGETS_prepend_x86-64 = "AMDGPU;" | 55 | LLVM_TARGETS_prepend_class-target_x86-64 = "AMDGPU;" |
55 | 56 | ||
56 | ARM_INSTRUCTION_SET_armv5 = "arm" | 57 | ARM_INSTRUCTION_SET_armv5 = "arm" |
57 | ARM_INSTRUCTION_SET_armv4t = "arm" | 58 | ARM_INSTRUCTION_SET_armv4t = "arm" |