Patchwork [3/5] kernel-arch: Add handling of powerpc64

login
register
mail settings
Submitter Kumar Gala
Date July 22, 2011, 9:24 a.m.
Message ID <1311326696-11745-4-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/8313/
State New, archived
Headers show

Comments

Kumar Gala - July 22, 2011, 9:24 a.m.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 meta/classes/kernel-arch.bbclass |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Tom Rini - July 22, 2011, 2:16 p.m.
On 07/22/2011 02:24 AM, Kumar Gala wrote:
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

Acked-by: Tom Rini <tom_rini@mentor.com>

> ---
>  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 86c15d3..225d599 100644
> --- a/meta/classes/kernel-arch.bbclass
> +++ b/meta/classes/kernel-arch.bbclass
> @@ -6,7 +6,7 @@
>  
>  valid_archs = "alpha cris ia64 \
>                 i386 x86 \
> -               m68knommu m68k ppc powerpc ppc64  \
> +               m68knommu m68k ppc powerpc powerpc64 ppc64  \
>  	       sparc sparc64 \
>                 arm  arm26 \
>                 m32r mips \
> @@ -24,6 +24,7 @@ def map_kernel_arch(a, d):
>  	elif re.match('arm26$', a):		        return 'arm26'
>  	elif re.match('armeb$', a):		        return 'arm'
>  	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('bfin', a):                       return 'blackfin'
>  	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):
>  	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'
>  	return a
>

Patch

diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 86c15d3..225d599 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -6,7 +6,7 @@ 
 
 valid_archs = "alpha cris ia64 \
                i386 x86 \
-               m68knommu m68k ppc powerpc ppc64  \
+               m68knommu m68k ppc powerpc powerpc64 ppc64  \
 	       sparc sparc64 \
                arm  arm26 \
                m32r mips \
@@ -24,6 +24,7 @@  def map_kernel_arch(a, d):
 	elif re.match('arm26$', a):		        return 'arm26'
 	elif re.match('armeb$', a):		        return 'arm'
 	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('bfin', a):                       return 'blackfin'
 	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):
 	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'
 	return a