mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
Re-getVar BBCLASSEXTEND after finalise()
This ensures that an anonymous python function is able to manipulate the BBCLASSEXTEND contents, and, therefore, amend.inc files are able to add to it. (Bitbake rev: c7d038d404afaf4ce3735af5134163759da6f6ef) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
73a12b9184
commit
d8b12d4eea
@@ -152,8 +152,7 @@ def handle(fn, d, include):
|
|||||||
classes.remove(__classname__)
|
classes.remove(__classname__)
|
||||||
else:
|
else:
|
||||||
if include == 0:
|
if include == 0:
|
||||||
multi = data.getVar('BBCLASSEXTEND', d, 1)
|
if data.getVar('BBCLASSEXTEND', d, 1):
|
||||||
if multi:
|
|
||||||
based = bb.data.createCopy(d)
|
based = bb.data.createCopy(d)
|
||||||
else:
|
else:
|
||||||
based = d
|
based = d
|
||||||
@@ -163,7 +162,7 @@ def handle(fn, d, include):
|
|||||||
bb.data.setVar("__SKIPPED", True, based)
|
bb.data.setVar("__SKIPPED", True, based)
|
||||||
darray = {"": based}
|
darray = {"": based}
|
||||||
|
|
||||||
for cls in (multi or "").split():
|
for cls in (data.getVar('BBCLASSEXTEND', based, 1) or "").split():
|
||||||
pn = data.getVar('PN', d, True)
|
pn = data.getVar('PN', d, True)
|
||||||
based = bb.data.createCopy(d)
|
based = bb.data.createCopy(d)
|
||||||
data.setVar('PN', pn + '-' + cls, based)
|
data.setVar('PN', pn + '-' + cls, based)
|
||||||
|
|||||||
Reference in New Issue
Block a user