diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-31 17:39:35 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-31 17:39:35 (GMT) |
commit | 94e376af7728839c40192d5a02abbeb638dc36f1 (patch) | |
tree | 9f29876a8e9fc2ea2c54659c8f3826b130182fff /scripts | |
parent | 04fa7e056926627f982f30e3ac9e90fb849f5224 (diff) |
Add support for powerpc64, along with an EXPERIMENTAL sample.
/trunk/scripts/build/arch/powerpc64.sh | 21 1 20 0 -
/trunk/scripts/build/arch/powerpc.sh | 21 1 20 0 -
/trunk/samples/powerpc64-unknown-linux-gnu/crosstool.config | 388 388 0 0 +++++++++++++++++++
/trunk/samples/powerpc64-unknown-linux-gnu/reported.by | 3 3 0 0 +
/trunk/config/arch/powerpc-powerpc64.in-common | 12 4 8 0 -
/trunk/config/arch/powerpc.in | 15 0 15 0 -
/trunk/config/arch/powerpc64.in | 19 3 16 0 -
7 files changed, 400 insertions(+), 79 deletions(-)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/arch/powerpc-powerpc64.sh-common | 22 | ||||
-rw-r--r-- | scripts/build/arch/powerpc.sh | 21 | ||||
-rw-r--r-- | scripts/build/arch/powerpc64.sh | 3 |
3 files changed, 26 insertions, 20 deletions
diff --git a/scripts/build/arch/powerpc-powerpc64.sh-common b/scripts/build/arch/powerpc-powerpc64.sh-common new file mode 100644 index 0000000..edba61e --- /dev/null +++ b/scripts/build/arch/powerpc-powerpc64.sh-common @@ -0,0 +1,22 @@ +# Compute powerpc-specific values + +CT_DoArchTupleValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" + + # The kernel ARCH: + CT_KERNEL_ARCH=powerpc + + # Add spe in the tuplet 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 +} diff --git a/scripts/build/arch/powerpc.sh b/scripts/build/arch/powerpc.sh index edba61e..6bcd840 100644 --- a/scripts/build/arch/powerpc.sh +++ b/scripts/build/arch/powerpc.sh @@ -1,22 +1,3 @@ # Compute powerpc-specific values -CT_DoArchTupleValues () { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" - - # The kernel ARCH: - CT_KERNEL_ARCH=powerpc - - # Add spe in the tuplet 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 -} +. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common" diff --git a/scripts/build/arch/powerpc64.sh b/scripts/build/arch/powerpc64.sh new file mode 100644 index 0000000..6bcd840 --- /dev/null +++ b/scripts/build/arch/powerpc64.sh @@ -0,0 +1,3 @@ +# Compute powerpc-specific values + +. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common" |