summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-27 14:24:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-27 14:59:03 +0100
commit02667e048c3e632f857c87177c0022eaf5481802 (patch)
treeef53155bef61a63a67e54d5bda758351657f03d1 /lib/bb/build.py
parent446e490bf485b712e5cee733dab5805254cdcad0 (diff)
downloadbitbake-02667e048c3e632f857c87177c0022eaf5481802.tar.gz
build/data: Write out more complete python run files
Currently the output in the python task/function run files is rather incomplete and effectively useless. This enhances the code to take advantage of the bitbake's dependency tracking and extend the output to include dependencies. This makes the files more usable for debugging purposes. Since this only happens at python function execution time, the overhead is minimal in the grand scheme of things. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index f2922f308..65cc851df 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -227,7 +227,7 @@ def exec_func_python(func, d, runfile, cwd=None):
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)
+ bb.data.emit_func_python(func, script, d)
if cwd:
try: