summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/llvm/llvm_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/llvm/llvm_git.bb')
-rw-r--r--meta/recipes-devtools/llvm/llvm_git.bb20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index 7278763..eb0779d 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -34,13 +34,13 @@ LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install"
34def get_llvm_arch(bb, d, arch_var): 34def get_llvm_arch(bb, d, arch_var):
35 import re 35 import re
36 a = d.getVar(arch_var) 36 a = d.getVar(arch_var)
37 if re.match('(i.86|athlon|x86.64)$', a): return 'X86' 37 if re.match(r'(i.86|athlon|x86.64)$', a): return 'X86'
38 elif re.match('arm$', a): return 'ARM' 38 elif re.match(r'arm$', a): return 'ARM'
39 elif re.match('armeb$', a): return 'ARM' 39 elif re.match(r'armeb$', a): return 'ARM'
40 elif re.match('aarch64$', a): return 'AArch64' 40 elif re.match(r'aarch64$', a): return 'AArch64'
41 elif re.match('aarch64_be$', a): return 'AArch64' 41 elif re.match(r'aarch64_be$', a): return 'AArch64'
42 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'Mips' 42 elif re.match(r'mips(isa|)(32|64|)(r6|)(el|)$', a): return 'Mips'
43 elif re.match('p(pc|owerpc)(|64)', a): return 'PowerPC' 43 elif re.match(r'p(pc|owerpc)(|64)', a): return 'PowerPC'
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
@@ -172,9 +172,9 @@ INSANE_SKIP_${MLPREFIX}libllvm${LLVM_RELEASE}-llvm += "dev-so"
172python llvm_populate_packages() { 172python llvm_populate_packages() {
173 libdir = bb.data.expand('${libdir}', d) 173 libdir = bb.data.expand('${libdir}', d)
174 libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d) 174 libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d)
175 split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True) 175 split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', r'^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True)
176 split_packages = do_split_packages(d, libdir, '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True, allow_links=True, recursive=True) 176 split_packages = do_split_packages(d, libdir, r'^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True, allow_links=True, recursive=True)
177 split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True) 177 split_staticdev_packages = do_split_packages(d, libllvm_libdir, r'^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True)
178 if split_packages: 178 if split_packages:
179 pn = d.getVar('PN') 179 pn = d.getVar('PN')
180 d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages)) 180 d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages))