Skip to contentSkip to conversation

beaglebone.inc: Update use of obsolete bitbake API

PATCH In review Gary Thomas 3 participants 4 messages Mar 2, 2017

lore
Share & tools
lore
#0 lore raw

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
index f76ad3d..b10146d 100644
@@ -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
#1 lore raw

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.

---
 conf/machine/include/beaglebone.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/beaglebone.inc +1 -1
index f76ad3d..b10146d 100644
@@ -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
#2 lore raw
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
#3 lore raw
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