toolchain-funcs.eclass: Update tc-is-softfloat for new ARM tuples
authorJames Le Cuirot <chewi@gentoo.org>
Tue, 24 Jul 2018 21:54:27 +0000 (22:54 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 21 Aug 2018 20:37:27 +0000 (21:37 +0100)
commit921cb9c10de4d237924a61a1c27f914dfb479a64
tree57b3522793cd58074600333067735919d692a795
parentf3f183dd42463b42d1aac27debb04c75c616dae7
toolchain-funcs.eclass: Update tc-is-softfloat for new ARM tuples

ARM tuples will change from armv7a-hardfloat-linux-gnueabi to
armv7a-unknown-linux-gnueabihf or similar in the 17.0 profiles. The
function already treated the latter as hardfloat but this commit will
now treat ambiguous tuples such as arm-unknown-linux-gnueabi as
softfloat rather than hardfloat. This brings Gentoo in line with most
of the ARM Linux community. However, the function will now check
existing toolchains to avoid breaking existing systems, if possible.

This has been achieved by splitting the function in three,
tc-detect-is-softfloat for checking existing toolchains,
tc-tuple-is-softfloat for checking just the tuple, and the new
tc-is-softfloat that calls the first two. The output from the first
two could be compared to inform the user that they are not using a
recommended tuplet.
eclass/toolchain-funcs.eclass