summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhuang Yuyao <mlistz@gmail.com>2010-02-20 06:35:02 (GMT)
committerZhuang Yuyao <mlistz@gmail.com>2010-02-20 06:35:02 (GMT)
commitf8ba6cb7e68aaac83c1a05dd934904ff20d3dd71 (patch)
tree8e8a0b811625fc62654fd3368aac41b47fdbfd2d
parent00ac124509e73bd004428fc9cb24af81c7ec6126 (diff)
arch: add mips64
This adds initial mips64 config option and build script.
-rw-r--r--config/arch/mips.in1
-rw-r--r--scripts/build/arch/mips.sh9
2 files changed, 8 insertions, 2 deletions
diff --git a/config/arch/mips.in b/config/arch/mips.in
index 46fa8ad..6499b88 100644
--- a/config/arch/mips.in
+++ b/config/arch/mips.in
@@ -2,6 +2,7 @@
config ARCH_mips
select ARCH_SUPPORTS_32
+ select ARCH_SUPPORTS_64 if EXPERIMENTAL
select ARCH_DEFAULT_32
select ARCH_USE_MMU
select ARCH_SUPPORTS_BOTH_ENDIAN
diff --git a/scripts/build/arch/mips.sh b/scripts/build/arch/mips.sh
index ae9e111..c5b18e5 100644
--- a/scripts/build/arch/mips.sh
+++ b/scripts/build/arch/mips.sh
@@ -1,8 +1,13 @@
# Compute IA-64-specific values
CT_DoArchTupleValues() {
- # The architecture part of the tuple:
- CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
+ # The architecture part of the tuple, override only for 64-bit
+ if [ "${CT_ARCH_64}" = "y" ]; then
+ CT_TARGET_ARCH="mips64${target_endian_el}"
+ else
+ # The architecture part of the tuple:
+ CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
+ fi
# Override CFLAGS for endianness:
case "${CT_ARCH_BE},${CT_ARCH_LE}" in