Add support for powerpc64
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
PATCH 1/5 insane.bbclass: Recognise powerpc64
--- meta/classes/insane.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/insane.bbclass +1 -0
@@ -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
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
@@ -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
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
@@ -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
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
@@ -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
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
@@ -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
Re: [PATCH 5/5] openssl: Add handling for building on linux-powerpc64
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.
Signed-off-by Kumar Gala <[email protected]>
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@@ -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
Re: [PATCH 3/5] kernel-arch: Add handling of powerpc64
In reply to Kumar GalaQuoted 1 line · Kumar Gala
Signed-off-by Kumar Gala <[email protected]>
Quoted 34 lines
--- meta/classes/kernel-arch.bbclass | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)meta/classes/kernel-arch.bbclass +3
-2@@ -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
Richard Purdie
AppliedQuoted 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
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
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