toolchain-buildroot: allow to build ppc64(le) musl toolchains
commit5ab751ca44e9da6f406876ff582b3a813056b0d4
authorWaldemar Brodkorb <wbx@openadk.org>
Thu, 18 Aug 2016 06:37:29 +0000 (18 08:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Aug 2016 12:28:01 +0000 (19 14:28 +0200)
treef6ed830d7bfefb1892e8c0c42ed66fa573743a5d
parent2970711de7516b171b9c214be388bad49177b842
toolchain-buildroot: allow to build ppc64(le) musl toolchains

Latest musl release supports ppc64 architecture (both big endian and
little endian), so this commit adds support for this.

Since musl implements the ELFv2 ABI for both big-endian and
little-endian PowerPC64, we have to force using this ABI on PowerPC64
big endian (normally elfv1 is the default).

Also, only gcc 6.x has the necessary changes to support musl on PowerPC
64, so we restrict the gcc version selection accordingly.

Tested with Qemu for big endian and little endian configurations.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Thomas: add comment about the ABI flag in gcc.mk, rework commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/Config.in.host
package/gcc/gcc.mk
toolchain/toolchain-buildroot/Config.in