]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
data_smart.py: add some internal bitbake variables to configuration hash
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 3 May 2013 14:37:17 +0000 (17:37 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 May 2013 15:07:31 +0000 (16:07 +0100)
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>
lib/bb/data_smart.py

index 5bf11e5e0d018073fc81c372a74e138b0326a269..2fd8ccdebda15558c8bc9696e67d5ec4cf125c59 100644 (file)
@@ -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()