summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f16675bded..1cd546a712 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -239,7 +239,7 @@ def exec_func_python(func, d, runfile, cwd=None):
239 """Execute a python BB 'function'""" 239 """Execute a python BB 'function'"""
240 240
241 bbfile = d.getVar('FILE', True) 241 bbfile = d.getVar('FILE', True)
242 code = _functionfmt.format(function=func, body=d.getVar(func, True)) 242 code = _functionfmt.format(function=func, body=d.getVar(func, False))
243 bb.utils.mkdirhier(os.path.dirname(runfile)) 243 bb.utils.mkdirhier(os.path.dirname(runfile))
244 with open(runfile, 'w') as script: 244 with open(runfile, 'w') as script:
245 bb.data.emit_func_python(func, script, d) 245 bb.data.emit_func_python(func, script, d)