aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-8-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-8-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-8-common.inc')
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index c339985..def779d 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -171,7 +171,7 @@ do_configure_prepend() {
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":
@@ -181,7 +181,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
@@ -193,7 +193,7 @@ export LLVM_CONFIGURE_ARCH="${@get_llvm_configure_arch(d)}"
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":
@@ -211,8 +211,8 @@ export DEBUG_BINARIES = "true"
ALTERNATIVE_PRIORITY = "50"
-OPENJDK_UPDATE_VERSION = "${@bb.data.getVar('PV', d, 1).split('b')[0]}"
-OPENJDK_BUILD_NUMBER = "b${@bb.data.getVar('PV', d, 1).split('b')[1]}"
+OPENJDK_UPDATE_VERSION = "${@d.getVar('PV', True).split('b')[0]}"
+OPENJDK_BUILD_NUMBER = "b${@d.getVar('PV', True).split('b')[1]}"
EXTRA_OECONF_append = "\
--with-build-number=${OPENJDK_BUILD_NUMBER} \
--with-update-version=${OPENJDK_UPDATE_VERSION} \