summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-19 02:27:32 (GMT)
committerMichael Hope <michael.hope@linaro.org>2011-10-19 02:27:32 (GMT)
commit4fc56b1d14ffb5e48956dfdd0ce10cd9ac5dd6b6 (patch)
tree89a62bc3e0b18534e42db5d271571c2d105f116d /scripts/functions
parent67ede2f5d46768a97359f6f4ab345c76e726b2d8 (diff)
arch: add softfp support
Some architectures support a mixed hard/soft floating point, where the compiler emits hardware floating point instructions, but passes the operands in core (aka integer) registers. For example, ARM supports this mode (to come in the next changeset). Add support for softfp cross compilers to the GCC and GLIBC configuration. Needed for Ubuntu and other distros that are softfp. Signed-off-by: Michael Hope <michael.hope@linaro.org> [yann.morin.1998@anciens.enib.fr: split the original patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index f4b19ca..63c0423 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -993,6 +993,10 @@ CT_DoBuildTargetTuple() {
CT_ARCH_FLOAT_CFLAG="-msoft-float"
CT_ARCH_WITH_FLOAT="--with-float=soft"
;;
+ softfp)
+ CT_ARCH_FLOAT_CFLAG="-mfloat-abi=softfp"
+ CT_ARCH_WITH_FLOAT="--with-float=softfp"
+ ;;
esac
# Build the default kernel tuple part