crosstool-ng: fix ctng-menuconfig with ccache enabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Feb 2011 12:08:39 +0000 (13:08 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Feb 2011 12:08:39 +0000 (13:08 +0100)
If ccache is enabled, we need to ensure it is built for the host before
anything else.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/toolchain-crosstool-ng/crosstool-ng.mk

index 8db8eac5c9d3ff056577a375f0c41375e3ac8fb4..edd643baaeeb10c63fd935a54bf51c7ce2d20271 100644 (file)
@@ -395,7 +395,8 @@ $(CTNG_DIR)/.patched: $(CTNG_DIR)/.unpacked
 # considered always remade. But we do not want
 # to reconfigure and rebuild ct-ng every time
 # we need to run it...
-$(CTNG_DIR)/.configured: | host-gawk        \
+$(CTNG_DIR)/.configured: | $(if $(BR2_CCACHE),host-ccache) \
+                           host-gawk        \
                            host-automake
 
 $(CTNG_DIR)/.configured: $(CTNG_DIR)/.patched