Allow a list of flags to expand to be passed into getVarFlags. This
is useful within bitbake itself to optimise performance of the
dependency generation code.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
self.varhistory.record(**loginfo)
self.dict[var][i] = flags[i]
- def getVarFlags(self, var, internalflags=False):
+ def getVarFlags(self, var, expand = False, internalflags=False):
local_var = self._findVar(var)
flags = {}
if i.startswith("_") and not internalflags:
continue
flags[i] = local_var[i]
-
+ if expand and i in expand:
+ flags[i] = self.expand(flags[i], None)
if len(flags) == 0:
return None
return flags