mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c0c46125b6
commit
006ed65f51
@@ -738,5 +738,15 @@ class DataSmart(MutableMapping):
|
|||||||
value = d.getVar(key, False) or ""
|
value = d.getVar(key, False) or ""
|
||||||
data.update({key:value})
|
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())])
|
data_str = str([(k, data[k]) for k in sorted(data.keys())])
|
||||||
return hashlib.md5(data_str).hexdigest()
|
return hashlib.md5(data_str).hexdigest()
|
||||||
|
|||||||
Reference in New Issue
Block a user