mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclass
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user