mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 22:52:23 +00:00
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:
parent
3032eb0e9c
commit
c8f54b8ca7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user