summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhey Popovych <serhe.popovych@gmail.com>2019-01-12 12:11:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 16:35:33 +0000
commit775d89d45d55defe168c1ce3752de6ac3b7c7e61 (patch)
tree64e702b0c1ea18e171c80a71c48a2e5f774f0476
parent79712bcaa19d4eafbb7113620c3ad9f3cfde5fe1 (diff)
downloadpoky-775d89d45d55defe168c1ce3752de6ac3b7c7e61.tar.gz
libgpg-error: Support build for native on ppc host
In Ubuntu 16.04 LTS userspace is build for PowerPC 32-bit while kernel selected by the installer depending on PowerPC machine type: * 32-bit for PowerMac G4 (ppc7400) and below * 64-bit for PowerMac G5 and above Thus uname(2) returns ppc64 for 64-bit kernels and 32-bit userspace making build impossible due to missing some of lib64 multilib equivalents in Ubuntu repository. Using setarch(8) override to make whole host look as PowerPC 32-bit can actually help with build but requires mapping for ppc target to their libgpg-error equivalent to fix native build. Build tested on Ubuntu 16.04 LTS host on PowerMac G5 with command: MACHINE=qemuppc setarch ppc bitbake core-image-full-cmdline (From OE-Core rev: e81a5a640a2a00c43796cd47e168c93bb389a6c8) Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libgpg-error/libgpg-error_1.35.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.35.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.35.bb
index 9a822add32..57ac143fd5 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.35.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.35.bb
@@ -47,6 +47,7 @@ do_compile_prepend() {
47 mips*el) TUPLE=mipsel-unknown-linux-gnu ;; 47 mips*el) TUPLE=mipsel-unknown-linux-gnu ;;
48 mips*) TUPLE=mips-unknown-linux-gnu ;; 48 mips*) TUPLE=mips-unknown-linux-gnu ;;
49 x86_64) TUPLE=x86_64-unknown-linux-gnu ;; 49 x86_64) TUPLE=x86_64-unknown-linux-gnu ;;
50 ppc) TUPLE=powerpc-unknown-linux-gnu ;;
50 ppc64) TUPLE=powerpc64-unknown-linux-gnu ;; 51 ppc64) TUPLE=powerpc64-unknown-linux-gnu ;;
51 ppc64le) TUPLE=powerpc64le-unknown-linux-gnu ;; 52 ppc64le) TUPLE=powerpc64le-unknown-linux-gnu ;;
52 *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; 53 *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;