On Wed, Jul 07, 2010 at 07:57:15PM +0100, Phil Blundell wrote: > On Wed, 2010-07-07 at 20:49 +0200, Frans Meulenbroeks wrote: > > 2010/7/7 Frans Meulenbroeks <[email protected]>: > > > added INCOMPATIBLE_MACHINE > > > we have COMPATIBLE_MACHINE but that does not allow to say that > > > a package is supported by all except a certain machine. > > > a regexp like "(?!arch)" > > > This mechanism can be used to exclude certain machines. > > > Idea is that in binutils and gcc you can use this to specify that > > > a certain version does not support a certain machine > > > > actually what I wanted to say in the commit message is that a regexp > > like (?!arch) does not work. > > \b(?!arch) or ^(?!arch) didn't work either and consulting #python did > > This might just be an accident of wording, but you do realise that > COMPATIBLE_MACHINE is tested against ${MACHINE} (i.e. not any of the > ${xx_ARCH} variables), right? If you want to test arches then you want > ${COMPATIBLE_ARCH}. > > I just did a quick test with (?!foo) in C_M and it seemed to work ok for > me. Specifically: > > MACHINE = goodmach > COMPATIBLE_MACHINE = "(?!badmach)" > > works, whereas > > MACHINE = badmach > COMPATIBLE_MACHINE = "(?!badmach)" > > is rejected. What exactly goes wrong for you?
Just to confirm that the regular expression above does work, when tested against the correct variable, as I've been using it for quite a while in my recipes, e.g.: http://arago-project.org/git/?p=arago.git;a=blob;f=recipes/images/arago-qte-image.bb;hb=HEAD -- Denys _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
