diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:25:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-26 22:42:00 +0000 |
commit | 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939 (patch) | |
tree | d19082aee83252afd998f387e4aeac78b9108c34 /meta/classes/nativesdk.bbclass | |
parent | 54c4b4fd10c104641bb7ae087b2230aa6c6085f8 (diff) | |
download | openembedded-core-2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939.tar.gz openembedded-core-2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939.tar.bz2 openembedded-core-2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939.zip |
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses
directly to the data store object.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/nativesdk.bbclass')
-rw-r--r-- | meta/classes/nativesdk.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index ca24efaa7c..e6204c02ba 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass @@ -15,7 +15,7 @@ python () { sdkarchs = [] for arch in archs: sdkarchs.append(arch + '-nativesdk') - bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d) + d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) } STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}" @@ -66,7 +66,7 @@ python nativesdk_virtclass_handler () { if not pn.endswith("-nativesdk"): return - bb.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-nativesdk", e.data) + e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-nativesdk") } python () { @@ -91,7 +91,7 @@ python () { newdeps.append(dep.replace("-nativesdk", "") + "-nativesdk") else: newdeps.append(dep) - bb.data.setVar(varname, " ".join(newdeps), d) + d.setVar(varname, " ".join(newdeps)) map_dependencies("DEPENDS", d) #for pkg in (d.getVar("PACKAGES", True).split() + [""]): |