summaryrefslogtreecommitdiffstats
path: root/lib/bb/siggen.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-24 17:41:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-24 22:02:17 +0000
commit6c879b44ccf42dc73fe4467076e114700d7ba81b (patch)
treefe1b46a47b708422e37df44715b85ceb0ff87e43 /lib/bb/siggen.py
parenta0246bf09c93bb657eaf6ba61d090b247ed33640 (diff)
downloadbitbake-contrib-6c879b44ccf42dc73fe4467076e114700d7ba81b.tar.gz
data/siggen: Add vardepvalue mechanism to allow the variable dependency code to be forced to specific values
We have a problem if we want to inject specific information into the variable dependency code. There are cases for example where we want a dependency on the value of X but it doesn't matter how X was constructed or what dependencies it might have had, we only care about the absolute value. With the current code, its near enough impossible to do this. This patch adds such a mechanism so the user can trigger this with code like: baselib[vardepvalue] = "${baselib}" It also refactors some of the code so we do variable lookups once instead of doing this in two different functions. [YOCTO #1583] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/siggen.py')
-rw-r--r--lib/bb/siggen.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 9231291b4..758074287 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -72,11 +72,10 @@ class SignatureGeneratorBasic(SignatureGenerator):
def _build_data(self, fn, d):
- tasklist, gendeps = bb.data.generate_dependencies(d)
+ tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d)
taskdeps = {}
basehash = {}
- lookupcache = {}
for task in tasklist:
data = d.getVar(task, False)