Enable ccache for kernel compile
PATCH 1/1 Enable ccache for kernel compile
Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.
Signed-off-by Martin Hicks <[email protected]>
--- linux/linux.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
linux/linux.mk +1 -1
@@ -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
PATCH 1/1 Enable ccache for u-boot compile
Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.
Signed-off-by Martin Hicks <[email protected]>
--- boot/u-boot/u-boot.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
boot/u-boot/u-boot.mk +1 -1
@@ -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
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
PATCH 1/1 Enable ccache for kernel compile
In reply to Martin HicksQuoted 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