All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH 0/2] Allow building jre from hosttools
@ 2019-04-01 14:08 Andrej Valek
  2019-04-01 14:08 ` [meta-java][PATCH 1/2] openjre-8: allow build " Andrej Valek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrej Valek @ 2019-04-01 14:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Marko

From: Peter Marko <peter.marko@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"

This requires some changes in the recipes.

Peter Marko (2):
  openjre-8: allow build from hosttools
  openjdk-8: add missing unzip-native dependency

 recipes-core/openjdk/openjdk-8-cross.inc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.11.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-java][PATCH 1/2] openjre-8: allow build from hosttools
  2019-04-01 14:08 [meta-java][PATCH 0/2] Allow building jre from hosttools Andrej Valek
@ 2019-04-01 14:08 ` Andrej Valek
  2019-04-01 14:08 ` [meta-java][PATCH 2/2] openjdk-8: add missing unzip-native dependency Andrej Valek
  2019-04-03  9:09 ` [meta-java][PATCH 0/2] Allow building jre from hosttools Richard Leitner
  2 siblings, 0 replies; 4+ messages in thread
From: Andrej Valek @ 2019-04-01 14:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Marko

From: Peter Marko <peter.marko@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@siemens.com>
Signed-off-by: Andrej Valek <andrej.valek@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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-java][PATCH 2/2] openjdk-8: add missing unzip-native dependency
  2019-04-01 14:08 [meta-java][PATCH 0/2] Allow building jre from hosttools Andrej Valek
  2019-04-01 14:08 ` [meta-java][PATCH 1/2] openjre-8: allow build " Andrej Valek
@ 2019-04-01 14:08 ` Andrej Valek
  2019-04-03  9:09 ` [meta-java][PATCH 0/2] Allow building jre from hosttools Richard Leitner
  2 siblings, 0 replies; 4+ messages in thread
From: Andrej Valek @ 2019-04-01 14:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Marko

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

When building openjre-8 from hosttools, build fails due to
missing unzip.

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

diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index a2bfa27..95f9979 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -2,7 +2,7 @@ JDK_HOME = "${libdir_jvm}/openjdk-8"
 JRE_HOME = "${libdir_jvm}/openjre-8"
 
 DEPENDS = "\
-    openjdk-8-native zip-native ant-native libxslt \
+    openjdk-8-native zip-native unzip-native ant-native libxslt \
     krb5 libffi fontconfig freetype \
 "
 
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-java][PATCH 0/2] Allow building jre from hosttools
  2019-04-01 14:08 [meta-java][PATCH 0/2] Allow building jre from hosttools Andrej Valek
  2019-04-01 14:08 ` [meta-java][PATCH 1/2] openjre-8: allow build " Andrej Valek
  2019-04-01 14:08 ` [meta-java][PATCH 2/2] openjdk-8: add missing unzip-native dependency Andrej Valek
@ 2019-04-03  9:09 ` Richard Leitner
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Leitner @ 2019-04-03  9:09 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Marko

Hi Andrej, Peter,

On 01/04/2019 16:08, Andrej Valek wrote:
> From: Peter Marko <peter.marko@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"
> 
> This requires some changes in the recipes.

Thanks for this series.

I'll merge it to master-next, take a look at it ASAP and run it through 
my tests. Unfortunately I'm currently quite busy so please don't expect 
any results before end of next week. Sorry for that.

regards;Richard.L

> 
> Peter Marko (2):
>    openjre-8: allow build from hosttools
>    openjdk-8: add missing unzip-native dependency
> 
>   recipes-core/openjdk/openjdk-8-cross.inc | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-03  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01 14:08 [meta-java][PATCH 0/2] Allow building jre from hosttools Andrej Valek
2019-04-01 14:08 ` [meta-java][PATCH 1/2] openjre-8: allow build " Andrej Valek
2019-04-01 14:08 ` [meta-java][PATCH 2/2] openjdk-8: add missing unzip-native dependency Andrej Valek
2019-04-03  9:09 ` [meta-java][PATCH 0/2] Allow building jre from hosttools Richard Leitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.