All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: Andrei Gherzan <andrei.gherzan@windriver.com>
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
Date: Sun, 13 Jan 2013 18:41:10 +0100	[thread overview]
Message-ID: <20130113184110.4b31afd5@e6520eb> (raw)
In-Reply-To: <1358094522-6543-2-git-send-email-andrei.gherzan@windriver.com>

Hi Andrei,

Le Sun, 13 Jan 2013 18:28:40 +0200,
Andrei Gherzan <andrei.gherzan@windriver.com> a écrit :

> * Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core includes
> configs for dri and glx in the same PACKAGECONFIG[glx].
> * There is no libgl in imx6 graphic libraries so don't compile xserver with glx.
> * xserver driver for imx6 needs dri.h so compile xserver with dri for these
> machines
> 
> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
> ---
>  .../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.bbappend
> 
> 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 := "${@int(PRINC) + 1}"
> +
> +# There are no libgl binaries for imx6 - don't compile with glx
> +PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
> +PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
> +# dri is needed for xf86-video-imxfb-vivante - xserver driver
> +PACKAGECONFIG_append_imx6qsabrelite = " dri"
> +PACKAGECONFIG_append_imx6qsabreauto = " dri"
> +
> +PACKAGECONFIG[dri] = "--enable-dri, \
> +                      --disable-dri, \
> +                      xf86driproto dri2proto"
> +PACKAGECONFIG[glx] = "--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


  reply	other threads:[~2013-01-13 17:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 16:28 [meta-fsl-arm][PATCH 1/4] xf86-video-imxfb-vivante: Depend on virtual/xserver Andrei Gherzan
2013-01-13 16:28 ` [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6 Andrei Gherzan
2013-01-13 17:41   ` Eric Bénard [this message]
2013-01-13 19:23     ` Andrei Gherzan
2013-01-13 19:48       ` Eric Bénard
2013-01-13 21:45         ` Andrei Gherzan
2013-01-14 11:53   ` Otavio Salvador
2013-01-14 12:22     ` Andrei Gherzan
2013-01-13 16:28 ` [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite Andrei Gherzan
2013-01-14 11:55   ` Otavio Salvador
2013-01-14 12:22     ` Andrei Gherzan
2013-01-14 12:25       ` Otavio Salvador
2013-01-14 13:01         ` Andrei Gherzan
2013-01-14 13:22           ` Eric Bénard
2013-01-24 17:50             ` Andrei Gherzan
2013-01-24 18:01               ` Eric Bénard
2013-01-24 18:05                 ` Otavio Salvador
2013-01-24 18:23                   ` Eric Bénard
2013-01-24 18:26                     ` Andrei Gherzan
2013-01-24 18:38                       ` Eric Bénard
2013-01-13 16:28 ` [meta-fsl-arm][PATCH 4/4] gpu-viv-bin-mx6q: Add dri.pc Andrei Gherzan
2013-01-14 11:58   ` Otavio Salvador
2013-01-13 17:04 ` [meta-fsl-arm][PATCH 1/4] xf86-video-imxfb-vivante: Depend on virtual/xserver Eric Bénard
2013-01-14 11:49   ` Otavio Salvador
2013-01-14 13:21     ` Eric Bénard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130113184110.4b31afd5@e6520eb \
    --to=eric@eukrea.com \
    --cc=andrei.gherzan@windriver.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.