diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/arch/powerpc-powerpc64.sh-common | 22 | ||||
-rw-r--r-- | scripts/build/arch/powerpc.sh | 20 | ||||
-rw-r--r-- | scripts/build/arch/powerpc64.sh | 3 |
3 files changed, 19 insertions, 26 deletions
diff --git a/scripts/build/arch/powerpc-powerpc64.sh-common b/scripts/build/arch/powerpc-powerpc64.sh-common deleted file mode 100644 index edba61e..0000000 --- a/scripts/build/arch/powerpc-powerpc64.sh-common +++ /dev/null @@ -1,22 +0,0 @@ -# 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 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 +} diff --git a/scripts/build/arch/powerpc64.sh b/scripts/build/arch/powerpc64.sh deleted file mode 100644 index 6bcd840..0000000 --- a/scripts/build/arch/powerpc64.sh +++ /dev/null @@ -1,3 +0,0 @@ -# Compute powerpc-specific values - -. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common" |