mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f0b017950c
commit
dcedeff5fe
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
valid_archs = "alpha cris ia64 \
|
valid_archs = "alpha cris ia64 \
|
||||||
i386 x86 \
|
i386 x86 \
|
||||||
m68knommu m68k ppc powerpc ppc64 \
|
m68knommu m68k ppc powerpc powerpc64 ppc64 \
|
||||||
sparc sparc64 \
|
sparc sparc64 \
|
||||||
arm arm26 \
|
arm arm26 \
|
||||||
m32r mips \
|
m32r mips \
|
||||||
@@ -24,6 +24,7 @@ def map_kernel_arch(a, d):
|
|||||||
elif re.match('arm26$', a): return 'arm26'
|
elif re.match('arm26$', a): return 'arm26'
|
||||||
elif re.match('armeb$', a): return 'arm'
|
elif re.match('armeb$', a): return 'arm'
|
||||||
elif re.match('mipsel$', a): return 'mips'
|
elif re.match('mipsel$', a): return 'mips'
|
||||||
|
elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc'
|
||||||
elif re.match('sh(3|4)$', a): return 'sh'
|
elif re.match('sh(3|4)$', a): return 'sh'
|
||||||
elif re.match('bfin', a): return 'blackfin'
|
elif re.match('bfin', a): return 'blackfin'
|
||||||
elif re.match('microblazeel', a): return 'microblaze'
|
elif re.match('microblazeel', a): return 'microblaze'
|
||||||
@@ -36,7 +37,7 @@ export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
|
|||||||
def map_uboot_arch(a, d):
|
def map_uboot_arch(a, d):
|
||||||
import re
|
import re
|
||||||
|
|
||||||
if re.match('powerpc$', a): return 'ppc'
|
if re.match('p(pc|owerpc)(|64)', a): return 'ppc'
|
||||||
elif re.match('i.86$', a): return 'x86'
|
elif re.match('i.86$', a): return 'x86'
|
||||||
return a
|
return a
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user