arch: add mips64
authorZhuang Yuyao <mlistz@gmail.com>
Sat Feb 20 07:35:02 2010 +0100 (2010-02-20)
changeset 181533e1e077f47f
parent 1814 10579a8e9141
child 1816 ab179fab1409
arch: add mips64

This adds initial mips64 config option and build script.
config/arch/mips.in
scripts/build/arch/mips.sh
     1.1 --- a/config/arch/mips.in	Wed Feb 03 00:24:24 2010 +0100
     1.2 +++ b/config/arch/mips.in	Sat Feb 20 07:35:02 2010 +0100
     1.3 @@ -2,6 +2,7 @@
     1.4  
     1.5  config ARCH_mips
     1.6      select ARCH_SUPPORTS_32
     1.7 +    select ARCH_SUPPORTS_64 if EXPERIMENTAL
     1.8      select ARCH_DEFAULT_32
     1.9      select ARCH_USE_MMU
    1.10      select ARCH_SUPPORTS_BOTH_ENDIAN
     2.1 --- a/scripts/build/arch/mips.sh	Wed Feb 03 00:24:24 2010 +0100
     2.2 +++ b/scripts/build/arch/mips.sh	Sat Feb 20 07:35:02 2010 +0100
     2.3 @@ -1,8 +1,13 @@
     2.4  # Compute IA-64-specific values
     2.5  
     2.6  CT_DoArchTupleValues() {
     2.7 -    # The architecture part of the tuple:
     2.8 -    CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
     2.9 +    # The architecture part of the tuple, override only for 64-bit
    2.10 +    if [ "${CT_ARCH_64}" = "y" ]; then
    2.11 +        CT_TARGET_ARCH="mips64${target_endian_el}"
    2.12 +    else
    2.13 +        # The architecture part of the tuple:
    2.14 +        CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
    2.15 +    fi
    2.16  
    2.17      # Override CFLAGS for endianness:
    2.18      case "${CT_ARCH_BE},${CT_ARCH_LE}" in