1.1 --- a/arch/powerpc/functions Sun May 18 20:50:13 2008 +0000
1.2 +++ b/arch/powerpc/functions Sun Sep 28 21:34:11 2008 +0000
1.3 @@ -6,4 +6,17 @@
1.4
1.5 # The kernel ARCH:
1.6 CT_KERNEL_ARCH=powerpc
1.7 +
1.8 + # Add spe in the tuplet if needed
1.9 + case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
1.10 + glibc,|eglibc,) CT_TARGET_SYS=gnu;;
1.11 + glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
1.12 + esac
1.13 +
1.14 + # Add extra flags for SPE if needed
1.15 + if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
1.16 + CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
1.17 + CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
1.18 + CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
1.19 + fi
1.20 }