summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-05-03 17:37:17 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-03 16:24:13 +0100
commit6db202532122b213ae6cfce9a49ac9fad2db20f5 (patch)
tree7a13400eeb66d05f8ba19f24fc51317f3c49681f /bitbake/lib/bb
parenta4cc40c6227b1212d82450c3b2adc1e08061966f (diff)
downloadpoky-6db202532122b213ae6cfce9a49ac9fad2db20f5.tar.gz
bitbake: 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 rev: 260ced7452405fc43ce3d9dd6798236aa07cc716) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/data_smart.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 5bf11e5e0d..2fd8ccdebd 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -738,5 +738,15 @@ class DataSmart(MutableMapping):
738 value = d.getVar(key, False) or "" 738 value = d.getVar(key, False) or ""
739 data.update({key:value}) 739 data.update({key:value})
740 740
741 for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]:
742 bb_list = d.getVar(key, False) or []
743 bb_list.sort()
744 data.update({key:str(bb_list)})
745
746 if key == "__BBANONFUNCS":
747 for i in bb_list:
748 value = d.getVar(i, True) or ""
749 data.update({i:value})
750
741 data_str = str([(k, data[k]) for k in sorted(data.keys())]) 751 data_str = str([(k, data[k]) for k in sorted(data.keys())])
742 return hashlib.md5(data_str).hexdigest() 752 return hashlib.md5(data_str).hexdigest()