All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: how does one use a prebuilt toolchain from the toolchain/ directory?
Date: Tue, 03 Jul 2012 04:08:50 -0600	[thread overview]
Message-ID: <4FF2C4B2.7000200@mlbassoc.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1207030547210.29271@oneiric>

On 2012-07-03 03:51, Robert P. J. Day wrote:
> On Mon, 2 Jul 2012, Zhang, Jessica wrote:
>
>> On Tue, Jun 26, 2012 at 4:51 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
> ... snip ...
>
>>> 4) once i install a toolchain, how do i use it?  say i install the arm
>>> toolchain, and want to build a beagleboard image.  at what point do i
>>> source the arm toolchain environment setup file?  is that all it
>>> takes?  will the bitbake build process automatically recognize what
>>> i've done and use that toolchain?
>>
>> [JZ] Please note this toolchain is meant to be used by application
>> developers not image builders.  This toolchain is meant for cross
>> development that allows you to develop target application on your
>> host machines.  Once you source the environment-setup script, it'll
>> setup your path correctly that makes it able to find all the cross
>> development tools, e.g.
>> /opt/poky/1.2/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc
>> will be used for compiling your programs.
>
>    ah, i wasn't aware that the prebuilt toolchains were meant primarily
> for *app* development, not *image* development.  i already knew how to
> use them for app development, that's fairly straightforward.
>
>    which brings me back to my original curiosity -- how can i use the
> same toolchain across a number of different *image* builds?  under
> what circumstances does that make sense, and how would i do that?
>
>    say i want to configure and build images for a number of
> beagleboards, and a beaglebone, and a pandaboard, etc., all of which
> require an ARM toolchain.  if these builds can share the same
> toolchain, how can i build it once, then not have to build it over and
> over for the remaining builds?

Use SSTATE_MIRRORS to point at the sstate-cache of the first build.
This will let bitbake reuse as much as possible, including the toolchain.

I do exactly as you are proposing above and my builds for the "secondary"
targets can be as little as a couple of minutes (from scratch).

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------




  reply	other threads:[~2012-07-03 10:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26  8:51 how does one use a prebuilt toolchain from the toolchain/ directory? Robert P. J. Day
2012-07-02 20:01 ` Manuel Bessler
2012-07-02 20:18   ` Zhang, Jessica
2012-07-03  9:51     ` Robert P. J. Day
2012-07-03 10:08       ` Gary Thomas [this message]
2012-07-03 10:20         ` Robert P. J. Day
2012-07-03 10:23         ` Robert P. J. Day
2012-10-10 15:22 Patrick Turley

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=4FF2C4B2.7000200@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=yocto@yoctoproject.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.