summaryrefslogtreecommitdiffstats
path: root/target/Config.in.arch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-05-12 12:43:57 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-05-12 12:43:57 +0000
commit7d77306f290c9c3c41ff07b78d6f787b3c8d9067 (patch)
treebfdb01f9a28368a332f055c762735081821a757b /target/Config.in.arch
parenta8ee124036219e12290347bc5c2a1c30ab10ae03 (diff)
downloadbuildroot-novena-7d77306f290c9c3c41ff07b78d6f787b3c8d9067.tar.gz
buildroot-novena-7d77306f290c9c3c41ff07b78d6f787b3c8d9067.zip
toolchain: fix mips abi selection
Based on commit 0e2ab in aldot's tree.
Diffstat (limited to 'target/Config.in.arch')
-rw-r--r--target/Config.in.arch37
1 files changed, 27 insertions, 10 deletions
diff --git a/target/Config.in.arch b/target/Config.in.arch
index 510d9294d..00624288d 100644
--- a/target/Config.in.arch
+++ b/target/Config.in.arch
@@ -148,6 +148,8 @@ config BR2_mips_32r2
bool "mips 32r2"
config BR2_mips_64
bool "mips 64"
+config BR2_mips_64r2
+ bool "mips 64r2"
config BR2_mips_16
bool "mips 16"
endchoice
@@ -156,16 +158,30 @@ endchoice
choice
prompt "Target ABI"
depends BR2_mips || BR2_mipsel
- default BR2_MIPS_EABI
+ default BR2_MIPS_OABI32 if BR_mips_32 || BR_mips_32r2
+ default BR2_MIPS_ABI32 if BR_mips_64 || BR_mips_64r2
help
Application Binary Interface to use
-config BR2_MIPS_OABI
- bool "OABI"
+config BR2_MIPS_OABI32
+ bool "o32"
+config BR2_MIPS_ABI32
+ bool "n32"
+ depends BR2_mips_3 || BR2_mips_4 || BR2_mips_64 || BR2_mips_64r2 || BR2_mips_16
config BR2_MIPS_EABI
- bool "EABI"
+ bool "eabi"
+ depends BR2_mips_3 || BR2_mips_4 || BR2_mips_64 || BR2_mips_64r2 || BR2_mips_16
config BR2_MIPS_ABI64
- bool "N64"
+ bool "n64"
+ depends BR2_mips_3 || BR2_mips_4 || BR2_mips_64 || BR2_mips_64r2 || BR2_mips_16
+config BR2_MIPS_OABI64
+ bool "o64"
+ depends BR2_mips_3 || BR2_mips_4 || BR2_mips_64 || BR2_mips_64r2 || BR2_mips_16
+config BR2_MIPS_ABI_none
+ bool "unspecified"
+ depends BR2_mips_16
+ help
+ Unspecified ABI leaves ABI selection blank.
endchoice
choice
@@ -594,6 +610,7 @@ config BR2_GCC_TARGET_TUNE
default mips32 if BR2_mips_32
default mips32r2 if BR2_mips_32r2
default mips64 if BR2_mips_64
+ default mips64r2 if BR2_mips_64r2
default mips16 if BR2_mips_16
default 401 if BR2_powerpc_401
default 403 if BR2_powerpc_403
@@ -694,11 +711,11 @@ config BR2_GCC_TARGET_ABI
default aapcs if BR2_arm_dunno
default aapcs-linux if BR2_arm_dunno
default iwmmxt if BR2_iwmmxt
- default 32 if BR2_mipsel && BR2_MIPS_OABI
- default n32 if BR2_mipsel && BR2_MIPS_EABI
- default o64 if BR2_mips && BR2_MIPS_OABI
- default eabi if BR2_mips && BR2_MIPS_EABI
- default 64 if BR2_mips && BR2_MIPS_ABI64
+ default 32 if BR2_MIPS_OABI32
+ default n32 if BR2_MIPS_ABI32
+ default eabi if BR2_MIPS_EABI
+ default o64 if BR2_MIPS_OABI64
+ default n64 if BR2_MIPS_ABI64
default mmixware if BR2_mmix && BR2_MMIX_ABI_native
default gnu if BR2_mmix && !BR2_MMIX_ABI_native
default altivec if BR2_powerpc && BR2_PPC_ABI_altivec