diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-17 10:33:59 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-17 10:33:59 (GMT) |
commit | 28b38f922241bd273f4f71823c037d4af43d96ba (patch) | |
tree | f43a7ec76d126f568f2c150fe1b7e3c475d7843f /scripts/build/arch/powerpc.sh | |
parent | 1f1863634345b157531fca21512784401b63752a (diff) |
arch/ppc: commonalise the 32- and 64-bit PowerPC arch
Diffstat (limited to 'scripts/build/arch/powerpc.sh')
-rw-r--r-- | scripts/build/arch/powerpc.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/build/arch/powerpc.sh b/scripts/build/arch/powerpc.sh index 6bcd840..b55e2e0 100644 --- a/scripts/build/arch/powerpc.sh +++ b/scripts/build/arch/powerpc.sh @@ -1,3 +1,21 @@ # Compute powerpc-specific values -. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common" +CT_DoArchTupleValues () { + # The architecture part of the tuple, override only for 64-bit + if [ "${CT_ARCH_64}" = "y" ]; then + CT_TARGET_ARCH="powerpc64" + fi + + # Add spe in the tuple if needed + case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in + glibc,|eglibc,) CT_TARGET_SYS=gnu;; + glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;; + esac + + # Add extra flags for SPE if needed + if [ "${CT_ARCH_POWERPC_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 +} |