mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-18 15:28:10 +00:00
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>
This commit is contained in:
committed by
Michael Hope
parent
67ede2f5d4
commit
4fc56b1d14
@ -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
|
||||
|
Reference in New Issue
Block a user