summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-01-05 15:57:50 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-05 15:57:50 +0000
commitfb9196ddcf88efdc2589eccbff062a69ae659007 (patch)
treee5761f266e771adeb3eb81d5cc609f95a599cf3e
parent55be33fd92859684db70a605c33b2c99a2c1a0f3 (diff)
downloadopenembedded-core-fb9196ddcf88efdc2589eccbff062a69ae659007.tar.gz
openembedded-core-fb9196ddcf88efdc2589eccbff062a69ae659007.tar.bz2
openembedded-core-fb9196ddcf88efdc2589eccbff062a69ae659007.zip
native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclass
-rw-r--r--meta/classes/native.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 1fb6e66ced..91ea9b547d 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -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)
}