[oe] COMPATIBLE_MACHINE

Gary Thomas gary at mlbassoc.com
Fri Apr 20 14:15:50 UTC 2012


On 2012-04-20 08:04, Chris Larson wrote:
> On Fri, Apr 20, 2012 at 6:20 AM, Gary Thomas<gary at mlbassoc.com>  wrote:
>> I'm writing a .bbappend for a recipe which contains a COMPATIBLE_MACHINE
>> pattern like this:
>>   COMPATIBLE_MACHINE = "(machine1|machine2|machine3)"
>>
>> Is there a way my .bbappend file can add to this pattern?  I don't want
>> to disturb what's there, just add my machine as well.
>
> It's just a standard regular expression.
>
> COMPATIBLE_MACHINE = "(machine1|machine2|machine3)"
> COMPATIBLE_MACHINE .= "|machine4"
>
> Will result in a value of "(machine1|machine2|machine3)|machine4",
> which is still a perfectly valid pattern, as far as I can tell.

Yes, this does seem to work.  Any clues why most uses of COMPATIBLE_MACHINE
use the regex "(x|y|z)" instead of just "x|y|z"?  Aren't they the same?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------




More information about the Openembedded-devel mailing list