]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstatesig.py: Fix image regeneration issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Nov 2013 15:32:13 +0000 (15:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Nov 2013 10:49:18 +0000 (10:49 +0000)
With the "ABI safe" recipes, we've been excluding those from signatures. This
is fine in the general case but in the specific case of image recipes it breaks.

A good test case is the interfaces file. Editting this causes init-ifupdown
to rebuild but not an image containing it (e.g. core-image-minimal).

We need to ensure the checksums are added to the image recipes and this change
does that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sstatesig.py

index 33ff8929b3f02d9bdfcd5adba211fcc4694769e4..329c84d366845a880695bf7d3828b4edb1c85aae 100644 (file)
@@ -14,6 +14,8 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
     def isPackageGroup(fn):
         inherits = " ".join(dataCache.inherits[fn])
         return "packagegroup.bbclass" in inherits
+    def isImage(fn):
+        return "image.bbclass" in " ".join(dataCache.inherits[fn])
 
     # Always include our own inter-task dependencies
     if recipename == depname:
@@ -39,7 +41,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
         return False
 
     # Exclude well defined machine specific configurations which don't change ABI
-    if depname in siggen.abisaferecipes:
+    if depname in siggen.abisaferecipes and not isImage(fn):
         return False
 
     # Exclude well defined recipe->dependency