From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4.mail-out.ovh.net (4.mo4.mail-out.ovh.net [178.32.98.131]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 37C4AE006CC for ; Sun, 13 Jan 2013 09:41:14 -0800 (PST) Received: from mail408.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with SMTP id D50211050A06 for ; Sun, 13 Jan 2013 18:50:39 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 13 Jan 2013 19:41:16 +0200 Received: from tal33-3-82-233-81-124.fbx.proxad.net (HELO e6520eb) (eric%eukrea.com@82.233.81.124) by ns0.ovh.net with SMTP; 13 Jan 2013 19:41:15 +0200 Date: Sun, 13 Jan 2013 18:41:10 +0100 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Andrei Gherzan X-Ovh-Mailout: 178.32.228.4 (mo4.mail-out.ovh.net) Message-ID: <20130113184110.4b31afd5@e6520eb> In-Reply-To: <1358094522-6543-2-git-send-email-andrei.gherzan@windriver.com> References: <1358094522-6543-1-git-send-email-andrei.gherzan@windriver.com> <1358094522-6543-2-git-send-email-andrei.gherzan@windriver.com> Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.13; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-Ovh-Tracer-Id: 17418515984879562232 X-Ovh-Remote: 82.233.81.124 (tal33-3-82-233-81-124.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehledrheefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehledrheefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: meta-freescale@yoctoproject.org Subject: Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 17:41:14 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andrei, Le Sun, 13 Jan 2013 18:28:40 +0200, Andrei Gherzan a =C3=A9crit : > * Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core inclu= des > configs for dri and glx in the same PACKAGECONFIG[glx]. > * There is no libgl in imx6 graphic libraries so don't compile xserver wi= th glx. > * xserver driver for imx6 needs dri.h so compile xserver with dri for the= se > machines >=20 > Signed-off-by: Andrei Gherzan > --- > .../xorg-xserver/xserver-xorg_1.13.1.bbappend | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bba= ppend >=20 > diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend b= /recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend > new file mode 100644 > index 0000000..c8b4a44 > --- /dev/null > +++ b/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend > @@ -0,0 +1,15 @@ > +PRINC :=3D "${@int(PRINC) + 1}" > + > +# There are no libgl binaries for imx6 - don't compile with glx > +PACKAGECONFIG_imx6qsabrelite :=3D "${@oe_filter_out('glx', '${PACKAGECON= FIG}', d)}" > +PACKAGECONFIG_imx6qsabreauto :=3D "${@oe_filter_out('glx', '${PACKAGECON= FIG}', d)}" > +# dri is needed for xf86-video-imxfb-vivante - xserver driver > +PACKAGECONFIG_append_imx6qsabrelite =3D " dri" > +PACKAGECONFIG_append_imx6qsabreauto =3D " dri" > + > +PACKAGECONFIG[dri] =3D "--enable-dri, \ > + --disable-dri, \ > + xf86driproto dri2proto" > +PACKAGECONFIG[glx] =3D "--enable-glx --enable-glx-tls,\ > + --disable-glx,\ > + virtual/libgl" in openembedded-core, dri (and glx) are enabled only if opengl is a DISTRO_FEATURE so the choice to enable these feature is done at distro level and not at machine level. So to be consistent with that, you could split dri/glx but I think dri should be enabled only when the distro has enabled opengl. Note that we have the same problem in the qt4 recipes : in oe-core, opengl is enabled ony if DISTRO_FEATURE has opengl, in meta-fsl-arm opengl (and openvg) are enabled by default. I'm not sure a BSP should force these settings if the distro doesn't want them. Eric