[coreboot] [commit] r6091 - trunk

repository service svn at coreboot.org
Thu Nov 18 16:05:07 CET 2010


Author: oxygene
Date: Thu Nov 18 16:05:06 2010
New Revision: 6091
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6091

Log:
Add "make lint" target that calls all util/lint/lint-* scripts
and fails if any of these output text to stdout.

Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
Acked-by: Patrick Georgi <patrick at georgi-clan.de>

Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Thu Nov 18 15:33:02 2010	(r6090)
+++ trunk/Makefile	Thu Nov 18 16:05:06 2010	(r6091)
@@ -366,6 +366,24 @@
 update:
 	dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
 
+lint:
+	LINTLOG=`mktemp`; \
+	for script in util/lint/lint-*; do \
+		echo `basename $$script`; \
+		grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
+		echo ========; \
+		$$script > $$LINTLOG; \
+		if [ `wc -l $$LINTLOG | cut -d' ' -f1` -eq 0 ]; then \
+			printf "success\n\n"; \
+		else \
+			echo test failed: ; \
+			cat $$LINTLOG; \
+			rm -f $$LINTLOG; \
+			exit 1; \
+		fi \
+	done; \
+	rm -f $$LINTLOG
+
 # This include must come _before_ the pattern rules below!
 # Order _does_ matter for pattern rules.
 include util/kconfig/Makefile




More information about the coreboot mailing list