diff options
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 3fa32820151c..12ed132c48f1 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -231,6 +231,10 @@ tc-detect-is-softfloat() { [[ $(tc-getTARGET_CPP) == "gcc -E" ]] && return 1 case ${CTARGET:-${CHOST}} in + # Avoid autodetection for bare-metal targets. bug #666896 + *-newlib|*-elf|*-eabi) + return 1 ;; + # arm-unknown-linux-gnueabi is ambiguous. We used to treat it as # hardfloat but we now treat it as softfloat like most everyone # else. Check existing toolchains to respect existing systems. @@ -269,6 +273,9 @@ tc-tuple-is-softfloat() { echo "softfp" ;; arm*-hardfloat-*|arm*eabihf) echo "no" ;; + # bare-metal targets have their defaults. bug #666896 + *-newlib|*-elf|*-eabi) + echo "no" ;; arm*) echo "yes" ;; *) |