Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: "Yann E . MORIN" <yann.morin.1998@free.fr>,
	Fabrice Fontaine <fontaine.fabrice@gmail.com>,
	Adam Duskett <aduskett@gmail.com>,
	"buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH, RE-SEND] openjdk: Add ARC HS3x/4x support via "Zero Assembly Project"
Date: Thu, 30 Dec 2021 21:14:58 +0100	[thread overview]
Message-ID: <20211230211458.4449d869@windsurf> (raw)
In-Reply-To: <20211021115915.32447-1-abrodkin@synopsys.com>

Hello Alexey,

On Thu, 21 Oct 2021 04:59:15 -0700
Alexey Brodkin via buildroot <buildroot@buildroot.org> wrote:

> This allows building and running a full-scale JVM in purely
> interpretive mode on ARCv2 processors.
> 
> Once JIT'ed version is available for ARC we'll obviously switch
> to it to gain a faster execution.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Adam Duskett <aduskett@gmail.com>

I have applied your patch (finally you could say!) but there was a
mistake in it: you've added your patch in package/openjdk/, but we
support two versions of OpenJDK (11 and 17), and your patch only
applies to version 17. So I moved it to a sub-folder + ensured that
version 11 couldn't be selected for ARC. This also raised the issue
that version 17 has an additional requirement on host gcc >= 4.9, so if
a package ever did "select BR2_PACKAGE_OPENJDK", they would have to be
careful that specifically on ARC, it's only available if host gcc >=
4.9. To avoid this, I've moved the host gcc >= 4.9 dependency to
BR2_PACKAGE_OPENJDK itself, even if not strictly required for OpenJDK
11.

However, there is one thing I didn't address as I wasn't sure: do you
support only the "zero" variant on ARC? If so, doesn't this:

config BR2_PACKAGE_OPENJDK_JVM_VARIANT_CLIENT
        bool "client"
        depends on !BR2_powerpc
        help
          Quick loading, but slower run-time performance.

config BR2_PACKAGE_OPENJDK_JVM_VARIANT_SERVER
        bool "server"
        depends on !BR2_powerpc
        help
          Slower loading, but faster run-time performance.

config BR2_PACKAGE_OPENJDK_JVM_VARIANT_ZERO
        bool "zero"
        select BR2_PACKAGE_LIBFFI
        help
          A non-assembler variant with wide arch support, however
          performance is less then client/server.

          http://openjdk.java.net/projects/zero

also needs some depends on !BR2_arc for the client and server variants?

Thanks a lot,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-12-30 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-21 11:59 [Buildroot] [PATCH, RE-SEND] openjdk: Add ARC HS3x/4x support via "Zero Assembly Project" Alexey Brodkin via buildroot
2021-12-30 20:14 ` Thomas Petazzoni [this message]
2021-12-30 21:04   ` Alexey Brodkin via buildroot
2021-12-30 21:32     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211230211458.4449d869@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=Alexey.Brodkin@synopsys.com \
    --cc=aduskett@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox