Skip to contentSkip to conversation

lib/oe: Add sstatesig, OE specific signature generator classes

PATCH In review Richard Purdie 1 participant 2 messages Jan 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/oe: Add sstatesig, OE specific signature generator classes

This patch adds SignatureGenerator classes specific to OE. For now, these emulate the previous behaviour with the exception that dependencies on quilt-native are now ignored for checksum purposes.

The intent is to allow easier experimentation and customisation of this code in future as a result of these changes.

Note that these changes require pending bitbake patches.

---

meta/classes/base.bbclass +1 -1
index 091e965..bedb73b 100644
@@ -9,7 +9,7 @@ inherit utility-tasks
 inherit metadata_scm
 inherit logging
 
-OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup"
+OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup oe.sstatesig"
 OE_IMPORTS[type] = "list"
 
 def oe_import(d):
meta/lib/oe/sstatesig.py renamed from dev/null +48 -0

48 lines not on this page · raw message

#1 lore raw

meta/lib/oe/sstatesig.py line 43

Quoted 13 lines · Richard Purdie
meta/lib/oe/sstatesig.py renamed from dev/null +13 -0
+
+class SignatureGeneratorOEBasic(bb.siggen.SignatureGeneratorBasic):
+    name = "OEBasic"
+    def init_rundepcheck(self, data):
+        pass
+    def rundep_check(self, fn, recipename, task, dep, depname):
+        return sstate_rundepfilter(fn, recipename, task, dep, depname)
+
+class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
+    name = "OEBasicHash"
+    def init_rundepcheck(self, data):
+        pass
+    def rundep_check(self, fn, task, dep, dataCache):

This should be:

def rundep_check(self, fn, recipename, task, dep, depname):

meta/lib/oe/sstatesig.py line 48

Quoted 5 lines
meta/lib/oe/sstatesig.py renamed from dev/null +5 -0
+        return sstate_rundepfilter(fn, recipename, task, dep, depname)
+
+# Insert these classes into siggen's namespace so it can see and select them
+bb.siggen.SignatureGeneratorOEBasic = SignatureGeneratorOEBasic
+bb.siggen.SignatureGeneratorOEBasicHash = SignatureGeneratorOEBasicHash

Cheers,

Richard