arch/powerpc: fix tuple for uClibc

Changeset #7c288c777455 broke the tuple for uClibc-based
powerpc toolchains, by unconditionally  forcing CT_TARGET_SYS
to "gnu".

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-10-16 17:52:33 +02:00
parent 3032eb0e9c
commit c8f54b8ca7

View File

@ -6,14 +6,17 @@ CT_DoArchTupleValues () {
CT_TARGET_ARCH="powerpc64"
fi
CT_TARGET_SYS="gnu"
# Only override values when ABI is not the default
case "${CT_ARCH_powerpc_ABI}" in
"") ;;
eabi) CT_TARGET_SYS="eabi";;
eabi)
# EABI is only for bare-metal, so libc ∈ [none,newlib]
CT_TARGET_SYS="eabi"
;;
spe)
case "${CT_LIBC}" in
glibc|eglibc) CT_TARGET_SYS="gnuspe";;
*) CT_TARGET_SYS="spe";
none|newlib) CT_TARGET_SYS="spe";;
*glibc) CT_TARGET_SYS="gnuspe";;
uClibc) CT_TARGET_SYS="uclibcgnuspe";;
esac
;;
esac