diff options
-rw-r--r-- | config/arch/mips.in | 1 | ||||
-rw-r--r-- | scripts/build/arch/mips.sh | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/config/arch/mips.in b/config/arch/mips.in index 46fa8ad1..6499b881 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 ae9e1112..c5b18e5b 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 |