[coreboot-gerrit] New patch to review for coreboot: 37c709c build: allow romcc to be wrapped

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sat May 17 19:25:35 CEST 2014


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5773

-gerrit

commit 37c709c7a380ffeade52790e6e51d7e1cf317a52
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sat May 17 19:05:56 2014 +0200

    build: allow romcc to be wrapped
    
    Allow ccache and scan-build to wrap romcc.
    This works a bit different from the other compilers
    because we only define it later.
    
    Change-Id: I3adce91d3dde9dd50aa6a2baad5b457744f35575
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 Makefile.inc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index d098cff..529250d 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



More information about the coreboot-gerrit mailing list