diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-07-22 04:24:54 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-22 11:56:50 +0100 |
commit | dcedeff5fea3dfec3fa51b22231f76d608eaa749 (patch) | |
tree | ddaf33310420c7d7b9eb1becd17456e60c91a094 /meta | |
parent | f0b017950cdc75f6615c654610e82d981d506de3 (diff) | |
download | poky-dcedeff5fea3dfec3fa51b22231f76d608eaa749.tar.gz |
kernel-arch: Add handling of powerpc64
(From OE-Core rev: ed6b9934b33cff3173d327b09e05ee02aa3a68c8)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 5 |
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 | ||
7 | valid_archs = "alpha cris ia64 \ | 7 | valid_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)}" | |||
36 | def map_uboot_arch(a, d): | 37 | def 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 | ||