[coreboot-gerrit] Patch set updated for coreboot: seabios integration: deal with ccache woes some more

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Fri Aug 14 11:57:51 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11227

-gerrit

commit b410af0c68613507637ba97787000baf4230c271
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Thu Aug 13 21:55:30 2015 +0200

    seabios integration: deal with ccache woes some more
    
    seabios integration interprets the CC variable with a special case when
    ccache is prepended to the compiler.
    Since the integration also tries to extract compiler flags (which I'm
    not sure we still add to CC _ever_), that also needs to look at only
    the part of the string that contains compiler and (maybe) flags, so
    skip the first word if it was determined to be the path to the ccache
    binary.
    
    Change-Id: I717863f456bf4fd6f08427d86633079ecda039df
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 payloads/external/Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index ad1a3ef..6cdb412 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -36,7 +36,7 @@ SEABIOS_CC_OFFSET=$(if $(filter %ccache,$(HOSTCC)),2,1)
 seabios:
 	$(MAKE) -C payloads/external/SeaBIOS -f Makefile.inc \
 			HOSTCC="$(HOSTCC)" \
-			CC=$(word $(SEABIOS_CC_OFFSET),$(CC_x86_32)) CFLAGS="$(patsubst $(word $(SEABIOS_CC_OFFSET),$(CC_x86_32))%,,$(CC_x86_32))" \
+			CC=$(word $(SEABIOS_CC_OFFSET),$(CC_x86_32)) CFLAGS="$(patsubst $(word $(SEABIOS_CC_OFFSET),$(CC_x86_32))%,,$(wordlist $(SEABIOS_CC_OFFSET),9999,$(CC_x86_32)))" \
 			LD=$(word 1,$(LD_x86_32)) LDFLAGS="$(patsubst $(word 1,$(LD_x86_32))%,,$(LD_x86_32))" \
 			OBJDUMP="$(OBJDUMP_x86_32)" \
 			OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \



More information about the coreboot-gerrit mailing list