diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-05-20 16:20:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-20 23:58:06 +0100 |
commit | 006ed65f51a39d328feccd4d6c28864e8d26f537 (patch) | |
tree | dbcb60e259e1fed628fb9a73d2b930734c4ec960 /bitbake/lib | |
parent | c0c46125b6a392fd3f1f0f6cae83fedb2c86acc8 (diff) | |
download | poky-006ed65f51a39d328feccd4d6c28864e8d26f537.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 master rev: 260ced7452405fc43ce3d9dd6798236aa07cc716)
(Bitbake rev: 0c744479c2657e433280d9f1884483fa76796b69)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 10 |
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() |