diff options
Diffstat (limited to 'util/lint')
-rwxr-xr-x | util/lint/lint-001-no-global-config-in-romstage | 2 | ||||
-rw-r--r-- | util/lint/remccoms3.sed | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage index ae4d6a41c4..0c6f403194 100755 --- a/util/lint/lint-001-no-global-config-in-romstage +++ b/util/lint/lint-001-no-global-config-in-romstage @@ -22,7 +22,7 @@ DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\ SCANBUCKET=`mktemp` LC_ALL=C export LC_ALL find src -name .svn -type d -prune -o -name mainboard -type d -prune -o -name examples -type d -prune -o -type f -exec sed -nf `dirname $0`/remccoms3.sed {} + > $SCANBUCKET - + for define in $DEFINES; do if [ `egrep -c "([^_A-Za-z0-9]$define[^_A-Za-z0-9]|^$define[^_A-Za-z0-9]|[^_A-Za-z0-9]$define\$)" $SCANBUCKET` -gt 0 ]; then echo "$define is defined in mainboard(s) and used elsewhere" diff --git a/util/lint/remccoms3.sed b/util/lint/remccoms3.sed index 477a5eacb1..429d3bd422 100644 --- a/util/lint/remccoms3.sed +++ b/util/lint/remccoms3.sed @@ -43,7 +43,7 @@ s,"[^"]*",,g s,\n\(.[^\"]*\).*,\1, x s,.[^\"]*,, - + /^"/b break /^\\/{ H @@ -69,7 +69,7 @@ s,"[^"]*",,g s,\n\(.[^\']*\).*,\1, x s,.[^\']*,, - + /^'/b break /^\\/{ H |