* SDK meta-toolchain
@ 2013-05-07 16:09 Kyle Farnsworth
2013-05-07 16:36 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Kyle Farnsworth @ 2013-05-07 16:09 UTC (permalink / raw)
To: openembedded-core
I'm a bit confused about what exactly meta-toolchain is building? It
seems to be bitbaking gcc and creating a toolchain with the prefix
x86_64-oesdk-linux- (default SDK_PREFIX) but I'm not sure what it is.
Is it a cross-compile for my target MACHINE or a compiler for my build
machine? Based on the prefix name I am assuming the latter.
Thanks for any help.
Kyle
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 16:09 SDK meta-toolchain Kyle Farnsworth
@ 2013-05-07 16:36 ` Mark Hatle
2013-05-07 16:49 ` Trevor Woerner
2013-05-07 17:35 ` Kyle Farnsworth
0 siblings, 2 replies; 10+ messages in thread
From: Mark Hatle @ 2013-05-07 16:36 UTC (permalink / raw)
To: openembedded-core
On 5/7/13 11:09 AM, Kyle Farnsworth wrote:
> I'm a bit confused about what exactly meta-toolchain is building? It
> seems to be bitbaking gcc and creating a toolchain with the prefix
> x86_64-oesdk-linux- (default SDK_PREFIX) but I'm not sure what it is.
> Is it a cross-compile for my target MACHINE or a compiler for my build
> machine? Based on the prefix name I am assuming the latter.
There are two ways to generate an SDK.
* targeted SDK -- This is a meta-toolchain* recipe that lists -exactly- what is
going to be in the SDK. This is great if you want to limit your SDK to specific
libraries for your application developers.
* implied / image based SDK -- This type of SDK bases off of what is in the
image to generate an SDK that contains all of the libraries that are runnable
inside of the image. This is a very simple way to generate an SDK for
application developers that -will- match the run-time image.
Both of the above have their place, depending on the level of command and
control people want.
The basic meta-toolchain is just the cross compile toolchain and I believe the
libc. meta-toolchain-gmae is an example Gnome Mobile Application Environment.
--Mark
> Thanks for any help.
> Kyle
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 16:36 ` Mark Hatle
@ 2013-05-07 16:49 ` Trevor Woerner
2013-05-07 17:00 ` Mark Hatle
2013-05-07 17:35 ` Kyle Farnsworth
1 sibling, 1 reply; 10+ messages in thread
From: Trevor Woerner @ 2013-05-07 16:49 UTC (permalink / raw)
To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer
On Tue, May 7, 2013 at 12:36 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> There are two ways to generate an SDK.
>
> * targeted SDK -- This is a meta-toolchain* recipe that lists -exactly- what
> is going to be in the SDK. This is great if you want to limit your SDK to
> specific libraries for your application developers.
Is this the one created using:
$ bitbake meta-toolchain
?
> * implied / image based SDK -- This type of SDK bases off of what is in the
> image to generate an SDK that contains all of the libraries that are
> runnable inside of the image. This is a very simple way to generate an SDK
> for application developers that -will- match the run-time image.
Is this the one created by:
$ bitbake -c populate_sdk <image>
?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 16:49 ` Trevor Woerner
@ 2013-05-07 17:00 ` Mark Hatle
0 siblings, 0 replies; 10+ messages in thread
From: Mark Hatle @ 2013-05-07 17:00 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Patches and discussions about the oe-core layer
On 5/7/13 11:49 AM, Trevor Woerner wrote:
> On Tue, May 7, 2013 at 12:36 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
>> There are two ways to generate an SDK.
>>
>> * targeted SDK -- This is a meta-toolchain* recipe that lists -exactly- what
>> is going to be in the SDK. This is great if you want to limit your SDK to
>> specific libraries for your application developers.
>
> Is this the one created using:
>
> $ bitbake meta-toolchain
>
> ?
>
>> * implied / image based SDK -- This type of SDK bases off of what is in the
>> image to generate an SDK that contains all of the libraries that are
>> runnable inside of the image. This is a very simple way to generate an SDK
>> for application developers that -will- match the run-time image.
>
> Is this the one created by:
>
> $ bitbake -c populate_sdk <image>
>
> ?
>
Yes to both questions.
--Mark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 16:36 ` Mark Hatle
2013-05-07 16:49 ` Trevor Woerner
@ 2013-05-07 17:35 ` Kyle Farnsworth
2013-05-07 17:41 ` Mark Hatle
1 sibling, 1 reply; 10+ messages in thread
From: Kyle Farnsworth @ 2013-05-07 17:35 UTC (permalink / raw)
To: openembedded-core
On 05/07/2013 11:36 AM, Mark Hatle wrote:
> On 5/7/13 11:09 AM, Kyle Farnsworth wrote:
>> I'm a bit confused about what exactly meta-toolchain is building? It
>> seems to be bitbaking gcc and creating a toolchain with the prefix
>> x86_64-oesdk-linux- (default SDK_PREFIX) but I'm not sure what it is.
>> Is it a cross-compile for my target MACHINE or a compiler for my build
>> machine? Based on the prefix name I am assuming the latter.
>
> There are two ways to generate an SDK.
>
> * targeted SDK -- This is a meta-toolchain* recipe that lists
> -exactly- what is going to be in the SDK. This is great if you want
> to limit your SDK to specific libraries for your application developers.
>
> * implied / image based SDK -- This type of SDK bases off of what is
> in the image to generate an SDK that contains all of the libraries
> that are runnable inside of the image. This is a very simple way to
> generate an SDK for application developers that -will- match the
> run-time image.
>
> Both of the above have their place, depending on the level of command
> and control people want.
>
> The basic meta-toolchain is just the cross compile toolchain and I
> believe the libc. meta-toolchain-gmae is an example Gnome Mobile
> Application Environment.
Thanks. This a good info. I need to do the targeted SDK. But why is it
re-creating the cross-compile toolchain with the new prefix and a libc?
I also have cases where I want to deliver an external toolchain within
the SDK.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 17:35 ` Kyle Farnsworth
@ 2013-05-07 17:41 ` Mark Hatle
2013-05-07 18:21 ` Trevor Woerner
0 siblings, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2013-05-07 17:41 UTC (permalink / raw)
To: openembedded-core
On 5/7/13 12:35 PM, Kyle Farnsworth wrote:
> On 05/07/2013 11:36 AM, Mark Hatle wrote:
>> On 5/7/13 11:09 AM, Kyle Farnsworth wrote:
>>> I'm a bit confused about what exactly meta-toolchain is building? It
>>> seems to be bitbaking gcc and creating a toolchain with the prefix
>>> x86_64-oesdk-linux- (default SDK_PREFIX) but I'm not sure what it is.
>>> Is it a cross-compile for my target MACHINE or a compiler for my build
>>> machine? Based on the prefix name I am assuming the latter.
>>
>> There are two ways to generate an SDK.
>>
>> * targeted SDK -- This is a meta-toolchain* recipe that lists
>> -exactly- what is going to be in the SDK. This is great if you want
>> to limit your SDK to specific libraries for your application developers.
>>
>> * implied / image based SDK -- This type of SDK bases off of what is
>> in the image to generate an SDK that contains all of the libraries
>> that are runnable inside of the image. This is a very simple way to
>> generate an SDK for application developers that -will- match the
>> run-time image.
>>
>> Both of the above have their place, depending on the level of command
>> and control people want.
>>
>> The basic meta-toolchain is just the cross compile toolchain and I
>> believe the libc. meta-toolchain-gmae is an example Gnome Mobile
>> Application Environment.
> Thanks. This a good info. I need to do the targeted SDK. But why is it
> re-creating the cross-compile toolchain with the new prefix and a libc?
> I also have cases where I want to deliver an external toolchain within
> the SDK.
There are three types of packages in oe-core.
- Target -- runs on the target
- native -- runs on the host (variant called 'cross')
- nativesdk -- runs on the 'sdkhost' (variant called 'crosssdk')
The SDK allows you to build SDK software for a host that is different then your
build host. Also the nativesdk is 'glibc' independent, while the native version
is specific to your host. This allows the SDK to be shared with other developers.
--Mark
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 17:41 ` Mark Hatle
@ 2013-05-07 18:21 ` Trevor Woerner
2013-05-07 18:35 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Trevor Woerner @ 2013-05-07 18:21 UTC (permalink / raw)
To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer
On Tue, May 7, 2013 at 1:41 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> - nativesdk -- runs on the 'sdkhost' (variant called 'crosssdk')
Is this related to the SDKMACHINE setting?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 18:21 ` Trevor Woerner
@ 2013-05-07 18:35 ` Mark Hatle
2013-05-07 19:33 ` Kyle Farnsworth
0 siblings, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2013-05-07 18:35 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Patches and discussions about the oe-core layer
On 5/7/13 1:21 PM, Trevor Woerner wrote:
> On Tue, May 7, 2013 at 1:41 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
>> - nativesdk -- runs on the 'sdkhost' (variant called 'crosssdk')
>
> Is this related to the SDKMACHINE setting?
>
Yes that's the variable I was thinking of. You can build an SDK for 'i586' on
your x86_64 host for instance.
--Mark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 18:35 ` Mark Hatle
@ 2013-05-07 19:33 ` Kyle Farnsworth
2013-05-07 20:08 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Kyle Farnsworth @ 2013-05-07 19:33 UTC (permalink / raw)
To: openembedded-core
On 05/07/2013 01:35 PM, Mark Hatle wrote:
>>> - nativesdk -- runs on the 'sdkhost' (variant called 'crosssdk')
>>
>> Is this related to the SDKMACHINE setting?
>>
>
> Yes that's the variable I was thinking of. You can build an SDK for
> 'i586' on your x86_64 host for instance.
>
So in my case, since I did not specify SDKMACHINE, it is creating a
toolchain that compiles source into x86_64 executables so it can build
the host tools (i.e automake) on the targeted SDK machine. And it has
nothing to do with the targeted device cross-compile toolchain?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: SDK meta-toolchain
2013-05-07 19:33 ` Kyle Farnsworth
@ 2013-05-07 20:08 ` Mark Hatle
0 siblings, 0 replies; 10+ messages in thread
From: Mark Hatle @ 2013-05-07 20:08 UTC (permalink / raw)
To: openembedded-core
On 5/7/13 2:33 PM, Kyle Farnsworth wrote:
> On 05/07/2013 01:35 PM, Mark Hatle wrote:
>>>> - nativesdk -- runs on the 'sdkhost' (variant called 'crosssdk')
>>>
>>> Is this related to the SDKMACHINE setting?
>>>
>>
>> Yes that's the variable I was thinking of. You can build an SDK for
>> 'i586' on your x86_64 host for instance.
>>
>
> So in my case, since I did not specify SDKMACHINE, it is creating a
> toolchain that compiles source into x86_64 executables so it can build
> the host tools (i.e automake) on the targeted SDK machine. And it has
> nothing to do with the targeted device cross-compile toolchain?
You will get a 'cross' compiler from host -> SDK, and another SDK -> target.
The SDK -> target is the one that gets installed as part of the SDK.
--Mark
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-05-07 20:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 16:09 SDK meta-toolchain Kyle Farnsworth
2013-05-07 16:36 ` Mark Hatle
2013-05-07 16:49 ` Trevor Woerner
2013-05-07 17:00 ` Mark Hatle
2013-05-07 17:35 ` Kyle Farnsworth
2013-05-07 17:41 ` Mark Hatle
2013-05-07 18:21 ` Trevor Woerner
2013-05-07 18:35 ` Mark Hatle
2013-05-07 19:33 ` Kyle Farnsworth
2013-05-07 20:08 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox