1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-08 03:40:52 +00:00

recipes: fix build issue due to bb.data.* deprecation

Causes following error:
Exception: AttributeError: module 'bb.data' has no attribute 'getVar'

Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Thomas Perrot
2016-12-08 01:39:49 +00:00
committed by Denys Dmytriyenko
parent 1c0dc51920
commit d8827afedc
3 changed files with 10 additions and 10 deletions
@@ -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))
@@ -12,11 +12,11 @@ SRCREV = "3c0537748dd283b2de9c5369570aa2aade5a9979"
# 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))
+4 -4
View File
@@ -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))