[OE-core] [RFC 1/3] sstatesig: Add recipe wildcard

Joshua Watt jpewhacker at gmail.com
Tue Feb 27 22:47:51 UTC 2018


The special string "*" on the left hand side of the dependency
specification matches all recipes except the one on the right hand side.

Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
---
 meta/lib/oe/sstatesig.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 6be9d32133a..418c1ca3cc7 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -37,6 +37,10 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
     if "%s->%s" % (recipename, depname) in siggen.saferecipedeps:
         return False
 
+    # Check for special wildcard
+    if "*->%s" % depname in siggen.saferecipedeps and recipename != depname:
+        return False
+
     # Don't change native/cross/nativesdk recipe dependencies any further
     if isNative(recipename) or isCross(recipename) or isNativeSDK(recipename):
         return True
-- 
2.14.3




More information about the Openembedded-core mailing list