Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Adrian Freihofer <adrian.freihofer@gmail.com>
To: Joakim.Tjernlund@infinera.com,
	"openembedded-core@lists.openembedded.org"	
	<openembedded-core@lists.openembedded.org>,
	"ceggers@arri.de" <ceggers@arri.de>
Subject: Re: [OE-core] multiple toolchains in SDK?
Date: Thu, 06 Feb 2025 21:48:33 +0100	[thread overview]
Message-ID: <3b241e88ec706ebe368f1230e3bf5ba43d7de859.camel@gmail.com> (raw)
In-Reply-To: <6f0575fbc6938491c7f377314629a11c977d8fc1.camel@infinera.com>

On Wed, 2025-02-05 at 18:16 +0000, Joakim Tjernlund via
lists.openembedded.org wrote:
> 
> On Fri, 2024-12-06 at 17:08 +0100, Christian Eggers wrote:
> > On Friday, 6 December 2024, 15:12:03 CET, Joakim Tjernlund via
> > lists.openembedded.org wrote:
> > > Trying to figure out how to build in SDK:
> > > gcc-arm32-musl
> > > and
> > > gcc-arm64-musl(or possibly gcc-arm64-newlib)
> > 
> > +1
> > 
> > We currently use ARMv7 (32 bit) with musl for our products and it
> > is possible
> > that we'll have to switch to ARMv8 for some derivatives in future.
> > As we
> > develop multiple products in parallel, having a SDK with both
> > compilers / library sets
> > would be great.
> 
> Any luck?
> 
>   Jocke
> 
> > 
> > > 
> > > without using multilib(as musl do not support multilib gcc-
> > > style), also
> > > the arm64 toolchain only needs to contains static libc.a
> > > 
> > > I cannot find how to express this in Yocto/Poky. Any pointers
> > > please?
> > > 
> > > Jocke
> > > 
> > 

Hi

Since you are writing very specifically about tool chains, you probably
need the environment script that is traditionally available with the
SDK or the eSDK installer. However, an SDK installer is limited in many
ways. Supporting only one architecture is one of them.

For some releases, the same environment script has also been available
in the Bitbake environment. You can use for example
  devtool ide-sdk --mode=shared
to bootstrap the SDK out of a bitbake environment as documented here:
https://docs.yoctoproject.org/dev/singleindex.html#devtool-ide-sdk-configures-ides-and-bootstraps-sdks

I would argue that such an environment has many advantages over an
environment set up by an eSDK installer. But the bootstrapping of such
an SDK requires to replicate a bitbake environment, basically: the
layers, the sstate-cache and a build configuration. There are multiple
ways how this can be done:

- Here is probably the official future:
https://lists.openembedded.org/g/openembedded-core/message/210948
- layers and build configurations are in git, the sstate is shared
- And there several other tools doing this.

Therefore, it is probably more promising to make the replication of the
Bitbake environment as simple as running an SDK installer is at time,
instead of further improving the installer-based approach.

Regards,
Adrian



> > 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#210874):
> https://lists.openembedded.org/g/openembedded-core/message/210874
> Mute This Topic: https://lists.openembedded.org/mt/109957875/4454582
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [
> adrian.freihofer@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


      parent reply	other threads:[~2025-02-06 20:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-06 14:12 multiple toolchains in SDK? Joakim Tjernlund
2024-12-06 16:08 ` [OE-core] " Christian Eggers
2025-02-05 18:16   ` Joakim Tjernlund
2025-02-06 15:18     ` Christian Eggers
2025-02-06 20:48     ` Adrian Freihofer [this message]

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=3b241e88ec706ebe368f1230e3bf5ba43d7de859.camel@gmail.com \
    --to=adrian.freihofer@gmail.com \
    --cc=Joakim.Tjernlund@infinera.com \
    --cc=ceggers@arri.de \
    --cc=openembedded-core@lists.openembedded.org \
    /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