Enable ccache for u-boot compile
authorMartin Hicks <mort@bork.org>
Tue, 1 Feb 2011 17:13:01 +0000 (12:13 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Feb 2011 19:51:55 +0000 (20:51 +0100)
Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.

Signed-off-by: Martin Hicks <mort@bork.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
boot/u-boot/u-boot.mk

index d520bb80e8288db5d42cef1a0905986f912f9168..2f890fa33f7bb9c956cced95c66d466fda211f87 100644 (file)
@@ -130,7 +130,7 @@ $(U_BOOT_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/.header_modified
                CFLAGS="$(TARGET_CFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
                $(U_BOOT_CONFIGURE_OPTS) \
-               $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \
+               $(MAKE) CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \
                $(U_BOOT_MAKE_OPT) -C $(U_BOOT_DIR)
 
 # Copy the result to the images/ directory