summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-25 07:55:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-06 15:42:54 +0100
commit8b938dc82cf196090c631eef63bf14d32eef9852 (patch)
tree36f8b32b7a8fce5389299e47838467154864290f /bitbake/lib/bb/build.py
parent88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 (diff)
downloadpoky-8b938dc82cf196090c631eef63bf14d32eef9852.tar.gz
build: in exec_func, mkdirhier ${T}
This should fix the -c clean traceback people are seeing. (Bitbake rev: 416d24912fcef1d82ce2c02855accd86a29e76b2) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 194a28b38c..bbf3ae1729 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -32,7 +32,7 @@ import bb
32import bb.msg 32import bb.msg
33import bb.process 33import bb.process
34from contextlib import nested 34from contextlib import nested
35from bb import data, event, mkdirhier, utils 35from bb import data, event, utils
36 36
37bblogger = logging.getLogger('BitBake') 37bblogger = logging.getLogger('BitBake')
38logger = logging.getLogger('BitBake.Build') 38logger = logging.getLogger('BitBake.Build')
@@ -162,6 +162,7 @@ def exec_func(func, d, dirs = None):
162 lockfiles = None 162 lockfiles = None
163 163
164 tempdir = data.getVar('T', d, 1) 164 tempdir = data.getVar('T', d, 1)
165 bb.utils.mkdirhier(tempdir)
165 runfile = os.path.join(tempdir, 'run.{0}.{1}'.format(func, os.getpid())) 166 runfile = os.path.join(tempdir, 'run.{0}.{1}'.format(func, os.getpid()))
166 167
167 with bb.utils.fileslocked(lockfiles): 168 with bb.utils.fileslocked(lockfiles):