summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-28 10:29:04 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-28 16:41:53 -0700
commite9b07b8e84f117c942dd37478001f4b1b5b3b6a3 (patch)
tree1f5fc4ad325a70a31ed582b815c37e279645ee78 /lib/bb/build.py
parenta69398a2f288fe307c70e1506562ea19eeeef34e (diff)
downloadbitbake-e9b07b8e84f117c942dd37478001f4b1b5b3b6a3.tar.gz
build: work around do_clean issue by creating T in exec_func
In some repositories (e.g. poky), do_clean removes WORKDIR, then uses exec_func, which expects T to exist, so let's make sure it does. I think its fair to assume that the runfile dir exists in exec_func, so this is a temporary measure. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index ebf9fa387..03b0b1713 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -184,6 +184,7 @@ def exec_func_python(func, d, runfile, logfile, cwd=None):
bbfile = d.getVar('FILE', True)
olddir = os.getcwd()
code = _functionfmt.format(function=func, body=d.getVar(func, True))
+ bb.utils.mkdirhier(os.path.dirname(runfile))
with open(runfile, 'w') as script:
script.write(code)