[Buildroot] [git commit master 1/1] Enable ccache for u-boot compile

Martin Hicks mort at bork.org
Tue Feb 1 19:53:05 UTC 2011


commit: http://git.buildroot.net/buildroot/commit/?id=e3fb2ce122055fd34df7e1712700e5d72bdb40e4
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.

Signed-off-by: Martin Hicks <mort at bork.org>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 boot/u-boot/u-boot.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/boot/u-boot/u-boot.mk b/boot/u-boot/u-boot.mk
index d520bb8..2f890fa 100644
--- a/boot/u-boot/u-boot.mk
+++ b/boot/u-boot/u-boot.mk
@@ -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
-- 
1.7.3.4




More information about the buildroot mailing list