From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: "'yocto@yoctoproject.org'" <yocto@yoctoproject.org>
Subject: Re: examples / docs on utilizing an external toolchain
Date: Fri, 05 Aug 2011 09:25:01 +0100 [thread overview]
Message-ID: <1312532701.14274.65.camel@rex> (raw)
In-Reply-To: <F2101BA1-133A-4FBB-9CB8-A4A85413233C@kernel.crashing.org>
On Thu, 2011-08-04 at 19:05 -0500, Kumar Gala wrote:
> >>>>>> http://bugzilla.pokylinux.org/show_bug.cgi?id=1323
> >>>>>>
> >>>>>> My question still stands even w/o it being in formal docs.
> >>>>>
> >>>>> FWIW, POKYMODE was replaced by TCMODE as part of the OE-Core changes.
> >>>>> I'd be interested to know where we've missed the references to it and
> >>>>> get to get those references fixed.
> >>>>
> >>>> Ok, but how does one use TCMODE? :)
> >>>>
> >>>> is there an example around anywhere?
> >>>
> >>> I'll explain on the condition that someone actually documents this ;-).
> >>>
> >>> TCMODE determines which of the files in
> >>> meta/conf/distro/include/tcmode-* is used. It defaults to "default" and
> >>> our default toolchain definition is in tcmode-default.inc.
> >>>
> >>> There is another example there which is "external-csl2008q3". As you can
> >>> see from the tcmode-external-csl2008q3 file, it sets up the system to
> >>> use an external toolchain instead.
> >>>
> >>> So you can define one of these files in your layer and then the system
> >>> can select alternative toolchain configurations.
> >>>
> >>> Does that help? :)
> >>>
> >>> There is a similar TCLIBC variable which controls which libc is used
> >>> (eglibc or uclibc).
> >>
> >> Yes that helps. So it looks as if today there is not a means to point
> >> to SDK prebuilt toolchain via this means.
> >
> > We have supported this in the past but it got messy and I'd really
> > prefer people to use sstate for this.
> >
> > You obviously can use the SDK toolchain as a prebuilt external toolchain
> > though since its no different from any other external toolchain.
>
>
> What got mess about it? Seems like a poky built sdk toolchain should work as an external toolchain w/o too much issue.
When you have an external toolchain you have to consider things like
packaging up the libc locales and generating the pkgdata information
about shared libraries amongst other things. We therefore went down the
route of shipping that information with the toolchain rather than
generating it each time along with the package files (ipk/rpm/deb). It
turns out to get quite ugly trying to track all the pieces bitbake
generates and deal with all the corner cases (like it packaged with ipk
but you want rpm).
sstate is designed to be able to handle all those pieces.
If you have an external toolchain and don't mind regenerating all that
stuff, its fine.
Cheers,
Richard
next prev parent reply other threads:[~2011-08-05 8:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 3:37 examples / docs on utilizing an external toolchain Kumar Gala
2011-07-29 4:39 ` Stewart, David C
2011-08-02 16:09 ` Kumar Gala
2011-08-02 16:29 ` Rifenbark, Scott M
2011-08-03 14:04 ` Kumar Gala
2011-08-03 14:22 ` Richard Purdie
2011-08-03 14:29 ` Paul Eggleton
2011-08-03 14:49 ` Kumar Gala
2011-08-03 15:01 ` Flanagan, Elizabeth
2011-08-03 15:55 ` Rifenbark, Scott M
2011-08-03 14:50 ` Kumar Gala
2011-08-03 15:12 ` Richard Purdie
2011-08-04 4:59 ` Kumar Gala
2011-08-04 14:49 ` Richard Purdie
2011-08-04 14:58 ` Gary Thomas
2011-08-04 15:06 ` Khem Raj
2011-08-04 15:29 ` Chris Larson
2011-08-04 15:34 ` Gary Thomas
2011-08-04 16:12 ` McClintock Matthew-B29882
2011-08-04 20:28 ` Gary Thomas
2011-08-05 0:05 ` Kumar Gala
2011-08-05 8:25 ` Richard Purdie [this message]
2011-08-04 14:50 ` Richard Purdie
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=1312532701.14274.65.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=galak@kernel.crashing.org \
--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.