]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
data: Ensure dependencies of subfunctions are accounted for
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 May 2013 10:16:54 +0000 (13:16 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 May 2013 22:54:42 +0000 (23:54 +0100)
Currently we account of the top level function's vardeps but not
those of any subfunction. This would imply we'd have to manually
write the dependencies of all parent functions which would be crazy.

This patch adds the dependencies to fix the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/data.py

index abf210aa6bf583af3cf62977da2bc4f2d245c59a..87c4808b5eeeb14610b03001ad0dc0de1cc12fc8 100644 (file)
@@ -274,6 +274,7 @@ def emit_func(func, o=sys.__stdout__, d = init()):
             if d.getVarFlag(dep, "func"):
                emit_var(dep, o, d, False) and o.write('\n')
                newdeps |=  bb.codeparser.ShellParser(dep, logger).parse_shell(d.getVar(dep, True))
+               newdeps |= set((d.getVarFlag(dep, "vardeps", True) or "").split())
         newdeps -= seen
 
 def update_data(d):