diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-16 07:43:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:11:04 +0100 |
commit | a61519f3fb664c9c0e14babb5e3f97f52ba912cc (patch) | |
tree | 4138c6e085fa9766a60fbb922adfcdb8f1942bfe /bitbake/lib | |
parent | 0902850e979511b27a4c452b39b9557d57cbb039 (diff) | |
download | ast2050-yocto-poky-a61519f3fb664c9c0e14babb5e3f97f52ba912cc.zip ast2050-yocto-poky-a61519f3fb664c9c0e14babb5e3f97f52ba912cc.tar.gz |
bitbake: data_smart: Allow expansion of flags in getVarFlags
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.
(Bitbake rev: a3ae7efdf750fc5bb9ff5a75defbcfdab1912dbe)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 970e404..bc4ad54 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -647,7 +647,7 @@ class DataSmart(MutableMapping): 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 = {} @@ -656,7 +656,8 @@ class DataSmart(MutableMapping): 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 |