lint: Add template for mktemp to meet BSD requirements
Change-Id: I86cecf6aee1fcb682cb32bd0f03e014fd1afe594 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1549 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
82867d3ed0
commit
533bca80ed
|
@ -272,7 +272,7 @@ update:
|
||||||
dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
|
dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
|
||||||
|
|
||||||
lint lint-stable:
|
lint lint-stable:
|
||||||
FAILED=0; LINTLOG=`mktemp`; \
|
FAILED=0; LINTLOG=`mktemp .tmpconfig.lintXXXXX`; \
|
||||||
for script in util/lint/$@-*; do \
|
for script in util/lint/$@-*; do \
|
||||||
echo; echo `basename $$script`; \
|
echo; echo `basename $$script`; \
|
||||||
grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
|
grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# DESCR: Check that no symbol #defined in any romstage.c is used elsewhere
|
# DESCR: Check that no symbol #defined in any romstage.c is used elsewhere
|
||||||
|
|
||||||
DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\t ]*\)[\t ].*,\1,' | grep -v "(" | sort -u`
|
DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\t ]*\)[\t ].*,\1,' | grep -v "(" | sort -u`
|
||||||
SCANBUCKET=`mktemp`
|
SCANBUCKET=`mktemp .tmpconfig.lint001XXXXX`
|
||||||
LC_ALL=C export LC_ALL
|
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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue