From 6db202532122b213ae6cfce9a49ac9fad2db20f5 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Fri, 3 May 2013 17:37:17 +0300 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/data_smart.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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): 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()