1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclass

This commit is contained in:
Richard Purdie
2009-01-05 15:57:50 +00:00
parent 55be33fd92
commit fb9196ddcf
+10
View 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)
}