[yocto] Undoing BSP's BBMASK?

Paul Eggleton paul.eggleton at linux.intel.com
Thu Feb 2 12:08:41 PST 2017


On Thursday, 2 February 2017 11:47:53 AM NZDT Andre McCurdy wrote:
> On Thu, Feb 2, 2017 at 4:15 AM, Takashi Matsuzawa <tmatsuzawa at xevo.com>
> wrote:
> > Say, BSP defines something like this.
> > 
> > BBMASK .= "|msta-xxxx/xxxx/yyyy.bb"
> > 
> > Then I want to cancel this within my local.conf.  Should putting below in
> > my local.conf works? (Or within my bistro/zzzz.conf?)
> > 
> > BBMASK_remove = "|msta-xxxx/xxxx/yyyy.bb"
> 
> No, it won't work (_remove only works on variables which contain items
> separated by whitespace).
> 
> As a workaround for Yocto 2.0 and earlier, you can over-ride the
> complete final value of BBMASK from your local.conf.
> 
> If you are using Yocto 2.1 or later then BBMASK does support multiple
> whitespace separated regular expressions. So then you can update the
> BSP layer to use:
> 
>   BBMASK += "msta-xxxx/xxxx/yyyy.bb"
> 
> and then:
> 
>   BBMASK_remove = "msta-xxxx/xxxx/yyyy.bb"
> 
> from local.conf should work.
> 
> For reference, see:
> 
>  
> http://cgit.openembedded.org/bitbake/commit/?id=2c778ad50aceaffb855baf5f4aa
> 0fed98c880870

Also, please mention to your BSP vendor that they are doing something they 
shouldn't be. BBMASK has no place inside layers that are supposed to be reused 
by others.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list