diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 09:52:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-11 22:39:19 +0100 |
commit | 444592b763eccb336f5634432fc6bcf355d90f18 (patch) | |
tree | 656f335f2fc243ded0a4b819802556937c8ea8bf | |
parent | ad0ffb6f9f85bd0068b7807658a3a13243ee39d7 (diff) | |
download | poky-444592b763eccb336f5634432fc6bcf355d90f18.tar.gz |
bitbake: build: Match markup to real function name
The point of the injected text is to identify where the function comes from. Using
the correct function name would therefore be better.
(Bitbake rev: 30c6ff8551c235254ab90663ab88f66bb0c71edb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 6ce8f1e6d3..ab3344c460 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -295,8 +295,8 @@ def exec_func_python(func, d, runfile, cwd=None): | |||
295 | lineno = int(d.getVarFlag(func, "lineno", False)) | 295 | lineno = int(d.getVarFlag(func, "lineno", False)) |
296 | bb.methodpool.insert_method(func, text, fn, lineno - 1) | 296 | bb.methodpool.insert_method(func, text, fn, lineno - 1) |
297 | 297 | ||
298 | comp = utils.better_compile(code, func, "exec_python_func() autogenerated") | 298 | comp = utils.better_compile(code, func, "exec_func_python() autogenerated") |
299 | utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated") | 299 | utils.better_exec(comp, {"d": d}, code, "exec_func_python() autogenerated") |
300 | finally: | 300 | finally: |
301 | bb.debug(2, "Python function %s finished" % func) | 301 | bb.debug(2, "Python function %s finished" % func) |
302 | 302 | ||