summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-20 15:25:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-21 14:49:34 +0100
commit0053740c01f3ae49292a03686f2a6bad298d3af9 (patch)
treeda5e8ca0b6c1593ce560a0b69cce9b2da1921eab
parent5e6e08512e130951e66376ea43e4e6a98941b950 (diff)
downloadopenembedded-core-contrib-0053740c01f3ae49292a03686f2a6bad298d3af9.tar.gz
openembedded-core-contrib-0053740c01f3ae49292a03686f2a6bad298d3af9.tar.bz2
openembedded-core-contrib-0053740c01f3ae49292a03686f2a6bad298d3af9.zip
llvm: Enable AMDGPU backend for native/native-sdk builds too
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/llvm/llvm_git.bb4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index df7c1dddd3..727876303d 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -50,9 +50,7 @@ def get_llvm_host_arch(bb, d):
#
# Default to build all OE-Core supported target arches (user overridable).
#
-LLVM_TARGETS ?= "${@get_llvm_host_arch(bb, d)}"
-LLVM_TARGETS_prepend_class-target_x86 = "AMDGPU;"
-LLVM_TARGETS_prepend_class-target_x86-64 = "AMDGPU;"
+LLVM_TARGETS ?= "AMDGPU;${@get_llvm_host_arch(bb, d)}"
ARM_INSTRUCTION_SET_armv5 = "arm"
ARM_INSTRUCTION_SET_armv4t = "arm"