sunxi-mali: Use d.getVar

The bb.data API is deprecated, use d.getVar instead.

Signed-off-by: Jonathan Liu <net147@gmail.com>
This commit is contained in:
Jonathan Liu 2016-12-03 22:31:57 +11:00
parent 1c38e7fa72
commit 3bd237ac1b

View File

@ -12,12 +12,12 @@ PROVIDES = "virtual/libgles1 virtual/libgles2 virtual/egl"
# There's only hardfp version available # There's only hardfp version available
python __anonymous() { python __anonymous() {
tunes = bb.data.getVar("TUNE_FEATURES", d, 1) tunes = d.getVar("TUNE_FEATURES", True)
if not tunes: if not tunes:
return return
if "callconvention-hard" not in tunes: if "callconvention-hard" not in tunes:
pkgn = bb.data.getVar("PN", d, 1) pkgn = d.getVar("PN", True)
pkgv = bb.data.getVar("PV", d, 1) pkgv = d.getVar("PV", True)
raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
} }