summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-arch.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-11 17:33:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 10:24:50 +0100
commitbfd279de3275abbfaf3e630383ec244131e0375f (patch)
tree0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/classes/kernel-arch.bbclass
parent99203edda6f0b09d817454d656c100b7a8806b18 (diff)
downloadpoky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
-rw-r--r--meta/classes/kernel-arch.bbclass42
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 4a30192c15..6446504845 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -7,38 +7,38 @@
7valid_archs = "alpha cris ia64 \ 7valid_archs = "alpha cris ia64 \
8 i386 x86 \ 8 i386 x86 \
9 m68knommu m68k ppc powerpc powerpc64 ppc64 \ 9 m68knommu m68k ppc powerpc powerpc64 ppc64 \
10 sparc sparc64 \ 10 sparc sparc64 \
11 arm \ 11 arm \
12 m32r mips \ 12 m32r mips \
13 sh sh64 um h8300 \ 13 sh sh64 um h8300 \
14 parisc s390 v850 \ 14 parisc s390 v850 \
15 avr32 blackfin \ 15 avr32 blackfin \
16 microblaze" 16 microblaze"
17 17
18def map_kernel_arch(a, d): 18def map_kernel_arch(a, d):
19 import re 19 import re
20 20
21 valid_archs = d.getVar('valid_archs', True).split() 21 valid_archs = d.getVar('valid_archs', True).split()
22 22
23 if re.match('(i.86|athlon|x86.64)$', a): return 'x86' 23 if re.match('(i.86|athlon|x86.64)$', a): return 'x86'
24 elif re.match('armeb$', a): return 'arm' 24 elif re.match('armeb$', a): return 'arm'
25 elif re.match('mips(el|64|64el)$', a): return 'mips' 25 elif re.match('mips(el|64|64el)$', a): return 'mips'
26 elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc' 26 elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc'
27 elif re.match('sh(3|4)$', a): return 'sh' 27 elif re.match('sh(3|4)$', a): return 'sh'
28 elif re.match('bfin', a): return 'blackfin' 28 elif re.match('bfin', a): return 'blackfin'
29 elif re.match('microblazeel', a): return 'microblaze' 29 elif re.match('microblazeel', a): return 'microblaze'
30 elif a in valid_archs: return a 30 elif a in valid_archs: return a
31 else: 31 else:
32 bb.error("cannot map '%s' to a linux kernel architecture" % a) 32 bb.error("cannot map '%s' to a linux kernel architecture" % a)
33 33
34export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH', True), d)}" 34export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH', True), d)}"
35 35
36def map_uboot_arch(a, d): 36def map_uboot_arch(a, d):
37 import re 37 import re
38 38
39 if re.match('p(pc|owerpc)(|64)', a): return 'ppc' 39 if re.match('p(pc|owerpc)(|64)', a): return 'ppc'
40 elif re.match('i.86$', a): return 'x86' 40 elif re.match('i.86$', a): return 'x86'
41 return a 41 return a
42 42
43export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" 43export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}"
44 44