[meta-intel] [PATCH 0/4] misc meta-intel Fixes

Kamble, Nitin A nitin.a.kamble at intel.com
Wed Aug 14 13:17:43 PDT 2013



> -----Original Message-----
> From: Burton, Ross [mailto:ross.burton at intel.com]
> Sent: Wednesday, August 14, 2013 1:06 PM
> To: Kamble, Nitin A
> Cc: Zanussi, Tom; Hart, Darren; meta-intel at yoctoproject.org
> Subject: Re: [meta-intel] [PATCH 0/4] misc meta-intel Fixes
> 
> On 14 August 2013 20:46,  <nitin.a.kamble at intel.com> wrote:
> > Recently an issue was observed and fixed on meta-minnow, which was
> > breaking builds when DISTRO is not poky. The same issue also exist on
> > the crownbay, emenlow, fri2 & sys940x BSPs.
> >   Here are the commits to fix the issue for these BSPs.
> 
> Not sure I like changing DISTRO_FEATURES from within a BSP, that's a
> layering violation in my opinion.
> 
> There was a patch a week or so ago to add a distro_features_check.bbclass,
> which let you do this in recipes:
> 
>   inherit distro_features_check
>   REQUIRED_DISTRO_FEATURES = "x11"
> 
> There was some debate on the patch but it's fairly trivial to do this sort of
> check in an anonymous Python function without the class, systemd does this
> to ensure it only gets built in a distribution with the systemd feature.
> 
> Ross

Hi Ross,
  Good to see similar fix for systemd, and thanks for bringing in the reference.

  EMGD being the required driver for hardware, this case is different compared to systemd case.
In this case the feature is required, and not optional. The BSP is broken and can not even build
without the DISTRO_FEATURE. So IMO making sure the feature is enabled is better that just
checking weather the feature is enabled or not.
  As the oecore layer is one of the needed layer for these BSPs, I do not see it as a layering violation.
Most of MACHINE_FEATURES are also defined in the oecore layer.

Thanks,
Nitin



More information about the meta-intel mailing list