Merge pull request #156 from net147/getvar-fixes

sunxi-mali: Use d.getVar
This commit is contained in:
Enrico Butera 2016-12-05 11:31:24 +01:00 committed by GitHub
commit 0b21d3bd2f

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))
} }