summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index d098cff291..529250d9b9 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -280,8 +280,11 @@ ifeq ($(_WINCHECK),Cygwin)
STACK=-Wl,--stack,16384000
endif
-ROMCC:= $(objutil)/romcc/romcc
-$(ROMCC): $(top)/util/romcc/romcc.c
+# this allows ccache to prepend itself
+# (ccache handling happens first)
+ROMCC_BIN= $(objutil)/romcc/romcc
+ROMCC?=$(ROMCC_BIN)
+$(ROMCC_BIN): $(top)/util/romcc/romcc.c
@printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n"
@# Note: Adding -O2 here might cause problems. For details see:
@# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html