* Can't share build trees?
@ 2011-05-03 11:35 Gary Thomas
2011-05-03 13:25 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-05-03 11:35 UTC (permalink / raw)
To: Poky Project
I have a system which has both PowerPC and ARM/OMAP components.
They share a common Poky/Yocto layer, so I thought I'd be able
to also share a build tree. So, I tried something like this:
% . /opt/poky/oe-init-build-env my_target
% MACHINE=MY_OMAP bitbake omap-image
% MACHINE=MY_PPC bitbake ppc-image
All seemed fine the first time through. The images were built
as expected and worked well.
Sadly, when I tried to build something else, e.g.
% MACHINE=MY_OMAP bitbake some-package
it set off rebuilding the entire cross tool chain :-(
Should this work? or should I just be aware it does not (and mostly
tell my customers not to expect it to work)?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't share build trees?
2011-05-03 11:35 Can't share build trees? Gary Thomas
@ 2011-05-03 13:25 ` Richard Purdie
2011-05-03 13:28 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2011-05-03 13:25 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky Project
On Tue, 2011-05-03 at 05:35 -0600, Gary Thomas wrote:
> I have a system which has both PowerPC and ARM/OMAP components.
> They share a common Poky/Yocto layer, so I thought I'd be able
> to also share a build tree. So, I tried something like this:
> % . /opt/poky/oe-init-build-env my_target
> % MACHINE=MY_OMAP bitbake omap-image
> % MACHINE=MY_PPC bitbake ppc-image
>
> All seemed fine the first time through. The images were built
> as expected and worked well.
>
> Sadly, when I tried to build something else, e.g.
> % MACHINE=MY_OMAP bitbake some-package
> it set off rebuilding the entire cross tool chain :-(
>
> Should this work? or should I just be aware it does not (and mostly
> tell my customers not to expect it to work)?
It should work and its the way I use Poky. Did you update the metadata
between these builds changing the toolchain version for example (e.g.
gcc 4.6.0 testing)?
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't share build trees?
2011-05-03 13:25 ` Richard Purdie
@ 2011-05-03 13:28 ` Gary Thomas
2011-05-03 13:31 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-05-03 13:28 UTC (permalink / raw)
To: Richard Purdie; +Cc: Poky Project
On 05/03/2011 07:25 AM, Richard Purdie wrote:
> On Tue, 2011-05-03 at 05:35 -0600, Gary Thomas wrote:
>> I have a system which has both PowerPC and ARM/OMAP components.
>> They share a common Poky/Yocto layer, so I thought I'd be able
>> to also share a build tree. So, I tried something like this:
>> % . /opt/poky/oe-init-build-env my_target
>> % MACHINE=MY_OMAP bitbake omap-image
>> % MACHINE=MY_PPC bitbake ppc-image
>>
>> All seemed fine the first time through. The images were built
>> as expected and worked well.
>>
>> Sadly, when I tried to build something else, e.g.
>> % MACHINE=MY_OMAP bitbake some-package
>> it set off rebuilding the entire cross tool chain :-(
>>
>> Should this work? or should I just be aware it does not (and mostly
>> tell my customers not to expect it to work)?
>
> It should work and its the way I use Poky. Did you update the metadata
> between these builds changing the toolchain version for example (e.g.
> gcc 4.6.0 testing)?
No changes, just changed the MACHINE
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't share build trees?
2011-05-03 13:28 ` Gary Thomas
@ 2011-05-03 13:31 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2011-05-03 13:31 UTC (permalink / raw)
To: Richard Purdie; +Cc: Poky Project
On 05/03/2011 07:28 AM, Gary Thomas wrote:
> On 05/03/2011 07:25 AM, Richard Purdie wrote:
>> On Tue, 2011-05-03 at 05:35 -0600, Gary Thomas wrote:
>>> I have a system which has both PowerPC and ARM/OMAP components.
>>> They share a common Poky/Yocto layer, so I thought I'd be able
>>> to also share a build tree. So, I tried something like this:
>>> % . /opt/poky/oe-init-build-env my_target
>>> % MACHINE=MY_OMAP bitbake omap-image
>>> % MACHINE=MY_PPC bitbake ppc-image
>>>
>>> All seemed fine the first time through. The images were built
>>> as expected and worked well.
>>>
>>> Sadly, when I tried to build something else, e.g.
>>> % MACHINE=MY_OMAP bitbake some-package
>>> it set off rebuilding the entire cross tool chain :-(
>>>
>>> Should this work? or should I just be aware it does not (and mostly
>>> tell my customers not to expect it to work)?
>>
>> It should work and its the way I use Poky. Did you update the metadata
>> between these builds changing the toolchain version for example (e.g.
>> gcc 4.6.0 testing)?
>
> No changes, just changed the MACHINE
I'll try it again, just to make sure I can duplicate it.
I'm happy to hear that this should work.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-03 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 11:35 Can't share build trees? Gary Thomas
2011-05-03 13:25 ` Richard Purdie
2011-05-03 13:28 ` Gary Thomas
2011-05-03 13:31 ` Gary Thomas
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.