All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: COMPATIBLE_MACHINE
Date: Fri, 20 Apr 2012 08:15:50 -0600	[thread overview]
Message-ID: <4F916F96.8050901@mlbassoc.com> (raw)
In-Reply-To: <CABcZAN=ATv+2NUzf1nNq6w1O4Kg+trD1S3kuKM0Eq4=yq4PL2Q@mail.gmail.com>

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
------------------------------------------------------------



  reply	other threads:[~2012-04-20 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Gary Thomas [this message]
2012-04-20 14:18     ` COMPATIBLE_MACHINE Chris Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F916F96.8050901@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.