diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-26 19:39:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-26 19:39:16 -0800 |
commit | 0c393398a91713a108f319ac75337c02b7ebeaa7 (patch) | |
tree | d63647e0b4d2e6f9069eb62c34d1a57dc81aa55b /recipes-devtools/clang/clang.inc | |
parent | ef7db76196c48aabe1bfbabfa365da45bcd16047 (diff) | |
parent | de294c479418bc7f8e63fe3d2f4f6061bdf08a91 (diff) | |
download | meta-clang-0c393398a91713a108f319ac75337c02b7ebeaa7.tar.gz |
Merge pull request #266 from YoeDistro/kraj/zeus
Zeus sync from master
Diffstat (limited to 'recipes-devtools/clang/clang.inc')
-rw-r--r-- | recipes-devtools/clang/clang.inc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 248ff28..3fd0723 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -8,7 +8,7 @@ MAJOR_VER = "9" | |||
8 | MINOR_VER = "0" | 8 | MINOR_VER = "0" |
9 | PATCH_VER = "1" | 9 | PATCH_VER = "1" |
10 | 10 | ||
11 | SRCREV ?= "aa0ed8dac77bf205f2b376a44a0d161f4dafcb5a" | 11 | SRCREV ?= "c1a0a213378a458fbea1a5c77b315c7dce08fd05" |
12 | 12 | ||
13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" | 13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" |
14 | BRANCH = "release/${MAJOR_VER}.x" | 14 | BRANCH = "release/${MAJOR_VER}.x" |
@@ -18,4 +18,22 @@ CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" | |||
18 | LLDMD5SUM = "ae7dc7c027b1fa89b5b013d391d3ee2b" | 18 | LLDMD5SUM = "ae7dc7c027b1fa89b5b013d391d3ee2b" |
19 | LLDBMD5SUM = "2e0d44968471fcde980034dbb826bea9" | 19 | LLDBMD5SUM = "2e0d44968471fcde980034dbb826bea9" |
20 | 20 | ||
21 | def get_libdir_suffix(d, arch_var): | ||
22 | import re | ||
23 | multilibs = (d.getVar("MULTILIB_VARIANTS") or "").split() | ||
24 | if multilibs: | ||
25 | a = d.getVar(arch_var, True) | ||
26 | if re.match('(i.86|athlon)$', a): return '32' | ||
27 | elif re.match('x86.64$', a): return '64' | ||
28 | elif re.match('(arm|armbe)$', a): return '32' | ||
29 | elif re.match('(aarch64|aarch64_be)$', a): return '64' | ||
30 | elif re.match('mips(isa|)32(r6|)(el|)$', a): return '32' | ||
31 | elif re.match('mips(isa|)64(r6|)(el|)$', a): return '64' | ||
32 | elif re.match('p(pc|owerpc)', a): return '32' | ||
33 | elif re.match('p(pc|owerpc)64', a): return '64' | ||
34 | else: | ||
35 | return '' | ||
36 | |||
37 | LLVM_LIBDIR_SUFFIX="${@get_libdir_suffix(d, 'TARGET_ARCH')}" | ||
38 | |||
21 | require common.inc | 39 | require common.inc |