Skip to contentSkip to conversation

Add support for powerpc64

PATCH Applied Kumar Gala 3 participants 11 messages Jul 22, 2011

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/5 insane.bbclass: Recognise powerpc64

In reply to Kumar Gala
---
 meta/classes/insane.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/insane.bbclass +1 -0
index 65eda9e..d56c9ed 100644
@@ -38,6 +38,7 @@ def package_qa_get_machine_dict():
                         "arm" :       (40,    97,    0,          True,          32),
                         "armeb":      (40,    97,    0,          False,         32),
                         "powerpc":    (20,     0,    0,          False,         32),
+                        "powerpc64":  (21,     0,    0,          False,         64),
                         "i386":       ( 3,     0,    0,          True,          32),
                         "i486":       ( 3,     0,    0,          True,          32),
                         "i586":       ( 3,     0,    0,          True,          32),
Signature · 1 line
1.7.3.4
author
#2 lore raw

PATCH 2/5 libc: Add handling of powerpc64

---
 meta/classes/libc-package.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/libc-package.bbclass +1 -0
index 7cfeb7d..de57230 100644
@@ -266,6 +266,7 @@ python package_do_split_gconvs () {
 			locale_arch_options = { \
 				"arm":     " --uint32-align=4 --little-endian ", \
 				"powerpc": " --uint32-align=4 --big-endian ",    \
+				"powerpc64": " --uint32-align=4 --big-endian ",  \
 				"mips":    " --uint32-align=4 --big-endian ",    \
 				"mipsel":  " --uint32-align=4 --little-endian ", \
 				"i586":    " --uint32-align=4 --little-endian ", \
Signature · 1 line
1.7.3.4
author
#3 lore raw

PATCH 3/5 kernel-arch: Add handling of powerpc64

---
 meta/classes/kernel-arch.bbclass |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/classes/kernel-arch.bbclass +3 -2
index 86c15d3..225d599 100644
@@ -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
 
Signature · 1 line
1.7.3.4
author
#4 lore raw

PATCH 4/5 libart-lgpl: Add missing config file - allows builds on PowerPC 64

---
 .../gnome/libart-lgpl/powerpc64/art_config.h       |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-gnome/gnome/libart-lgpl/powerpc64/art_config.h
meta/recipes-gnome/gnome/libart-lgpl/powerpc64/art_config.h new file +10 -0
new file mode 100644
index 0000000..500ffc3
@@ -0,0 +1,10 @@
+/* Automatically generated by gen_art_config.c */
+
+#define ART_SIZEOF_CHAR 1
+#define ART_SIZEOF_SHORT 2
+#define ART_SIZEOF_INT 4
+#define ART_SIZEOF_LONG 8
+
+typedef unsigned char art_u8;
+typedef unsigned short art_u16;
+typedef unsigned int art_u32;
Signature · 1 line
1.7.3.4
author
#5 lore raw

PATCH 5/5 openssl: Add handling for building on linux-powerpc64

If try to build for an ppc64 target openssl will fail to build since the configure script didn't know how to handle a 'linux-powerpc64' target.

---
 meta/recipes-connectivity/openssl/openssl.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-connectivity/openssl/openssl.inc +3 -0
index 79620b3..b134ad0 100644
@@ -83,6 +83,9 @@ do_configure () {
 	linux-gnuspe-powerpc)
 		target=linux-ppc
 		;;
+	linux-powerpc64)
+		target=linux-ppc64
+		;;
 	linux-supersparc)
 		target=linux-sparcv8
 		;;
Signature · 1 line
1.7.3.4

Kumar Gala

author
#0 lore raw

cover Add support for powerpc64

Add various cleanups to core scripts and packages that are needed for building for a 64-bit powerpc target.

- k

#8 lore raw
Quoted 2 lines · Kumar Gala

Add various cleanups to core scripts and packages that are needed for building for a 64-bit powerpc target.

Merged to master, thanks.

Richard

Acked-by on v1 3/5
#7 lore raw

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

In reply to Kumar Gala
Quoted 1 line · Kumar Gala
Quoted 34 lines
---
 meta/classes/kernel-arch.bbclass |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/classes/kernel-arch.bbclass +3 -2
index 86c15d3..225d599 100644
@@ -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
 
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
Acked-by on v1 5/5
#6 lore raw

Re: [PATCH 5/5] openssl: Add handling for building on linux-powerpc64

In reply to Kumar Gala
Quoted 4 lines · Kumar Gala

If try to build for an ppc64 target openssl will fail to build since the configure script didn't know how to handle a 'linux-powerpc64' target.

Quoted 18 lines
---
 meta/recipes-connectivity/openssl/openssl.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-connectivity/openssl/openssl.inc +3 -0
index 79620b3..b134ad0 100644
@@ -83,6 +83,9 @@ do_configure () {
 	linux-gnuspe-powerpc)
 		target=linux-ppc
 		;;
+	linux-powerpc64)
+		target=linux-ppc64
+		;;
 	linux-supersparc)
 		target=linux-sparcv8
 		;;
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#9 lore raw
In reply to Kumar Gala
Quoted 2 lines · Kumar Gala

Add various cleanups to core scripts and packages that are needed for building for a 64-bit powerpc target.

Everything looks fine here, added my Ack's for bits I recall doing too :)

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
author
#10 lore raw
Quoted 5 lines · Tom Rini
Quoted 2 lines · Kumar Gala

Add various cleanups to core scripts and packages that are needed for building for a 64-bit powerpc target.

Everything looks fine here, added my Ack's for bits I recall doing too :)

Yeah, probably duplicated a bit of work there ;)

- k