mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-26 13:08:21 +01:00
Merge pull request #156 from net147/getvar-fixes
sunxi-mali: Use d.getVar
This commit is contained in:
commit
0b21d3bd2f
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user