toolchain-wrapper: support change of BR2_CCACHE
authorArnout Vandecappelle <arnout@mind.be>
Sun, 4 Oct 2015 12:28:56 +0000 (13:28 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 4 Oct 2015 16:22:20 +0000 (18:22 +0200)
commit792f1278e3fbc165086aebb8c07cfd18e10f374b
treebe8920e77b456b647fc427e4df851ba4753a4766
parent2b356105f0b44bc8d7af0987d572afde539efd35
toolchain-wrapper: support change of BR2_CCACHE

By moving the ccache call to the toolchain wrapper, the following
scenario no longer works:

make foo-dirclean all BR2_CCACHE=

That's a sometimes useful call to check if some failure is perhaps
caused by ccache.

We can enable this scenario again by exporting BR_NO_CCACHE when
BR2_CCACHE is not set, and by handling this in the toolchain wrapper.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile
toolchain/toolchain-wrapper.c