]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclass
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 5 Jan 2009 15:57:50 +0000 (15:57 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 5 Jan 2009 15:57:50 +0000 (15:57 +0000)
meta/classes/native.bbclass

index 1fb6e66ced39f8122d804e0df7c53ef523399fc2..91ea9b547dd7984db13ab663f1d9e26d210cbc5c 100644 (file)
@@ -119,5 +119,15 @@ python __anonymous () {
             else:
                 bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
     bb.data.setVar("DEPENDS", depends, d)
+    provides = bb.data.getVar("PROVIDES", d, True)
+    for prov in provides.split():
+        if prov.find(pn) != -1:
+            continue
+        if not prov.endswith("-native"):
+            if autoextend:
+                provides = provides.replace(prov, prov + "-native")
+            #else:
+            #    bb.note("%s has rouge PROVIDES of %s which doesn't end in -sdk?" % (pn, prov))
+    bb.data.setVar("PROVIDES", provides, d)
 }