null and nothing can also be matched in MACHINE names, so to make sure people should use:
COMPATIBLE_MACHINE = "(^$)" On Thu, Sep 21, 2017 at 8:41 AM, Peter Kjellerstedt < peter.kjellerst...@axis.com> wrote: > > -----Original Message----- > > From: yocto-boun...@yoctoproject.org [mailto:yocto- > > boun...@yoctoproject.org] On Behalf Of Khem Raj > > Sent: den 21 september 2017 07:15 > > To: Takashi Matsuzawa <tmatsuz...@xevo.com>; yocto@yoctoproject.org > > Subject: Re: [yocto] "(-)"?? > > > > On 9/20/17 8:18 PM, Takashi Matsuzawa wrote: > > > Hello. > > > I am seeing some of the recipes contains lines like below. > > > > > >> COMPATIBLE_MACHINE = "(-)" > > > > > > Sorry being novice, but what is the intended effect of this line? > > > I can see submit comments that this is for blacklisting but I am not > > > sure how it works. It simply means a '-' letter? > > > > COMAPTIBLE_MACHINE uses regexp syntax > > Which actually makes that a pretty weird COMPATIBLE_MACHINE, > especially if it is intended for blacklisting. Given that it would > match any machine with a dash in it, it would match, e.g., qemux86-64 > but not qemux86. It would also happen to match about half of our > machines which happen to have dashes in their names. > > A more appropriate way to blacklist machines using COMPATIBLE_MACHINE > would be something like: > > COMPATIBLE_MACHINE = "null" > > or: > > COMPATIBLE_MACHINE = "nothing" > > I found two occurrences of "(-)" being used as COMPATIBLE_MACHINE in > meta-openembedded for Morty and Pyro, but they have been removed for > Rocko. If you see them anywhere else, consider changing them. > > //Peter > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto