diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-05 23:01:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-06 15:27:35 +0000 |
commit | f8185ff9f8ac697733b41f023cb3a4b98b2f823f (patch) | |
tree | 19dd06aea199fb6f9980e7a4da98ce91a24ac017 /bitbake | |
parent | a178c5a16371d92b56da3968c2e4830188341fcf (diff) | |
download | poky-f8185ff9f8ac697733b41f023cb3a4b98b2f823f.tar.gz |
bitbake: ast: Add filename/lineno to mapped functions
Where we add in mappings for EXPORT_FUNCTIONS, add dummy filename
and lineno data so ensure the assumption that all python functions
have this is correct.
(Bitbake rev: 547128731e62b36d2271c4390b3fee2b16c535dc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/parse/ast.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index e1bf82fe90..cff0d2b453 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
@@ -226,6 +226,8 @@ class ExportFuncsNode(AstNode): | |||
226 | for flag in [ "dirs" ]: | 226 | for flag in [ "dirs" ]: |
227 | if data.getVarFlag(func, flag): | 227 | if data.getVarFlag(func, flag): |
228 | data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag)) | 228 | data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag)) |
229 | data.setVarFlag(func, "filename", "autogenerated") | ||
230 | data.setVarFlag(func, "lineno", 1) | ||
229 | 231 | ||
230 | if data.getVarFlag(calledfunc, "python"): | 232 | if data.getVarFlag(calledfunc, "python"): |
231 | data.setVar(func, " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True) | 233 | data.setVar(func, " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True) |