Fix lint test for build directories
authorPatrick Georgi <patrick@georgi-clan.de>
Sat, 25 Feb 2012 14:33:43 +0000 (15:33 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Wed, 29 Feb 2012 23:04:06 +0000 (00:04 +0100)
config files are rename()d, which fails across filesystem borders.
So force temporary config files in current directory.

Change-Id: I583c2ab9a822a6f99f838778aa17ffd2d47eaed1
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/680
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
util/lint/lint-002-build-dir-handling

index f10db175338f4df9f0add13e4500828cd139b8c6..c4f57d683a303b6ebba3ac6fe79fe94f6a43ce58 100755 (executable)
@@ -47,7 +47,7 @@ if [ "$MAKE" = "" ]; then
 fi
 
 # prepare a config to use
-TMPCONFIG=`mktemp`
+TMPCONFIG=`mktemp .tmpconfig.XXXXXX`
 rm -f $TMPCONFIG
 $MAKE NOMKDIR=1 DOTCONFIG=$TMPCONFIG allyesconfig >/dev/null