[OE-core] DISTRO_FEATURES and world builds.
Randy MacLeod
randy.macleod at windriver.com
Fri Oct 4 20:56:01 UTC 2013
On 13-10-04 06:46 AM, Richard Purdie wrote:
> On Thu, 2013-10-03 at 22:15 -0400, Randy MacLeod wrote:
>
>> If I drop x11 from the DF list things are even worse.
>>
>> I tried to sprinkle these recipes with:
>> REQUIRED_DISTRO_FEATURES = "opengl"
>> but just as I thought, that didn't work either.
>
> Did you also inherit the class that implements that?
Oops, thanks.
I got this to at least start compiling but now
I think it should be a oe-core-1.6 feature. I've opened:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5321
Details below.
// Randy
So that's a much cleaner change, eg:
meta/recipes-graphics/mesa/libglu_9.0.0.bb
...
-inherit autotools pkgconfig
+inherit autotools pkgconfig distro_features_check
+REQUIRED_DISTRO_FEATURES = "opengl"
and adding additional features is easy too.
I stuck with this syntax and fixed all the recipes when
they failed at initial parse time. That left a few packagegroups
to be fixed and I ended up with:
recipes-core/.../packagegroup-core-tools-testapps.bb | 2
recipes-core/.../packagegroup-self-hosted.bb | 14 ---
recipes-extended/.../packagegroup-core-lsb.bb | 41 ----------
recipes-graphics/.../packagegroup-core-clutter.bb | 3
The summary of this change was some simple changes:
meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb
...
-inherit packagegroup
+inherit packagegroup distro_features_check
+REQUIRED_DISTRO_FEATURES = "opengl"
and some refactoring of packagegroups to ensure that the
graphical part of lsb and self-hosted could be easily disabled.
--
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350
More information about the Openembedded-core
mailing list