aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-common.inc
diff options
context:
space:
mode:
authorCody P Schafer <dev@codyps.com>2016-11-29 11:48:17 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2016-12-06 16:25:08 -0200
commit2a3cd732ce7efea9f372862be7ef70ff5ecb50d9 (patch)
tree6fd21a770c2aab45a08a38c3167636e465cd401d /recipes-core/openjdk/openjdk-common.inc
parenta70bf4a9e3e1c03ff1cc2d0db228a383943c54db (diff)
downloadmeta-java-2a3cd732ce7efea9f372862be7ef70ff5ecb50d9.tar.gz
meta-java-2a3cd732ce7efea9f372862be7ef70ff5ecb50d9.tar.bz2
meta-java-2a3cd732ce7efea9f372862be7ef70ff5ecb50d9.zip
move from bb.data.getVar(x, d, 1) to d.getVar(x, True)
bb.data.getVar was removed, need to use the modern mechanism. Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-core/openjdk/openjdk-common.inc')
-rw-r--r--recipes-core/openjdk/openjdk-common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-core/openjdk/openjdk-common.inc b/recipes-core/openjdk/openjdk-common.inc
index 6a72572..cdfdda8 100644
--- a/recipes-core/openjdk/openjdk-common.inc
+++ b/recipes-core/openjdk/openjdk-common.inc
@@ -25,7 +25,7 @@ B = "${S}/build"
def get_jdk_arch(d):
import bb
- jdk_arch = bb.data.getVar('TRANSLATED_TARGET_ARCH', d, 1)
+ jdk_arch = d.getVar('TRANSLATED_TARGET_ARCH', True)
if jdk_arch == "x86-64":
jdk_arch = "amd64"
elif jdk_arch == "powerpc":
@@ -45,7 +45,7 @@ JDK_FAKE = "${WORKDIR}/fake-jdk"
def get_llvm_configure_arch(d):
import bb;
- arch = bb.data.getVar('TRANSLATED_TARGET_ARCH', d, 1)
+ arch = d.getVar('TRANSLATED_TARGET_ARCH', True)
if arch == "x86-64" or arch == "i486" or arch == "i586" or arch == "i686":
arch = "x86"
elif arch == "arm":
@@ -55,7 +55,7 @@ def get_llvm_configure_arch(d):
elif arch == "powerpc" or arch == "powerpc64":
arch = "powerpc"
else:
- bb.warn("%s does not support %s yet" % (bb.data.getVar('PN', d, 1), arch) );
+ bb.warn("%s does not support %s yet" % (d.getVar('PN', True), arch) );
return arch