[coreboot-gerrit] New patch to review for coreboot: Makefile.inc: Update what-jenkins-does target
Martin Roth (martinroth@google.com)
gerrit at coreboot.org
Wed Oct 12 22:41:06 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/17014
-gerrit
commit c46c3d2a91265ab88a92bb9dd8aeef92fa20176b
Author: Martin Roth <martinroth at google.com>
Date: Wed Oct 12 14:40:26 2016 -0600
Makefile.inc: Update what-jenkins-does target
- Add iotools to list of utilities to build
- Update the junit.xml target to make it less util specific
- Add builds of coreboot internal payloads: nvramcui and coreinfo
Change-Id: I97fda909065659ab7fa4c8ee00d936d97b255bf7
Signed-off-by: Martin Roth <martinroth at google.com>
---
Makefile.inc | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index c7f1d04..75550be 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1006,18 +1006,18 @@ PHONY+=check-ramstage-overlaps
endif
junit.xml:
- echo "Building $(UTIL)"
+ echo "Building $(BLD)"
echo '<?xml version="1.0" encoding="utf-8"?><testsuite>' > $@.tmp
- echo "<testcase classname='$(UTIL)' name='$(UTIL)'>" >> $@.tmp
- -$(MAKE) -j $(CPUS) -C "util/$(UTIL)" clean distclean > $@.tmp.2 2>&1
- $(MAKE) -j $(CPUS) -C "util/$(UTIL)" $(MAKETARGET) >> $@.tmp.2 2>&1 && type="system-out" || type="failure"; \
+ echo "<testcase classname='$(BLD)' name='$(BLD)'>" >> $@.tmp
+ -$(MAKE) -j $(CPUS) -C "$(BLD_DIR)$(BLD)" clean distclean > $@.tmp.2 2>&1
+ $(MAKE) -j $(CPUS) -C "$(BLD_DIR)$(BLD)" $(MAKETARGET) >> $@.tmp.2 2>&1 && type="system-out" || type="failure"; \
cat $@.tmp.2; \
if [ "$$type" = "failure" ]; then \
echo "<failure type='buildFailed'>" >> $@.tmp; \
- echo "Building $(UTIL) Failed"; \
+ echo "Building $(BLD) Failed"; \
else \
echo "<$$type>" >> $@.tmp; \
- echo "Building $(UTIL) Succeeded"; \
+ echo "Building $(BLD) Succeeded"; \
fi; \
echo '<![CDATA[' >> $@.tmp; \
cat $@.tmp.2 >> $@.tmp; \
@@ -1025,7 +1025,7 @@ junit.xml:
rm -f $@.tmp.2
echo "</testcase>" >> $@.tmp
echo "</testsuite>" >> $@.tmp
- mv $@.tmp "util/$(UTIL)/$@"
+ mv $@.tmp "$(BLD_DIR)$(BLD)/$@"
echo
TOOLLIST= \
@@ -1034,6 +1034,7 @@ TOOLLIST= \
futility \
inteltool \
intelvbttool \
+ iotools \
nvramtool \
superiotool \
viatool
@@ -1044,5 +1045,7 @@ what-jenkins-does:
util/abuild/abuild -B -J $(if $(JENKINS_NOCCACHE),,-y) -c $(CPUS) -z -p $(JENKINS_PAYLOAD) -x -X $(top)/abuild-chromeos.xml
util/abuild/abuild -B -J $(if $(JENKINS_NOCCACHE),,-y) -c $(CPUS) -z -p $(JENKINS_PAYLOAD)
(cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) $(if $(JENKINS_NOCCACHE),,CONFIG_LP_CCACHE=y) V=$(V) Q=$(Q) junit.xml)
- $(foreach tool, $(TOOLLIST), $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) UTIL="$(tool)" MFLAGS= MAKEFLAGS= MAKETARGET= junit.xml; )
- $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) UTIL="romcc" MFLAGS= MAKEFLAGS= MAKETARGET=test junit.xml
+ $(foreach tool, $(TOOLLIST), $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=util/ BLD="$(tool)" MFLAGS= MAKEFLAGS= MAKETARGET= junit.xml; )
+ $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=payloads/ BLD=nvramcui MFLAGS= MAKEFLAGS= MAKETARGET=all junit.xml
+ $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=payloads/ BLD=coreinfo MFLAGS= MAKEFLAGS= MAKETARGET=defaultbuild junit.xml
+ $(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=util/ BLD=romcc MFLAGS= MAKEFLAGS= MAKETARGET=test junit.xml
More information about the coreboot-gerrit
mailing list