diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-03-25 07:55:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-06 15:42:54 +0100 |
commit | 8b938dc82cf196090c631eef63bf14d32eef9852 (patch) | |
tree | 36f8b32b7a8fce5389299e47838467154864290f /bitbake/lib/bb/build.py | |
parent | 88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 (diff) | |
download | poky-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.py | 3 |
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 | |||
32 | import bb.msg | 32 | import bb.msg |
33 | import bb.process | 33 | import bb.process |
34 | from contextlib import nested | 34 | from contextlib import nested |
35 | from bb import data, event, mkdirhier, utils | 35 | from bb import data, event, utils |
36 | 36 | ||
37 | bblogger = logging.getLogger('BitBake') | 37 | bblogger = logging.getLogger('BitBake') |
38 | logger = logging.getLogger('BitBake.Build') | 38 | logger = 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): |