[oe-commits] Tom Rini : kernel-arch.bbclass: Add powerpc64 mappings
git version control
git at git.openembedded.org
Mon Feb 21 16:24:43 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3195d211fa8c4b91ca85b90b78c9837262913013
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3195d211fa8c4b91ca85b90b78c9837262913013
Author: Tom Rini <tom_rini at mentor.com>
Date: Mon Feb 21 09:20:49 2011 -0700
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 at mentor.com>
---
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 970e7ee..aefb5db 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
More information about the Openembedded-commits
mailing list