All of lore.kernel.org
 help / color / mirror / Atom feed
* COMPATIBLE_MACHINE
@ 2012-04-20 13:20 Gary Thomas
  2012-04-20 14:03 ` COMPATIBLE_MACHINE Phil Blundell
  2012-04-20 14:04 ` COMPATIBLE_MACHINE Chris Larson
  0 siblings, 2 replies; 5+ messages in thread
From: Gary Thomas @ 2012-04-20 13:20 UTC (permalink / raw)
  To: openembedded-devel

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.

Thanks

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: COMPATIBLE_MACHINE
  2012-04-20 13:20 COMPATIBLE_MACHINE Gary Thomas
@ 2012-04-20 14:03 ` Phil Blundell
  2012-04-20 14:04 ` COMPATIBLE_MACHINE Chris Larson
  1 sibling, 0 replies; 5+ messages in thread
From: Phil Blundell @ 2012-04-20 14:03 UTC (permalink / raw)
  To: openembedded-devel

On Fri, 2012-04-20 at 07:20 -0600, Gary Thomas 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.

COMPATIBLE_MACHINE .= "|machine4"

p.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: COMPATIBLE_MACHINE
  2012-04-20 13:20 COMPATIBLE_MACHINE Gary Thomas
  2012-04-20 14:03 ` COMPATIBLE_MACHINE Phil Blundell
@ 2012-04-20 14:04 ` Chris Larson
  2012-04-20 14:15   ` COMPATIBLE_MACHINE Gary Thomas
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Larson @ 2012-04-20 14:04 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Apr 20, 2012 at 6:20 AM, Gary Thomas <gary@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.
-- 
Christopher Larson



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: COMPATIBLE_MACHINE
  2012-04-20 14:04 ` COMPATIBLE_MACHINE Chris Larson
@ 2012-04-20 14:15   ` Gary Thomas
  2012-04-20 14:18     ` COMPATIBLE_MACHINE Chris Larson
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2012-04-20 14:15 UTC (permalink / raw)
  To: openembedded-devel

On 2012-04-20 08:04, Chris Larson wrote:
> On Fri, Apr 20, 2012 at 6:20 AM, Gary Thomas<gary@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
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: COMPATIBLE_MACHINE
  2012-04-20 14:15   ` COMPATIBLE_MACHINE Gary Thomas
@ 2012-04-20 14:18     ` Chris Larson
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Larson @ 2012-04-20 14:18 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Apr 20, 2012 at 7:15 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-04-20 08:04, Chris Larson wrote:
>>
>> On Fri, Apr 20, 2012 at 6:20 AM, Gary Thomas<gary@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?

They are. No idea why people use the grouping.
-- 
Christopher Larson



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-20 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 13:20 COMPATIBLE_MACHINE Gary Thomas
2012-04-20 14:03 ` COMPATIBLE_MACHINE Phil Blundell
2012-04-20 14:04 ` COMPATIBLE_MACHINE Chris Larson
2012-04-20 14:15   ` COMPATIBLE_MACHINE Gary Thomas
2012-04-20 14:18     ` COMPATIBLE_MACHINE Chris Larson

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.