summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/data.py2
-rw-r--r--bitbake/lib/bb/parse/ast.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index e3ffefeb36..5b7a092a21 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -291,6 +291,8 @@ def build_dependencies(key, keys, shelldeps, vardepvals, d):
291 if d.getVarFlag(key, "python"): 291 if d.getVarFlag(key, "python"):
292 parsedvar = d.expandWithRefs(value, key) 292 parsedvar = d.expandWithRefs(value, key)
293 parser = bb.codeparser.PythonParser(key, logger) 293 parser = bb.codeparser.PythonParser(key, logger)
294 if parsedvar.value and "\t" in parsedvar.value:
295 logger.warn("Variable %s contains tabs, please remove these (%s)" % (key, d.getVar("FILE", True)))
294 parser.parse_python(parsedvar.value) 296 parser.parse_python(parsedvar.value)
295 deps = deps | parser.references 297 deps = deps | parser.references
296 else: 298 else:
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index eae840fa8d..86f94636b9 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -212,9 +212,9 @@ class ExportFuncsNode(AstNode):
212 data.setVarFlag(calledvar, flag, data.getVarFlag(var, flag)) 212 data.setVarFlag(calledvar, flag, data.getVarFlag(var, flag))
213 213
214 if data.getVarFlag(calledvar, "python"): 214 if data.getVarFlag(calledvar, "python"):
215 data.setVar(var, "\tbb.build.exec_func('" + calledvar + "', d)\n") 215 data.setVar(var, " bb.build.exec_func('" + calledvar + "', d)\n")
216 else: 216 else:
217 data.setVar(var, "\t" + calledvar + "\n") 217 data.setVar(var, " " + calledvar + "\n")
218 data.setVarFlag(var, 'export_func', '1') 218 data.setVarFlag(var, 'export_func', '1')
219 219
220class AddTaskNode(AstNode): 220class AddTaskNode(AstNode):