summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-16 15:52:33 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-16 15:52:33 (GMT)
commitc8f54b8ca782375a8eb432149061ec4d07247af9 (patch)
tree432f76f1ba2f6e610e8000d1247e6c3fa0d21de1 /scripts
parent3032eb0e9c330460b7057ce189d4d8bedc1b9de5 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/arch/powerpc.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/build/arch/powerpc.sh b/scripts/build/arch/powerpc.sh
index 51ea2a5..ead91dc 100644
--- a/scripts/build/arch/powerpc.sh
+++ b/scripts/build/arch/powerpc.sh
@@ -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