All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: poky@yoctoproject.org
Subject: Re: Poky SDK as an external toolchain
Date: Fri, 14 Oct 2011 11:21:17 -0500	[thread overview]
Message-ID: <4E98617D.5040501@windriver.com> (raw)
In-Reply-To: <1318608939.2342.37.camel@ted>

On 10/14/11 11:15 AM, Richard Purdie wrote:
> On Fri, 2011-10-14 at 11:06 -0500, Mark Hatle wrote:
>> On 10/14/11 9:44 AM, Gary Thomas wrote:
>>> Premise: I'm happy with the toolchain that builds with Poky/Yocto
>>> Problem: I'm not happy rebuilding said toolchain all the time, nor
>>> having my customers have to rebuild it.
>>>
>>> Solution? I'd like to build the meta-toolchain and then be able to
>>> use that as an external toolchain for subsequent builds.  That way,
>>> I can create the tools and reuse them internally as well as pass
>>> them to my customers.
>>>
>>> How can I make this happen?  The last time I tried anything like
>>> this, I spent many days in the attempt only to find out that it
>>> was never going to work...
>>
>> We have a similar need for our commercial products.  We allow/enable our
>> customers to rebuild the toolchains (and use the results), but we only provide
>> official support for our binary versions.  There are simply too many variations
>> possible to try to support the toolchains in source format.  (Toolchains =
>> bintuils, gcc, stock eglibc and a stock uclibc configurations...)
>>
>> Our intention is simply to create custom recipes that extract our binaries and
>> use them instead of doing a by-source build.  If there is an easier way that
>> would be nice.  (And I agree, using the results of the meta-toolchain build is
>> the right approach for anything standard.)
>>
>> I'd suggest this get added as an enhancement request to the bugzilla.  We're
>> currently working on feature planning for 1.2 so this would be a good time to
>> add it into the bucket of possible work items.
> 
> We already support external toolchains just fine. You can use a
> meta-toolchain as an external toolchain.

But we don't have a way to use OUR external toolchain directly as the toolchain
for building, avoiding building new ones right?

> If you want to reuse the toolchain directly, we do have sstate and we
> need to fix issues it has. We know and acknowledge they exist, we just
> need to track down the problems and fix them. The more people who help
> with that the sooner it will get done.

This is one case where I think sstate is only the answer for those folks who
want to speed rebuilding.  But in the case where you've come up with a certified
set of binary components.. there needs to be a way to inject that in without the
weight of the sstate.  (Copy of all of the various stages of the install, build,
packaging..)

> If anything goes into the bugzilla it should be examples of where sstate
> is failing. Most sstate bugs do get resolved failrly quickly.

I think this is a different usecase then the sstate.  To me sstate allows the
use of a cache to speed up building.  This is a case where we want to use
something external (which happens to be built by the build system -- setting the
default format) to avoid performing any build operations.

--Mark

> Cheers,
> 
> Richard
> 



  reply	other threads:[~2011-10-14 16:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 14:44 Poky SDK as an external toolchain Gary Thomas
2011-10-14 16:04 ` Richard Purdie
2011-10-14 16:06 ` Mark Hatle
2011-10-14 16:15   ` Richard Purdie
2011-10-14 16:21     ` Mark Hatle [this message]
2011-10-14 22:28       ` Richard Purdie
2011-10-14 19:01     ` Gary Thomas
2011-10-14 19:58       ` Tom Rini
2011-10-14 22:24         ` Gary Thomas
2011-10-14 17:25   ` Khem Raj

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=4E98617D.5040501@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=poky@yoctoproject.org \
    --cc=richard.purdie@linuxfoundation.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 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.