path: root/recipes-devtools
diff options
authorHongxu Jia <hongxu.jia@windriver.com>2019-04-25 15:52:01 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2019-08-09 15:33:05 +0800
commit51fce9cf0a18546002990ed8219b06b459b734bb (patch)
treece345c4b547930887b2525a8bfe23e7ee1782d97 /recipes-devtools
parent17b22921593d5a9224165dcf4d338f6a6a91c605 (diff)
use pre-build openjdk-8-native 212b04 to replace meta-java
The openjdk-8-native 212b04 is a pre-build binary from ojdkbuild which is a community build using source code from OpenJDK project. [https://github.com/ojdkbuild/ojdkbuild] The reason to use it rather than build from source by meta-java: - The meta-java introduce extra 38 depend recipes to openjdk-8-native, without meta-java could save build time 20%, and will not be broke by meta-java build failure - Only use openjdk-8-native to build bazel-native, and then use bazel-native to build others, any target recipes/packages does not require openjdk-8-native directly The pre-build binary only supports on x86-64, for other hosts, we could add use the one provided by meta-java. What you do is just add layer meta-java to your build. The idea refers meta-renesas-ai: https://github.com/renesas-rz/meta-renesas-ai/blob/master/meta-tensorflow/recipes-devtools/openjdk/openjdk-8-native_151-1.b12.bb Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Diffstat (limited to 'recipes-devtools')
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-devtools/openjdk/openjdk-8-native_212b04.bb b/recipes-devtools/openjdk/openjdk-8-native_212b04.bb
new file mode 100644
index 0000000..1527f8d
--- /dev/null
+++ b/recipes-devtools/openjdk/openjdk-8-native_212b04.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Java runtime based upon the OpenJDK Project, the community \
+builds using source code from OpenJDK project"
+LICENSE = "GPL-2.0-with-classpath-exception"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3e0b59f8fac05c3c03d4a26bbda13f8f"
+SRC_URI[md5sum] = "8082ad8dafec378f2a4b24cbfdb4a9a4"
+SRC_URI[sha256sum] = "ef6a3050a1c3477a6e13c24d10ab36decad548649a260559d466467401db15de"
+SRC_URI = " \
+ https://github.com/ojdkbuild/contrib_jdk8u-ci/releases/download/jdk8u212-b04/jdk-8u212-ojdkbuild-linux-x64.zip \
+S = "${WORKDIR}/jdk-8u212-ojdkbuild-linux-x64"
+do_install () {
+ install -d ${D}${libdir}/jvm/openjdk-8-native
+ cp -rf ${S}/* ${D}${libdir}/jvm/openjdk-8-native
+inherit native
+python __anonymous() {
+ if d.getVar("BUILD_ARCH") != "x86_64":
+ msg = "\nThe pre-build openjdk-8-native does not support %s host," % d.getVar("BUILD_ARCH")
+ msg += "\nplease use the one in meta-java to replace,"
+ msg += "\nadd meta-java to BBLAYERS in conf/bblayers.conf"
+ raise bb.parse.SkipPackage(msg)