From 3bd237ac1b12938025ca3c63e56d1c62f0d56805 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Sat, 3 Dec 2016 22:31:57 +1100 Subject: [PATCH] sunxi-mali: Use d.getVar The bb.data API is deprecated, use d.getVar instead. Signed-off-by: Jonathan Liu --- recipes-graphics/libgles/sunxi-mali_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-graphics/libgles/sunxi-mali_git.bb b/recipes-graphics/libgles/sunxi-mali_git.bb index 653d67b..193c968 100644 --- a/recipes-graphics/libgles/sunxi-mali_git.bb +++ b/recipes-graphics/libgles/sunxi-mali_git.bb @@ -12,12 +12,12 @@ PROVIDES = "virtual/libgles1 virtual/libgles2 virtual/egl" # There's only hardfp version available python __anonymous() { - tunes = bb.data.getVar("TUNE_FEATURES", d, 1) + tunes = d.getVar("TUNE_FEATURES", True) if not tunes: return if "callconvention-hard" not in tunes: - pkgn = bb.data.getVar("PN", d, 1) - pkgv = bb.data.getVar("PV", d, 1) + pkgn = d.getVar("PN", True) + pkgv = d.getVar("PV", True) raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) }