From f8185ff9f8ac697733b41f023cb3a4b98b2f823f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 5 Jan 2016 23:01:25 +0000 Subject: [PATCH] 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 --- bitbake/lib/bb/parse/ast.py | 2 ++ 1 file changed, 2 insertions(+) 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): for flag in [ "dirs" ]: if data.getVarFlag(func, flag): data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag)) + data.setVarFlag(func, "filename", "autogenerated") + data.setVarFlag(func, "lineno", 1) if data.getVarFlag(calledfunc, "python"): data.setVar(func, " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True)