summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-arch.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 86c15d3880..225d5994fa 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -6,7 +6,7 @@
6 6
7valid_archs = "alpha cris ia64 \ 7valid_archs = "alpha cris ia64 \
8 i386 x86 \ 8 i386 x86 \
9 m68knommu m68k ppc powerpc ppc64 \ 9 m68knommu m68k ppc powerpc powerpc64 ppc64 \
10 sparc sparc64 \ 10 sparc sparc64 \
11 arm arm26 \ 11 arm arm26 \
12 m32r mips \ 12 m32r mips \
@@ -24,6 +24,7 @@ def map_kernel_arch(a, d):
24 elif re.match('arm26$', a): return 'arm26' 24 elif re.match('arm26$', a): return 'arm26'
25 elif re.match('armeb$', a): return 'arm' 25 elif re.match('armeb$', a): return 'arm'
26 elif re.match('mipsel$', a): return 'mips' 26 elif re.match('mipsel$', a): return 'mips'
27 elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc'
27 elif re.match('sh(3|4)$', a): return 'sh' 28 elif re.match('sh(3|4)$', a): return 'sh'
28 elif re.match('bfin', a): return 'blackfin' 29 elif re.match('bfin', a): return 'blackfin'
29 elif re.match('microblazeel', a): return 'microblaze' 30 elif re.match('microblazeel', a): return 'microblaze'
@@ -36,7 +37,7 @@ export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
36def map_uboot_arch(a, d): 37def map_uboot_arch(a, d):
37 import re 38 import re
38 39
39 if re.match('powerpc$', a): return 'ppc' 40 if re.match('p(pc|owerpc)(|64)', a): return 'ppc'
40 elif re.match('i.86$', a): return 'x86' 41 elif re.match('i.86$', a): return 'x86'
41 return a 42 return a
42 43