All of lore.kernel.org
 help / color / mirror / Atom feed
* [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts
@ 2018-11-01 16:34 Serhey Popovych
  2018-11-01 16:48 ` Khem Raj
  2018-11-01 16:52 ` Burton, Ross
  0 siblings, 2 replies; 3+ messages in thread
From: Serhey Popovych @ 2018-11-01 16:34 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
---
 meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
index 4f3e3d8..8fc95cc 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
@@ -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
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts
  2018-11-01 16:34 [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts Serhey Popovych
@ 2018-11-01 16:48 ` Khem Raj
  2018-11-01 16:52 ` Burton, Ross
  1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2018-11-01 16:48 UTC (permalink / raw)
  To: serhe.popovych; +Cc: Patches and discussions about the oe-core layer

On Thu, Nov 1, 2018 at 9:35 AM Serhey Popovych <serhe.popovych@gmail.com> wrote:
>
> 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.
>
> Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
> ---
>  meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
> index 4f3e3d8..8fc95cc 100644
> --- a/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
> +++ b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb
> @@ -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

>           *)          TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
>         esac
>
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts
  2018-11-01 16:34 [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts Serhey Popovych
  2018-11-01 16:48 ` Khem Raj
@ 2018-11-01 16:52 ` Burton, Ross
  1 sibling, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2018-11-01 16:52 UTC (permalink / raw)
  To: serhe.popovych; +Cc: OE-core

On Thu, 1 Nov 2018 at 16:35, Serhey Popovych <serhe.popovych@gmail.com> wrote:
> +         ppc64*)     TUPLE=powerpc${TARGET_ARCH#ppc}-unknown-linux-gnu ;;

I agree with Khem: clever, but explicit wins here.

Ross


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-01 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 16:34 [[PATCH] libgpg-error: Support build for native on ppc64/ppc64le hosts Serhey Popovych
2018-11-01 16:48 ` Khem Raj
2018-11-01 16:52 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.