All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: Sumit Garg <sumit.garg@linaro.org>
Cc: meta-arm@lists.yoctoproject.org,
	Paul Barker <pbarker@konsulko.com>,
	wmills@ti.com, Daniel Thompson <daniel.thompson@linaro.org>
Subject: Re: [meta-arm] [PATCH 0/4] external-arm-toolchain: Add support for SDK generation
Date: Fri, 12 Jun 2020 02:02:06 -0400	[thread overview]
Message-ID: <20200612060206.GM17660@denix.org> (raw)
In-Reply-To: <CAFA6WYOQ4A9Wrqp9oAuZe+7k1CP3=8LTAhR1uUzt3SeDTZkNMg@mail.gmail.com>

On Mon, Jun 08, 2020 at 04:56:54PM +0530, Sumit Garg wrote:
> On Fri, 5 Jun 2020 at 04:30, Denys Dmytriyenko <denis@denix.org> wrote:
> >
> > On Tue, Jun 02, 2020 at 04:34:50PM +0530, Sumit Garg wrote:
> > > Patch #1 and #2 adds impprovements in external-arm-toolchain recipe in order to
> > > support SDK generation. SDK generation has been tested using:
> > >
> > > $ bitbake core-image-base -c populate_sdk
> >
> > This just ensures that external-arm-toolchain doesn't get in the way of SDK
> > generation by avoiding any conflicts. The only re-use here is glibc. The rest
> > of pre-built Arm toolchain gets thrown out and rebuilt from sources - gcc,
> > binutils, gdb/gdbserver are all built from sources as TCMODE was not set and
> > falls back to "default".
> 
> Yes I noticed this as well. I guess we can improve this situation to
> package tools from pre-built toolchain only rather than building from
> source. Will explore options.
> 
> > Sure, pre-built Arm toolchain doesn't provide all
> > possible SDKMACHINE binaries, but for 90% cases of x86_64, there's very little
> > re-use...
> 
> Yes, but don't you think that having a common build environment using
> SDKs is still useful from the end user's perspective irrespective of
> underlying toolchain (built from source or pre-built)?

Just wanted to get back to this point.

Yes, in general that would be preferred (and exactly why OE insists on 
building everything, starting with the toolchain, compared to competitors 
that use prebuilt toolchains by default, like buildroot, etc).

But as you have seen from the discussion in the other thread, there are 
some legitimate (hopefully) reasons to re-use prebuilt binaries even for 
SDK - licensing, distribution and such...

Back in the day it was simpler - 32-bit x86 was dominant and what prebuilt 
toolchain supported as a host and being the default/only SDKMACHINE.

For some time Linaro toolchain supported both 32-bit and 64-bit x86 as a
host, so it was possible to support both of those SDKMACHINEs. These days 
32-bit x86 faded into obscurity. But on the other hand, aarch64 hosts are 
gaining traction, so targeting aarch64 SDKMACHINE from x86 host will be a 
problem with external-arm-toolchain w/o full rebuild of SDK toolchain...

So, hopefully this can be done optionally/conditionally to either re-use 
prebuilt binaries from external toolchain or build them from sources.

-- 
Denys

  reply	other threads:[~2020-06-12  6:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 11:04 [PATCH 0/4] external-arm-toolchain: Add support for SDK generation Sumit Garg
2020-06-02 11:04 ` [PATCH 1/4] external-arm-toolchain: Remove glibc locale dependency Sumit Garg
2020-06-04 18:36   ` Denys Dmytriyenko
2020-06-05 14:24     ` Sumit Garg
2020-06-02 11:04 ` [PATCH 2/4] external-arm-toolchain: Refine dev libraies packaging Sumit Garg
2020-06-04 18:42   ` Denys Dmytriyenko
2020-06-05 13:52     ` Sumit Garg
2020-06-08 12:02       ` Paul Barker
2020-06-02 11:04 ` [PATCH 3/4] external-arm-toolchain: Add README Sumit Garg
2020-06-04 18:47   ` Denys Dmytriyenko
2020-06-05 14:32     ` Sumit Garg
2020-06-08 12:08   ` Paul Barker
2020-06-09  7:03     ` Sumit Garg
2020-06-02 11:04 ` [PATCH 4/4] external-arm-toolchain: Add package specific licenses Sumit Garg
2020-06-08 12:10   ` Paul Barker
2020-06-04  8:00 ` [PATCH 0/4] external-arm-toolchain: Add support for SDK generation Paul Barker
2020-06-04 23:00 ` Denys Dmytriyenko
2020-06-08 11:26   ` Sumit Garg
2020-06-12  6:02     ` Denys Dmytriyenko [this message]
     [not found] ` <1615797D4B360D3B.26163@lists.yoctoproject.org>
2020-06-04 23:10   ` [meta-arm] " Denys Dmytriyenko
2020-06-05  6:24     ` Richard Purdie
2020-06-05 13:29       ` Sumit Garg
2020-06-05 18:40         ` Denys Dmytriyenko
2020-06-08 11:32           ` Sumit Garg

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=20200612060206.GM17660@denix.org \
    --to=denis@denix.org \
    --cc=daniel.thompson@linaro.org \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=pbarker@konsulko.com \
    --cc=sumit.garg@linaro.org \
    --cc=wmills@ti.com \
    /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 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.