devicetree.cb: Only add as many entries as there are DIMM slots.
[coreboot.git] / Makefile
index 397e51d301c67de902cc218cf2aa51a55590ec99..0cfa85f6e8e473de9c7321fef190d6881e84f2df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -366,6 +366,26 @@ distclean: clean-cscope
 update:
        dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
 
+lint:
+       FAILED=0; LINTLOG=`mktemp`; \
+       for script in util/lint/lint-*; do \
+               echo; 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; \
+                       FAILED=$$(( $$FAILED + 1 )); \
+               fi; \
+               echo ========; \
+       done; \
+       test $$FAILED -eq 0 || { echo "ERROR: $$FAILED test(s) failed." &&  exit 1; }; \
+       rm -f $$LINTLOG
+
 # This include must come _before_ the pattern rules below!
 # Order _does_ matter for pattern rules.
 include util/kconfig/Makefile