aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 09:52:13 +0100
committerSteve Sakoman <steve@sakoman.com>2021-09-24 12:38:18 -1000
commit7919f1f94e15bb5d3d124062bdcfdbe44aceb81a (patch)
tree7e3373419dae8137e56ce498595db479ab1fe809
parent253aa584b04f4e5c6e7b16904a9e242a4f5cbd35 (diff)
downloadbitbake-contrib-7919f1f94e15bb5d3d124062bdcfdbe44aceb81a.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 30c6ff8551c235254ab90663ab88f66bb0c71edb) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--lib/bb/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 23b6ee455..fa22a1b47 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -290,8 +290,8 @@ def exec_func_python(func, d, runfile, cwd=None):
lineno = int(d.getVarFlag(func, "lineno", False))
bb.methodpool.insert_method(func, text, fn, lineno - 1)
- comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
- utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated")
+ comp = utils.better_compile(code, func, "exec_func_python() autogenerated")
+ utils.better_exec(comp, {"d": d}, code, "exec_func_python() autogenerated")
finally:
bb.debug(2, "Python function %s finished" % func)