mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclass
This commit is contained in:
@@ -119,5 +119,15 @@ python __anonymous () {
|
|||||||
else:
|
else:
|
||||||
bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
|
bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
|
||||||
bb.data.setVar("DEPENDS", depends, d)
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user