mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
aaaea2987a
Technically, I don't forbid powerpcle support either, but I'm not sure that there is any library/compiler support for that at the moment (though the hw technically makes it possible). powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support tools, but at least gdb 7.5 is too old (7.7.1 definitely has support). Also make powerpc64 non-experimental. It's practically old at this point. Signed-off-by: Cody P Schafer <dev@codyps.com> [yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun> Patchwork-Id: 347775
29 lines
934 B
Bash
29 lines
934 B
Bash
# Compute powerpc-specific values
|
|
|
|
CT_DoArchTupleValues () {
|
|
# The architecture part of the tuple
|
|
CT_TARGET_ARCH="powerpc${target_bits_64}${target_endian_le}${CT_ARCH_SUFFIX}"
|
|
|
|
# Only override values when ABI is not the default
|
|
case "${CT_ARCH_powerpc_ABI}" in
|
|
eabi)
|
|
# EABI is only for bare-metal, so libc ∈ [none,newlib]
|
|
CT_TARGET_SYS="eabi"
|
|
;;
|
|
spe)
|
|
case "${CT_LIBC}" in
|
|
none|newlib) CT_TARGET_SYS="spe";;
|
|
*glibc) CT_TARGET_SYS="gnuspe";;
|
|
uClibc) CT_TARGET_SYS="uclibcgnuspe";;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
# Add extra flags for SPE if needed
|
|
if [ "${CT_ARCH_powerpc_ABI_SPE}" = "y" ]; then
|
|
CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
|
|
CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
|
|
CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
|
|
fi
|
|
}
|