summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-05-16 13:20:54 +0200
committerNélio Laranjeiro2012-05-29 14:42:16 +0200
commit374a44d585a3c4f192a79fc8d0015facfc690ec0 (patch)
treeb63738705f15287c454550e20796e6dc1b1ffd8d /cleopatre
parent803e818722d08d20a9cf4292208e49b2269b2fdb (diff)
cleopatre/buildroot: support ccache to compile a linux image, closes #3117
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/buildroot/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/cleopatre/buildroot/Makefile b/cleopatre/buildroot/Makefile
index 6cc2785b13..ada4911511 100644
--- a/cleopatre/buildroot/Makefile
+++ b/cleopatre/buildroot/Makefile
@@ -471,10 +471,13 @@ endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
%_defconfig: $(CONFIG)/conf
cp $(shell find ./target/ -name $@) .config
+ # If CCache tool exists, replace the BR2_TOOLCHAIN_EXTERNAL_PATH to use it.
+ if [ -e /opt/spidcom/spc300/ccache ]; then sed -i '/BR2_TOOLCHAIN_EXTERNAL_PATH=/s:spc300/usr:spc300/ccache:' .config; fi;
-@$(MAKE) oldconfig
update:
cp .config $(BOARD_PATH)/../$(BOARD_NAME)_defconfig
+ sed -i '/BR2_TOOLCHAIN_EXTERNAL_PATH=/s:spc300/ccache:spc300/usr:' .config;
configured: dirs host-sed kernel-headers uclibc-config busybox-config linux26-config