Skip to contentSkip to conversation

libgpg-error: Support build for native on ppc64/ppc64le hosts

PATCH Superseded Serhey Popovych 3 participants 3 messages Nov 1, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgpg-error: Support build for native on ppc64/ppc64le hosts

Both RHEL and SLES uses ppc64/ppc64le for powerpc 64 bit big/little endian targets instead of powerpc64/powerpc64le in libgpg-error.

Also libgpg-error provides common target system names in form like <arch>-unknown-linux-gnu.

Add mapping for ppc64/ppc64le targets to their libgpg-error equivalents to fix native builds.

Cross build for arm64 tested on IBM Power 8 machine with RHEL7 for ppc64le variant only, but should work for ppc64 as well.

---
 meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/libgpg-error/libgpg-error_1.32.bb +1 -0
index 4f3e3d8..8fc95cc 100644
@@ -48,6 +48,7 @@ do_compile_prepend() {
 	  mips*el)    TUPLE=mipsel-unknown-linux-gnu ;;
 	  mips*)      TUPLE=mips-unknown-linux-gnu ;;
 	  x86_64)     TUPLE=x86_64-unknown-linux-gnu ;;
+	  ppc64*)     TUPLE=powerpc${TARGET_ARCH#ppc}-unknown-linux-gnu ;;
 	  *)          TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
 	esac
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 23 lines · Serhey Popovych

Both RHEL and SLES uses ppc64/ppc64le for powerpc 64 bit big/little endian targets instead of powerpc64/powerpc64le in libgpg-error.

Also libgpg-error provides common target system names in form like <arch>-unknown-linux-gnu.

Add mapping for ppc64/ppc64le targets to their libgpg-error equivalents to fix native builds.

Cross build for arm64 tested on IBM Power 8 machine with RHEL7 for ppc64le variant only, but should work for ppc64 as well.

---
 meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/libgpg-error/libgpg-error_1.32.bb +0 -0
index 4f3e3d8..8fc95cc 100644

meta/recipes-support/libgpg-error/libgpg-error_1.32.bb do_compile_prepend() { · line 51

Quoted 4 lines
meta/recipes-support/libgpg-error/libgpg-error_1.32.bb +1 -0
@@ -48,6 +48,7 @@ do_compile_prepend() {
          mips*el)    TUPLE=mipsel-unknown-linux-gnu ;;
          mips*)      TUPLE=mips-unknown-linux-gnu ;;
          x86_64)     TUPLE=x86_64-unknown-linux-gnu ;;
+         ppc64*)     TUPLE=powerpc${TARGET_ARCH#ppc}-unknown-linux-gnu ;;

if this works with dash shell then its ok. Otherwise just being explicit might be better and do we have a variable to indicate endianness in siteinfo bbclass called SITEINFO_ENDIANNESS

Quoted 11 lines
meta/recipes-support/libgpg-error/libgpg-error_1.32.bb +0 -1
          *)          TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
        esac
 
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core