From 669c07d6022174d01fe5a95b7b0faa9ef86da1e2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 27 Aug 2014 14:24:52 +0100 Subject: bitbake: 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. (Bitbake rev: 02667e048c3e632f857c87177c0022eaf5481802) Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/build.py') diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index f2922f3087..65cc851df4 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/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: -- cgit v1.2.3-54-g00ecf