toolchain: allow for stupid toolchains
authorGuido Martínez <guido@vanguardiasur.com.ar>
Fri, 26 Jun 2015 17:33:20 +0000 (14:33 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 28 Jun 2015 12:32:40 +0000 (14:32 +0200)
commit375bc18850f0f8fec90e1e478c0e9d2159377a64
tree2b8c51e36f47a762a327ac0faedca3eead65febe
parent9971ebfe9d17efeddec76b40bf4b3714d175680b
toolchain: allow for stupid toolchains

check_arm_abi builds a test C file to check that the toolchain is
working correctly, with the output redirected to /dev/null.

However, some toolchains (OSELAS 2014.12.0, for instance) foolishly
append ".gdb" to the output filename for an intermediate file, causing
an attempt to write to /dev/null.gdb, which obviously fails.

Fix this by adding changing the output to a temporary file, which is
later removed along with any other "suffixed" files.

Suggested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk