[poky] Can't share build trees?

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 3 06:25:08 PDT 2011


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





More information about the poky mailing list