Skip to contentSkip to conversation

Enable ccache for kernel compile

PATCH New Martin Hicks 2 participants 4 messages Feb 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable ccache for kernel compile

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

---
 linux/linux.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux/linux.mk +1 -1
index d3c06db..2bc2efe 100644
@@ -23,7 +23,7 @@ LINUX26_MAKE_FLAGS = \
 	HOSTCFLAGS="$(HOSTCFLAGS)" \
 	ARCH=$(KERNEL_ARCH) \
 	INSTALL_MOD_PATH=$(TARGET_DIR) \
-	CROSS_COMPILE=$(TARGET_CROSS) \
+	CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
 	LZMA="$(LZMA)"
 
 # Get the real Linux version, which tells us where kernel modules are
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 Enable ccache for u-boot compile

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

---
 boot/u-boot/u-boot.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
boot/u-boot/u-boot.mk +1 -1
index d520bb8..2f890fa 100644
@@ -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
Signature · 1 line
1.5.6.5
#2 lore raw

PATCH 1/1 Enable ccache for u-boot compile

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Hicks <[email protected]> writes:

Martin> Just needed to pass in ccache as a prefix to the CROSS_TARGET variable. Martin> Signed-off-by: Martin Hicks <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 Enable ccache for kernel compile

In reply to Martin Hicks
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Hicks <[email protected]> writes:

Martin> Just needed to pass in ccache as a prefix to the CROSS_TARGET variable. Martin> Signed-off-by: Martin Hicks <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard