All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] beaglebone.inc: Update use of obsolete bitbake API
@ 2017-03-02  8:33 Gary Thomas
  2017-03-02 17:13 ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2017-03-02  8:33 UTC (permalink / raw)
  To: meta-ti; +Cc: 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 <gary@mlbassoc.com>
---
 conf/machine/include/beaglebone.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/machine/include/beaglebone.inc b/conf/machine/include/beaglebone.inc
index f76ad3d..b10146d 100644
--- a/conf/machine/include/beaglebone.inc
+++ b/conf/machine/include/beaglebone.inc
@@ -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:
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] beaglebone.inc: Update use of obsolete bitbake API
  2017-03-02  8:33 [PATCH] beaglebone.inc: Update use of obsolete bitbake API Gary Thomas
@ 2017-03-02 17:13 ` Denys Dmytriyenko
  2017-03-02 19:29   ` Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2017-03-02 17:13 UTC (permalink / raw)
  To: Gary Thomas; +Cc: meta-ti

Ah, right, I forgot about this API change when pushing to master... Thanks.

On Thu, Mar 02, 2017 at 09:33:35AM +0100, Gary Thomas wrote:
> 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 <gary@mlbassoc.com>
> ---
>  conf/machine/include/beaglebone.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/conf/machine/include/beaglebone.inc b/conf/machine/include/beaglebone.inc
> index f76ad3d..b10146d 100644
> --- a/conf/machine/include/beaglebone.inc
> +++ b/conf/machine/include/beaglebone.inc
> @@ -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:
> -- 
> 2.7.4
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] beaglebone.inc: Update use of obsolete bitbake API
  2017-03-02 17:13 ` Denys Dmytriyenko
@ 2017-03-02 19:29   ` Christopher Larson
  2017-03-02 20:39     ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2017-03-02 19:29 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: meta-ti mailing list, Gary Thomas

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

On Thu, Mar 2, 2017 at 10:13 AM, Denys Dmytriyenko <denys@ti.com> wrote:

> 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.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 965 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] beaglebone.inc: Update use of obsolete bitbake API
  2017-03-02 19:29   ` Christopher Larson
@ 2017-03-02 20:39     ` Denys Dmytriyenko
  0 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2017-03-02 20:39 UTC (permalink / raw)
  To: Christopher Larson; +Cc: meta-ti mailing list, Gary Thomas

On Thu, Mar 02, 2017 at 12:29:19PM -0700, Christopher Larson wrote:
> On Thu, Mar 2, 2017 at 10:13 AM, Denys Dmytriyenko <denys@ti.com> wrote:
> 
> > 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! :)

-- 
Denys


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-02 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02  8:33 [PATCH] beaglebone.inc: Update use of obsolete bitbake API Gary Thomas
2017-03-02 17:13 ` Denys Dmytriyenko
2017-03-02 19:29   ` Christopher Larson
2017-03-02 20:39     ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.