[coreboot-gerrit] Patch set updated for coreboot: intelvbttool: Add Makefile

Paul Menzel (paulepanter@users.sourceforge.net) gerrit at coreboot.org
Thu Oct 15 23:07:04 CEST 2015


Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11876

-gerrit

commit 983b7dd172cd7cd5d981678f0b0357f4ce2d910d
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Mon Oct 12 17:46:16 2015 +0200

    intelvbttool: Add Makefile
    
    Add minimal Makefile based on cbmem’s Makefile.
    
    It includes the target junit.xml so the tool is build tested.
    
    Change-Id: I164b1f7733505bca6248d0711d7ad71d635fa926
    Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 util/intelvbttool/Makefile | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile
new file mode 100644
index 0000000..7ba97b7
--- /dev/null
+++ b/util/intelvbttool/Makefile
@@ -0,0 +1,51 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2012 The ChromiumOS Authors.  All rights reserved.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc.
+##
+
+PROGRAM = intelvbttool
+CC ?= gcc
+CFLAGS ?= -O2
+CFLAGS += -Wall -Werror
+
+all: $(PROGRAM)
+
+$(PROGRAM):
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(PROGRAM).c -o $(PROGRAM)
+
+clean:
+	rm -f $(PROGRAM)
+
+.PHONY: all clean
+
+junit.xml:
+	echo '<?xml version="1.0" encoding="utf-8"?><testsuite>' > $@.tmp
+	$(MAKE) clean; \
+	echo "<testcase classname='$(PROGRAM)' name='$(PROGRAM)'>" >> $@.tmp; \
+	$(MAKE) >> $@.tmp.2 2>&1 && type="system-out" || type="failure"; \
+	if [ $$type = "failure" ]; then \
+		echo "<failure type='buildFailed'>" >> $@.tmp; \
+	else \
+		echo "<$$type>" >> $@.tmp; \
+	fi; \
+	echo '<![CDATA[' >> $@.tmp; \
+	cat $@.tmp.2 >> $@.tmp; \
+	echo "]]></$$type>" >>$@.tmp; \
+	rm -f $@.tmp.2; \
+	echo "</testcase>" >> $@.tmp; \
+	echo "</testsuite>" >> $@.tmp
+	mv $@.tmp $@



More information about the coreboot-gerrit mailing list