barebox: use ccache if enabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Feb 2011 19:53:05 +0000 (20:53 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Feb 2011 19:53:05 +0000 (20:53 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
boot/barebox/barebox.mk

index 3df424c41eeb28014f23ee2274eb688764d75fcf..07266d996b81cb012a9c566aa8fa1356cd5e8807 100644 (file)
@@ -19,7 +19,7 @@ else
 BAREBOX_ARCH=$(KERNEL_ARCH)
 endif
 
-BAREBOX_MAKE_FLAGS = ARCH=$(BAREBOX_ARCH) CROSS_COMPILE=$(TARGET_CROSS)
+BAREBOX_MAKE_FLAGS = ARCH=$(BAREBOX_ARCH) CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)"
 
 $(DL_DIR)/$(BAREBOX_SOURCE):
         $(call DOWNLOAD,$(BAREBOX_SITE),$(BAREBOX_SOURCE))