diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-05-03 17:37:17 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-03 16:07:31 +0100 |
commit | 260ced7452405fc43ce3d9dd6798236aa07cc716 (patch) | |
tree | 4632005bba10ea92eeabe612de2664dbdc512073 /lib/bb/data_smart.py | |
parent | 949c01228a977c3b92bfc0802f6c71b40d8e05b3 (diff) | |
download | bitbake-contrib-260ced7452405fc43ce3d9dd6798236aa07cc716.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]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r-- | lib/bb/data_smart.py | 10 |
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() |