summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-05-20 16:20:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-20 23:56:05 +0100
commit0c744479c2657e433280d9f1884483fa76796b69 (patch)
treee15f3d1b1dea354037f579fbf0ad81be5c925d90
parentc21c3fd3adc7bbbd7018a03e99f058b05bec10b2 (diff)
downloadbitbake-0c744479c2657e433280d9f1884483fa76796b69.tar.gz
data_smart.py: add some internal bitbake variables to configuration hash
Take __BBTASKS, __BBHANDLERS and __BBANONFUNCS into account when computing the configuration hash. [YOCTO #4447] (Bitbake master rev: 260ced7452405fc43ce3d9dd6798236aa07cc716) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/data_smart.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 5bf11e5e0..2fd8ccdeb 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -738,5 +738,15 @@ class DataSmart(MutableMapping):
value = d.getVar(key, False) or ""
data.update({key:value})
+ for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]:
+ bb_list = d.getVar(key, False) or []
+ bb_list.sort()
+ data.update({key:str(bb_list)})
+
+ if key == "__BBANONFUNCS":
+ for i in bb_list:
+ value = d.getVar(i, True) or ""
+ data.update({i:value})
+
data_str = str([(k, data[k]) for k in sorted(data.keys())])
return hashlib.md5(data_str).hexdigest()