From 9a0a0a976bc1094719556065ab5e982c6ca27563 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Wed, 28 Jun 2017 16:17:11 +0100 Subject: arch/mips: add support for MIPS32 FP mode MIPS32 support different FP modes (32,xx,64), so give the user the opportunity to choose between them. That will cause host-gcc to be built using the --with-fp-32=[32|xx|64] configure option. Also the -mfp[32|xx|64] gcc option will be added to TARGET_CFLAGS and to the toolchain wrapper. FP mode option shouldn't be used for soft-float, so we add logic in the toolchain wrapper if -msoft-float is among the arguments in order to not append the -fp[[32|xx|64] option, otherwise the compilation may fail. Information about FP modes here: - https://sourceware.org/binutils/docs/as/MIPS-Options.html - https://dmz-portal.imgtec.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking#5._Generating_modeless_code Signed-off-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- arch/Config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/Config.in') diff --git a/arch/Config.in b/arch/Config.in index e921879d01..f385745e47 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -267,6 +267,9 @@ config BR2_GCC_TARGET_ABI config BR2_GCC_TARGET_NAN string +config BR2_GCC_TARGET_FP32_MODE + string + config BR2_GCC_TARGET_CPU string -- cgit v1.2.1