summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-11-17 10:33:59 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-11-17 10:33:59 (GMT)
commit28b38f922241bd273f4f71823c037d4af43d96ba (patch)
treef43a7ec76d126f568f2c150fe1b7e3c475d7843f /scripts/build
parent1f1863634345b157531fca21512784401b63752a (diff)
arch/ppc: commonalise the 32- and 64-bit PowerPC arch
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/arch/powerpc-powerpc64.sh-common22
-rw-r--r--scripts/build/arch/powerpc.sh20
-rw-r--r--scripts/build/arch/powerpc64.sh3
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"