Skip to content

ppc/native: Fix native builds with PowerPC 32-bit host system

Serhey Popovych openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libgpg-error: Support build for native on ppc hostmeta/recipes-support/libgpg-error/libgpg-error_1.33.bb+1 -08 replies
2/2binutils: Speed up and fix native buildsmeta/recipes-devtools/binutils/binutils_2.31.bb+19 -141 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ppc/native: Fix native builds with PowerPC 32-bit host system

In some specific environments on PowerPC native builds failing due to:

a) libgpg-error requires TARGET_ARCH tuple mapping to supported tuple
b) binutils fails to build with --enable-targets=all due to small bss and data relocation failures.

To fix a) is trivial: we need to add tuple mapping for TARGET_ARCH=ppc.

Fixing b) isn't simple because with --enable-targets=all binary becomes too big to support R_PPC_GOT16 relocations against small bss/data. Since for native builds we only need libbfd, libiberty and libopcodes we can build only these three archives and their dependencies.

See individual commit message for details on each change presented.

Serhey Popovych (2):
libgpg-error: Support build for native on ppc host
binutils: Speed up and fix native builds

 meta/recipes-devtools/binutils/binutils_2.31.bb    | 33 +++++++++++++---------
 .../libgpg-error/libgpg-error_1.33.bb              |  1 +
 2 files changed, 20 insertions(+), 14 deletions(-)
Signature · 1 line
2.7.4