diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-21 22:49:08 +0000 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2013-05-07 11:54:25 +0100 |
commit | 2d0f0d39dacc57c2c6eefade0b06aed4dc9814d5 (patch) | |
tree | a17dc953c8e6a0200a1f4c5174958f5bd59dddf7 | |
parent | 796e1390487d602c55467d7654f52e43a4617548 (diff) | |
download | openembedded-core-2d0f0d39dacc57c2c6eefade0b06aed4dc9814d5.tar.gz openembedded-core-2d0f0d39dacc57c2c6eefade0b06aed4dc9814d5.tar.bz2 openembedded-core-2d0f0d39dacc57c2c6eefade0b06aed4dc9814d5.zip |
sanity.bbclass: Ensure tmpdir exists when running the check
This avoids tracebacks from bitbake if the directory doesn't already
exist.
[YOCTO #3640]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/sanity.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index f2e9a74441..bfba2f8d6b 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -566,6 +566,7 @@ def check_sanity(sanity_data): if (saved_tmpdir != tmpdir): messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir else: + bb.utils.mkdirhier(tmpdir) f = file(checkfile, "w") f.write(tmpdir) f.close() |