beaglebone.inc: Update use of obsolete bitbake API
PATCH 1/1 beaglebone.inc: Update use of obsolete bitbake API
The bb.data.getVar() API has been deprecated & removed. This change follows that change and allows MACHINE=beaglebone to work again.
--- conf/machine/include/beaglebone.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/beaglebone.inc +1 -1
@@ -1,5 +1,5 @@ python () { - layers = bb.data.getVar("BBFILE_COLLECTIONS", d, 1) + layers = d.getVar("BBFILE_COLLECTIONS", True) if not layers: return if "yoctobsp" in layers:
Signature · 1 line
2.7.4
Ah, right, I forgot about this API change when pushing to master... Thanks.
Quoted 27 lines · Gary Thomas
The
bb.data.getVar()API has been deprecated & removed. This change follows that change and allows MACHINE=beaglebone to work again.Signed-off-by Gary Thomas <[email protected]>--- conf/machine/include/beaglebone.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)conf/machine/include/beaglebone.inc +1
-1@@ -1,5 +1,5 @@ python () { - layers = bb.data.getVar("BBFILE_COLLECTIONS", d, 1) + layers = d.getVar("BBFILE_COLLECTIONS", True) if not layers: return if "yoctobsp" in layers:Signature · 7 lines
2.7.4 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 1 line · Denys Dmytriyenko
Ah, right, I forgot about this API change when pushing to master... Thanks.
As an FYI, this check should really be moved to an event handler. As it is, if you have meta-yocto-bsp in bblayers, it’ll show an error for each and every recipe that was parsed, not particularly friendly. I’ll submit a patch when I can find a moment.
Signature · 4 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics
Quoted 9 lines · Christopher Larson
Quoted 1 line · Denys Dmytriyenko
Ah, right, I forgot about this API change when pushing to master... Thanks.
As an FYI, this check should really be moved to an event handler. As it is, if you have meta-yocto-bsp in bblayers, it’ll show an error for each and every recipe that was parsed, not particularly friendly. I’ll submit a patch when I can find a moment.
Thanks. I noticed that too and was thinking of changing it, but so far didn't have time... Looking forward to your patch then! :)
Signature · 1 line
Denys