[coreboot-gerrit] Patch set updated for coreboot: crossgcc/Makefile.inc: Update jenkins-build-toolchain

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Mon Apr 4 16:24:39 CEST 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14231

-gerrit

commit 5fc6faabcb21b987a1a1674bfde5db60ea36294c
Author: Martin Roth <martinroth at google.com>
Date:   Sat Apr 2 11:10:08 2016 -0600

    crossgcc/Makefile.inc: Update jenkins-build-toolchain
    
    Because the builders have the coreboot cross-compilers in their path,
    the XGCCPATH variable needs to be set after building the new toolchain
    before it will be used.
    
    - Add $DEST/bin to $PATH if $DEST is set, add the default location
    for toolchain builds otherwise.  Because the jenkins build image puts
    the tools in the path, we ca
    - Add KEEP_SOURCES option to help speed up compilation (Slightly).
    - Log .xcompile for verification that the right toolchain was used.
    - Verify that test-toolchain passes.
    
    Change-Id: I7c270dab94be7e8f801d527169767018a24986e4
    Signed-off-by: Martin Roth <martinroth at google.com>
---
 util/crossgcc/Makefile.inc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/util/crossgcc/Makefile.inc b/util/crossgcc/Makefile.inc
index 5be4c10..0bd91a5 100644
--- a/util/crossgcc/Makefile.inc
+++ b/util/crossgcc/Makefile.inc
@@ -69,7 +69,8 @@ endif # ifeq ($(COMPILER_OUT_OF_DATE),1)
 
 # This target controls what the jenkins builder tests
 jenkins-build-toolchain:
-	$(MAKE) crosstools clang \
-		BUILDGCC_OPTIONS='-y --nocolor'
+	$(MAKE) crosstools clang KEEP_SOURCES=1 BUILDGCC_OPTIONS='-y --nocolor'
 	rm -f .xcompile
-	$(MAKE) what-jenkins-does
+	PATH=$(if $(DEST),$(DEST)/bin,$(top)/util/crossgcc/xgcc/bin):$PATH; $(MAKE) what-jenkins-does
+	cat .xcompile
+	PATH=$(if $(DEST),$(DEST)/bin,$(top)/util/crossgcc/xgcc/bin):$PATH; $(MAKE) test-toolchain



More information about the coreboot-gerrit mailing list