1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-05-07 03:49:20 +00:00

meta-ti: cleanup use of d.getVar()

1. drop use of True as second parameter, which is default, to align with master
2. there were instances of incorrectly passing 'd' as second parameter from
previous conversion from bb.data.getVar() usage

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Denys Dmytriyenko
2018-07-10 07:06:01 +00:00
parent f64a19d3e9
commit a5ecd90543
7 changed files with 26 additions and 26 deletions
+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 = d.getVar("CLASSOVERRIDE", d, 1)
c = d.getVar("CLASSOVERRIDE")
if c == "class-target":
tunes = d.getVar("TUNE_FEATURES", d, 1)
tunes = d.getVar("TUNE_FEATURES")
if not tunes:
return
pkgn = d.getVar("PN", d, 1)
pkgv = d.getVar("PV", d, 1)
pkgn = d.getVar("PN")
pkgv = d.getVar("PV")
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))