common: add ppc64 build profiles and other ppc64 bits

This adds the build profiles for ppc64 targets as well as
modifications in other parts of the infra.

These targets are supported:

- ppc64le (glibc little endian elfv2)
- ppc64le-musl (musl little endian)
- ppc64-musl (musl big endian)

ELFv1 targets are explicitly not supported at this point.

Big endian musl supports ppc 970 or newer, while little endian
targets are set to a generic powerpc64le which effectively means
POWER8 and newer. Tuning is always set for POWER9, which is the
most likely target hardware. We also make sure AltiVec is always
on, because it is supported on all hardware we target.

[ci skip]
This commit is contained in:
q66 2019-01-01 00:24:00 +01:00 committed by Enno Boland
parent b1b1bb2905
commit 151f876627
13 changed files with 138 additions and 0 deletions

View file

@ -8,6 +8,8 @@ case "$XBPS_TARGET_MACHINE" in
armv7*) export GOARCH=arm; export GOARM=7;;
i686*) export GOARCH=386;;
x86_64*) export GOARCH=amd64;;
ppc64le*) export GOARCH=ppc64le;;
ppc64*) export GOARCH=ppc64;;
esac
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"