diff options
author | Tom Rini <tom_rini@mentor.com> | 2011-02-21 09:20:49 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-21 09:23:54 -0700 |
commit | 3195d211fa8c4b91ca85b90b78c9837262913013 (patch) | |
tree | bcf3538029e9ece10d0cfa0e7dc92c870dd9b8de /classes | |
parent | 6574dbdc24fc3e76cd2426da160a2a7b4473af2d (diff) | |
download | openembedded-3195d211fa8c4b91ca85b90b78c9837262913013.tar.gz |
kernel-arch.bbclass: Add powerpc64 mappings
A future TODO is to see if there's anything left that must
build with ARCH=ppc in the kernel that can't be upgraded to a
newer kernel with ARCH=powerpc.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/kernel-arch.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass index 970e7ee6d9..aefb5dbb25 100644 --- a/classes/kernel-arch.bbclass +++ b/classes/kernel-arch.bbclass @@ -6,7 +6,7 @@ valid_archs = "alpha cris ia64 \ x86_64 i386 x86 \ - m68knommu m68k ppc powerpc ppc64 \ + m68knommu m68k ppc powerpc ppc64 powerpc64 \ sparc sparc64 \ arm arm26 \ m32r mips \ @@ -26,6 +26,7 @@ def map_kernel_arch(a, d): elif re.match('mips(el|64|64el)$', a): return 'mips' elif re.match('sh(3|4)$', a): return 'sh' elif re.match('bfin', a): return 'blackfin' + elif re.match('(p|owerpc)64$', a): return 'powerpc' elif a in valid_archs: return a else: bb.error("cannot map '%s' to a linux kernel architecture" % a) @@ -35,7 +36,7 @@ export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}" def map_uboot_arch(a, d): import re - if re.match('powerpc$', a): return 'ppc' + if re.match('(powerpc|ppc)(|64)$', a): return 'ppc' elif re.match('i.86$', a): return 'x86' return a |