]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
external-toolchain: fix support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 May 2011 16:52:27 +0000 (18:52 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 8 May 2011 19:56:10 +0000 (21:56 +0200)
commitc59d0247541a85c62227b79d4fdb77405c4e6c99
treed2fb55d1d3d4734b6fad7debf88d4359b873587b
parent8451c2329e000baf64c986889e8d5b3ac1c8d698
external-toolchain: fix support

The recent commit adding the external toolchain wrapper has broken the
support for external toolchain. The check_arm_eabi, check_cplusplus
and check_cross_compiler_exists functions were using TARGET_CC, which
points to the toolchain wrapper, but at the moment those functions are
called, the wrapper hasn't been generated yet.

We fix this by passing to these functions the path to the C or C++
compiler they should use for their tests.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/helpers.mk
toolchain/toolchain-external/ext-tool.mk