summaryrefslogtreecommitdiff
path: root/scripts/build/arch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-12 20:14:04 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-12 20:14:04 (GMT)
commitb92668a21123d0039f9d5df407469cb6c37fce24 (patch)
treef0c185f7fd70ef9f065d14a8ec885d1adddb4b95 /scripts/build/arch
parentdae205737f585e8fdc6430d68f4d1655e3f71d19 (diff)
arch/mips: add option for MIPS ABIs
This adds selection for one of the o32, n32 and n64 ABIs. Later, we can easily use those boolean options, rather than relying on a user-supplied string option. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/arch')
-rw-r--r--scripts/build/arch/mips.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/arch/mips.sh b/scripts/build/arch/mips.sh
index c5b18e5..3b771b2 100644
--- a/scripts/build/arch/mips.sh
+++ b/scripts/build/arch/mips.sh
@@ -14,4 +14,8 @@ CT_DoArchTupleValues() {
y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
esac
+
+ # Override ABI flags
+ CT_ARCH_ABI_CFLAG="-mabi=${CT_ARCH_mips_ABI}"
+ CT_ARCH_WITH_ABI="--with-abi=${CT_ARCH_mips_ABI}"
}