[OE-core] [PATCH] scripts/runqemu: write temp file into correct location

Paul Eggleton paul.eggleton at linux.intel.com
Tue Sep 24 10:52:39 UTC 2013


We want the temporary file to be written in /tmp not the current
directory.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index efab1a2..eb950bc 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -340,7 +340,7 @@ setup_path_vars() {
             exit 1; }
 
         # We have bitbake in PATH, get the variable values from bitbake
-        BITBAKE_ENV_TMPFILE=`mktemp runqemu.XXXXXXXXXX`
+        BITBAKE_ENV_TMPFILE=`mktemp --tmpdir runqemu.XXXXXXXXXX`
         if [ "$?" != "0" ] ; then
             echo "Error: mktemp failed for bitbake environment output"
             exit 1
-- 
1.8.1.2




More information about the Openembedded-core mailing list