From: Denys Dmytriyenko <denys@ti.com>
To: Thomas Perrot <thomas.perrot@tupi.fr>
Cc: meta-ti@yoctoproject.org
Subject: Re: [PATCH] Fix build issue due at the use of bb.data instead of d: Exception: AttributeError: module 'bb.data' has no attribute 'getVar'
Date: Tue, 13 Dec 2016 21:05:43 -0500 [thread overview]
Message-ID: <20161214020543.GJ28380@edge> (raw)
In-Reply-To: <20161207205154.GV28380@edge>
On Wed, Dec 07, 2016 at 03:51:54PM -0500, Denys Dmytriyenko wrote:
> Thanks, I've seen the API deprecation change in bitbake[1], but haven't had a
> chance to make updates yet.
> BTW, your commit log got merged with the subject...
Ping. Would you like to fix your commit log or should I?
> [1] http://cgit.openembedded.org/bitbake/commit/?id=1825604d46fcd29fad6cfd325f1cb1e1b457d2c9
>
> --
> Denys
>
>
> On Wed, Dec 07, 2016 at 08:39:49PM +0100, Thomas Perrot wrote:
> > Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
> > ---
> > recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb | 6 +++---
> > recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 6 +++---
> > recipes-ti/devtools/ti-cgt6x_8.1.0.bb | 8 ++++----
> > 3 files changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb b/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
> > index 45c8d519..394d1e4a 100644
> > --- a/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
> > +++ b/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
> > @@ -14,11 +14,11 @@ SRCREV = "ab0ca5bff345f6c13807fea3c4acabf5f2b9b10a"
> >
> > # There's only hardfp version available
> > python __anonymous() {
> > - tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
> > + tunes = d.getVar("TUNE_FEATURES", d, 1)
> > if not tunes:
> > return
> > - pkgn = bb.data.getVar("PN", d, 1)
> > - pkgv = bb.data.getVar("PV", d, 1)
> > + pkgn = d.getVar("PN", d, 1)
> > + pkgv = d.getVar("PV", d, 1)
> > if "callconvention-hard" not in tunes:
> > bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> > index 770cda21..5cec40e8 100644
> > --- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> > +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> > @@ -12,11 +12,11 @@ SRCREV = "a5152f0b90bf3916eb1f478ac9fefe7d7ebe8bd9"
> >
> > # There's only hardfp version available
> > python __anonymous() {
> > - tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
> > + tunes = d.getVar("TUNE_FEATURES", d, 1)
> > if not tunes:
> > return
> > - pkgn = bb.data.getVar("PN", d, 1)
> > - pkgv = bb.data.getVar("PV", d, 1)
> > + pkgn = d.getVar("PN", d, 1)
> > + pkgv = d.getVar("PV", d, 1)
> > if "callconvention-hard" not in tunes:
> > bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > diff --git a/recipes-ti/devtools/ti-cgt6x_8.1.0.bb b/recipes-ti/devtools/ti-cgt6x_8.1.0.bb
> > index 79b562a9..5e97927b 100644
> > --- a/recipes-ti/devtools/ti-cgt6x_8.1.0.bb
> > +++ b/recipes-ti/devtools/ti-cgt6x_8.1.0.bb
> > @@ -13,14 +13,14 @@ COMPATIBLE_HOST_class-target = "arm.*-linux"
> >
> > # For now we only have hardfp version for target class
> > python __anonymous() {
> > - c = bb.data.getVar("CLASSOVERRIDE", d, 1)
> > + c = d.getVar("CLASSOVERRIDE", d, 1)
> >
> > if c == "class-target":
> > - tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
> > + tunes = d.getVar("TUNE_FEATURES", d, 1)
> > if not tunes:
> > return
> > - pkgn = bb.data.getVar("PN", d, 1)
> > - pkgv = bb.data.getVar("PV", d, 1)
> > + pkgn = d.getVar("PN", d, 1)
> > + pkgv = d.getVar("PV", d, 1)
> > if "callconvention-hard" not in tunes:
> > bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
> > --
> > 2.11.0
> >
> > --
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
prev parent reply other threads:[~2016-12-14 2:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-07 19:39 [PATCH] Fix build issue due at the use of bb.data instead of d: Exception: AttributeError: module 'bb.data' has no attribute 'getVar' Thomas Perrot
2016-12-07 20:51 ` Denys Dmytriyenko
2016-12-14 2:05 ` Denys Dmytriyenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161214020543.GJ28380@edge \
--to=denys@ti.com \
--cc=meta-ti@yoctoproject.org \
--cc=thomas.perrot@tupi.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.