build: add what-jenkins-does target

This target does (pretty much) exactly the same what jenkins
is doing on our build nodes:
 - complete abuild run of our tree with a given payload
 - building all libpayload configs we ship
 - building the cbmem utility

In fact at some point we could tell jenkins to just run this command.

For debugging, pass along V and Q variables so inner make processes
are slightly more noisy on demand.

Change-Id: Ib515170603a151cc3c3b10c743f1468a9875dbdc
Signed-off-by: Patrick Georgi <>
Reviewed-by: Paul Menzel <>
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <>
diff --git a/ b/
index 8b11cf6..d72e6f9 100644
--- a/
+++ b/
@@ -565,3 +565,9 @@
 		-n $(CONFIG_CBFS_PREFIX)/romstage -c none \
 	mv $@.tmp $@
+	util/abuild/abuild -B -J -y -c 4 -p $(JENKINS_PAYLOAD)
+	(cd payloads/libpayload; $(MAKE) CONFIG_CCACHE=y V=$(V) Q=$(Q) junit.xml)
+	$(MAKE) V=$(V) Q=$(Q) -C util/cbmem junit.xml