summaryrefslogtreecommitdiff
path: root/scripts
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
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')
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common1
-rw-r--r--scripts/functions4
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
index d306fd0..8929f5c 100644
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -135,6 +135,7 @@ do_libc_backend() {
case "${CT_ARCH_FLOAT}" in
hard) extra_config+=("--with-fp");;
soft) extra_config+=("--without-fp");;
+ softfp) extra_config+=("--with-fp");;
esac
if [ "${CT_LIBC_DISABLE_VERSIONING}" = "y" ]; then
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