[OE-core] [PATCH] Fix COMPATIBLE_MACHINE for -native recipe variants.

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jan 15 11:05:28 UTC 2018


On Mon, 2018-01-15 at 09:01 +0100, Paulo De Sousa Neves (Nokia -
PL/Wroclaw) wrote:
> Hello Richard,
> 
> My problem is that I have the PV expansion happens on the recipe, at 
> parsing time regardless of it being on the dependency chain or not.
> On 
> the other hand, the PV is not expanded if the COMPATIBLE_MACHINE is 
> honored. This makes my build significantly faster also, as it avoids 
> other expansions altogether.
> 
> Coming back to our issue, this means that with the
> COMPATIBLE_MACHINE 
> being honored, my recipes work for all cases except when they are in 
> native mode.

Native recipes should not be machine dependent so using
COMPATIBLE_MACHINE for this isn't an option.

The good news is its trivial to add your own anonymous python fragment
which does the same thing. Your layer will not pass the layer
compatibility tests should you do that though.

Cheers,

Richard



More information about the Openembedded-core mailing list