[oe] [meta-java][PATCH 1/2] openjre-8: allow build from hosttools

Andrej Valek andrej.valek at siemens.com
Mon Apr 1 14:08:20 UTC 2019


From: Peter Marko <peter.marko at siemens.com>

Buildding whole native openjdk toolchain takes very long time
as is a waste of resources.

Following layer configuration allows to build from hosttools:
HOSTTOOLS += "java javac pack200"
ASSUME_PROVIDED += "openjdk-8-native"

Fow this, special native directory overrides need to be removed.

Signed-off-by: Peter Marko <peter.marko at siemens.com>
Signed-off-by: Andrej Valek <andrej.valek at siemens.com>
---
 recipes-core/openjdk/openjdk-8-cross.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index d04b0d3..a2bfa27 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -40,6 +40,8 @@ PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5,"
 
 PACKAGECONFIG[repack] = ",,,"
 
+PACKAGECONFIG[hosttools] = ",--with-tools-dir=${STAGING_DIR_NATIVE} --with-boot-jdk=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native --with-cacerts-file=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/jre/lib/security/cacerts,,"
+
 CACHED_CONFIGUREVARS = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_includes=${STAGING_INCDIR}', '', d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_libraries=${STAGING_LIBDIR}', '', d)} \
@@ -57,9 +59,6 @@ EXTRA_OECONF_append = "\
     --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \
     \
     --with-sys-root=${STAGING_DIR_HOST} \
-    --with-tools-dir=${STAGING_DIR_NATIVE} \
-    --with-boot-jdk=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native \
-    --with-cacerts-file=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/jre/lib/security/cacerts \
     \
     --disable-precompiled-headers \
     --disable-zip-debug-info \
-- 
2.11.0



More information about the Openembedded-devel mailing list