On Fri, Apr 20, 2012 at 7:15 AM, Gary Thomas <[email protected]> wrote: > On 2012-04-20 08:04, Chris Larson wrote: >> >> On Fri, Apr 20, 2012 at 6:20 AM, Gary Thomas<[email protected]> 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 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
