aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2010-11-18 15:05:06 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-11-18 15:05:06 +0000
commitc6ef20fb70f7ce834fa44fa63ad46880be9d51ee (patch)
treeb633a360d70d3694789d0b9326c99210cb6dcff7 /Makefile
parent558362fa3491663ea9b8c0aac95965e3afcd44c0 (diff)
downloadcoreboot-c6ef20fb70f7ce834fa44fa63ad46880be9d51ee.tar.gz
coreboot-c6ef20fb70f7ce834fa44fa63ad46880be9d51ee.tar.xz
coreboot-c6ef20fb70f7ce834fa44fa63ad46880be9d51ee.zip
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@georgi-clan.de> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6091 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 397e51d30..50421a65f 100644
--- a/Makefile
+++ b/Makefile
@@ -366,6 +366,24 @@ distclean: clean-cscope
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