[coreboot] New patch to review for coreboot: 75d10ab lint: Add template for mktemp to meet BSD requirements

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Fri Sep 28 12:28:48 CEST 2012


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1549

-gerrit

commit 75d10ab599bd8e01932b6a40bf11b9e7dfbf469d
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Fri Sep 28 19:38:37 2012 +0800

    lint: Add template for mktemp to meet BSD requirements
    
    Change-Id: I86cecf6aee1fcb682cb32bd0f03e014fd1afe594
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 Makefile.inc                                    | 2 +-
 util/lint/lint-001-no-global-config-in-romstage | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 24b3c34..63c0403 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -272,7 +272,7 @@ update:
 	dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
 
 lint lint-stable:
-	FAILED=0; LINTLOG=`mktemp`; \
+	FAILED=0; LINTLOG=`mktemp .tmpconfig.lintXXXXX`; \
 	for script in util/lint/$@-*; do \
 		echo; echo `basename $$script`; \
 		grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage
index 0c6f403..4b1d317 100755
--- a/util/lint/lint-001-no-global-config-in-romstage
+++ b/util/lint/lint-001-no-global-config-in-romstage
@@ -19,7 +19,7 @@
 # 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`
-SCANBUCKET=`mktemp`
+SCANBUCKET=`mktemp .tmpconfig.lint001XXXXX`
 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
 




More information about the coreboot mailing list