summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-11-30 11:24:55 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:16:13 +0000
commit23c6b49566cf6589f36b0723ea83d3a7c634473e (patch)
tree30b1f2939c88b5038da599d96afd685682ec4189 /bitbake
parentf204d16012a182e1bf7344894fe202ccaa6b34b7 (diff)
downloadpoky-23c6b49566cf6589f36b0723ea83d3a7c634473e.tar.gz
siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed
Some BB_HASHBASE_WHITELIST variables are in the lists of variable dependencies for signatures. Ignore those differences in lists since this difference does not matter (Bitbake rev: 71b53a3f0766ca464560a1f6a449f9424fbdf7ae) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 91b4160b2d..d4064c386a 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -236,13 +236,13 @@ def compare_sigfiles(a, b):
236 p2 = pickle.Unpickler(file(b, "rb")) 236 p2 = pickle.Unpickler(file(b, "rb"))
237 b_data = p2.load() 237 b_data = p2.load()
238 238
239 def dict_diff(a, b): 239 def dict_diff(a, b, whitelist=set()):
240 sa = set(a.keys()) 240 sa = set(a.keys())
241 sb = set(b.keys()) 241 sb = set(b.keys())
242 common = sa & sb 242 common = sa & sb
243 changed = set() 243 changed = set()
244 for i in common: 244 for i in common:
245 if a[i] != b[i]: 245 if a[i] != b[i] and i not in whitelist:
246 changed.add(i) 246 changed.add(i)
247 added = sa - sb 247 added = sa - sb
248 removed = sb - sa 248 removed = sb - sa
@@ -262,7 +262,7 @@ def compare_sigfiles(a, b):
262 if a_data['basehash'] != b_data['basehash']: 262 if a_data['basehash'] != b_data['basehash']:
263 print "basehash changed from %s to %s" % (a_data['basehash'], b_data['basehash']) 263 print "basehash changed from %s to %s" % (a_data['basehash'], b_data['basehash'])
264 264
265 changed, added, removed = dict_diff(a_data['gendeps'], b_data['gendeps']) 265 changed, added, removed = dict_diff(a_data['gendeps'], b_data['gendeps'], a_data['basewhitelist'] & b_data['basewhitelist'])
266 if changed: 266 if changed:
267 for dep in changed: 267 for dep in changed:
268 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep]) 268 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])