]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstatesig: Add recipe wildcard
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 27 Feb 2018 22:47:51 +0000 (16:47 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Mar 2018 22:09:16 +0000 (22:09 +0000)
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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sstatesig.py

index ecb3ebc4c88baa700bf5eb506947fd8557e586be..beed45b74fd9506645edfd131fdd5d530ab76198 100644 (file)
@@ -38,6 +38,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