Skip to contentSkip to conversation

data_smart.py: add some internal bitbake variables to configuration hash

PATCH New Laurentiu Palcu 1 participant 1 message May 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/data_smart.py |   10 ++++++++++
 1 file changed, 10 insertions(+)
bitbake/lib/bb/data_smart.py +10 -0
index 5bf11e5..2fd8ccd 100644
@@ -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()
Signature · 1 line
1.7.9.5