Disable o32 ABI for MIPS64 architectures
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Fri, 28 Mar 2014 11:00:52 +0000 (11:00 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 28 Mar 2014 11:51:46 +0000 (12:51 +0100)
Building o32 ELF files for MIPS64 is an exotic configuration that nobody
should be using. If o32 is required, then is better if it's built for
MIPS 32-bit cores so only 32-bit instructions will be used leading to a
more efficient o32 usage.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
CHANGES
arch/Config.in.mips

diff --git a/CHANGES b/CHANGES
index 45a31c40d947d6998c88ddf7a48b58797065ba30..1487a29c619eb840ca9730c011b7cc6399069f66 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,11 @@
+2014.05, Not yet released:
+
+Support for MIPS o32 ABI on MIPS-64 targets has been removed. Building
+o32 ELF files for MIPS64 is an exotic configuration that nobody should
+be using. If o32 is required, then is better if it's built for MIPS
+32-bit cores so only 32-bit instructions will be used leading to a more
+efficient o32 usage.
+
 2014.02, Released February 27th, 2014
 
        Minor fixes.
index d9c0c0251b2ae8006408e42e3f5ba70d530b71f2..20951e02d858bfa1d4c2602ecb373345fa30a66f 100644 (file)
@@ -38,15 +38,12 @@ endchoice
 
 choice
        prompt "Target ABI"
-       depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
-       default BR2_MIPS_OABI32 if !BR2_ARCH_IS_64
-       default BR2_MIPS_NABI32 if BR2_ARCH_IS_64
+       depends on BR2_mips64 || BR2_mips64el
+       default BR2_MIPS_NABI32
 
        help
          Application Binary Interface to use
 
-config BR2_MIPS_OABI32
-       bool "o32"
 config BR2_MIPS_NABI32
        bool "n32"
        depends on BR2_ARCH_IS_64
@@ -86,6 +83,10 @@ config BR2_GCC_TARGET_ARCH
        default "mips64"        if BR2_mips_64
        default "mips64r2"      if BR2_mips_64r2
 
+config BR2_MIPS_OABI32
+       bool
+       default y               if BR2_mips || BR2_mipsel
+
 config BR2_GCC_TARGET_ABI
        default "32"            if BR2_MIPS_OABI32
        default "n32"           if BR2_MIPS_NABI32