From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [oe-core 14/20] mesa-dri: introduce MACHINE_DRI_MODULES
Date: Thu, 13 Oct 2011 14:56:24 +0100 [thread overview]
Message-ID: <1318514192.23801.229.camel@ted> (raw)
In-Reply-To: <20111013133221.GC28525@jama.jama.net>
On Thu, 2011-10-13 at 15:32 +0200, Martin Jansa wrote:
> On Thu, Oct 13, 2011 at 02:23:54PM +0100, Richard Purdie wrote:
> > On Thu, 2011-10-13 at 13:30 +0200, Martin Jansa wrote:
> > > * not everybody needs i915, i965
> > >
> > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > ---
> > > meta/recipes-graphics/mesa/mesa-dri.inc | 4 ++++
> > > meta/recipes-graphics/mesa/mesa-dri_7.11.bb | 2 --
> > > 2 files changed, 4 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/meta/recipes-graphics/mesa/mesa-dri.inc b/meta/recipes-graphics/mesa/mesa-dri.inc
> > > index 603438e..be6905c 100644
> > > --- a/meta/recipes-graphics/mesa/mesa-dri.inc
> > > +++ b/meta/recipes-graphics/mesa/mesa-dri.inc
> > > @@ -6,6 +6,10 @@ DEFAULT_PREFERENCE = "-1"
> > >
> > > EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium --without-gallium-drivers"
> > >
> > > +MACHINE_DRI_MODULES ?= ""
> > > +PACKAGE_ARCH = "${@['${MACHINE_ARCH}','${TUNE_PKGARCH}'][bb.data.getVar('MACHINE_DRI_MODULES',d,1) == '']}"
> > > +EXTRA_OECONF += "--with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
> > > +
> > > python populate_packages_prepend() {
> > > import os.path
> >
> > Whilst I understand the problem, I don't like this solution.
> > Particularly, it means that the meas-dri package needs to be marked as
> > machine specific which I don't like the idea of at all.
> >
> > How about we do this on a per architecture basis?
>
> taken from cover-letter:
> but maybe we can use it as distro variable and keep it with default arch.
> But then we cannot just add ie glamo dri module from meta-openmoko like this:
> http://git.shr-project.org/git/?p=meta-smartphone.git;a=commit;h=b50c8d00cf764c276b0792c0623b8eda3d18d343
> without distro (setting MACHINE_DRI_MODULES) depending on such bsp layer.
Whilst I hadn't seen the patch I was guessing you were doing something
like this. Will the glamo module build on all arm platforms or just
gta02 specifically?
> per architecture has same problem as distro basis
>
> btw: in old recipes there was --with-dri-drivers with only one -, so maybe it
> wasn't actually working even for i915, i965 before or configure has benevolent syntax
It defaults to enable all modules. We don't have libdrm-nouveau (or
llvm) so we had to change the config options to explicitly enable the
pieces I know are cared about on x86 in the latest version. This is why
the COMPATIBLE_HOST is there too since that recipe was always meaning to
compile these modules.
FWIW, if a patch needs some change in behaviour such as the introduction
of a variable like MACHINE_DRI_MODULES, we need to spell this out very
clearly. I know its better in this series but that was a major problem
in the last version. I'm spelling this out for anyone else on the
mailing list to take note of!
Cheers,
Richard
next prev parent reply other threads:[~2011-10-13 14:02 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-13 11:30 [oe-core 00/20] Xorg, mesa changes Martin Jansa
2011-10-13 11:30 ` [oe-core 01/20] xserver-xorg: drop xorg-minimal-fonts from RDEPENDS Martin Jansa
2011-10-13 11:30 ` [oe-core 02/20] xserver-xorg: move PE to xserver-xorg-common and bump it Martin Jansa
2011-10-13 11:30 ` [oe-core 03/20] xorg-driver-common: bump PE for upgrade path for meta-oe users Martin Jansa
2011-10-13 11:30 ` [oe-core 04/20] mesa-dri-glsl-native: fix LICENSE Martin Jansa
2011-10-13 11:30 ` [oe-core 05/20] mesa: move common patches which could be used in both mesa-dri and mesa-xlib from mesa-dri to mesa Martin Jansa
2011-10-13 11:30 ` [oe-core 06/20] mesa-common: add common LIC_FILES_CHKSUM for newer mesa versions Martin Jansa
2011-10-13 11:30 ` [oe-core 07/20] mesa-common: MesaDemos is now separate recipes, bump PE, introduce INC_PR Martin Jansa
2011-10-13 23:45 ` Khem Raj
2011-10-14 6:45 ` Martin Jansa
2011-10-13 11:30 ` [oe-core 08/20] mesa-common: use glx-use-tls.inc instead of enabling glx-tls every time Martin Jansa
2011-10-13 11:30 ` [oe-core 09/20] mesa-7.11: move shared DEPENDS, SRC_URI, checksums and do_configure_prepend to shared .inc file Martin Jansa
2011-10-13 11:30 ` [oe-core 10/20] mesa: move shared PROTO_DEPS, LIB_DEPS and DEPENDS to common .inc Martin Jansa
2011-10-13 11:30 ` [oe-core 11/20] mesa: package gl/egl/osmesa to separate packages Martin Jansa
2011-10-14 11:12 ` Richard Purdie
2011-10-14 11:19 ` Martin Jansa
2011-10-14 13:32 ` Koen Kooi
2011-10-14 13:58 ` Richard Purdie
2011-10-14 14:02 ` Martin Jansa
2011-10-13 11:30 ` [oe-core 12/20] mesa-xlib: move shared options to .inc Martin Jansa
2011-10-13 11:30 ` [oe-core 13/20] mesa-dri: move shared options to mesa-dri.inc Martin Jansa
2011-10-13 11:30 ` [oe-core 14/20] mesa-dri: introduce MACHINE_DRI_MODULES Martin Jansa
2011-10-13 13:23 ` Richard Purdie
2011-10-13 13:32 ` Martin Jansa
2011-10-13 13:56 ` Richard Purdie [this message]
2011-10-13 14:07 ` Martin Jansa
2011-10-14 16:04 ` Richard Purdie
2011-10-13 14:32 ` Otavio Salvador
2011-10-14 11:29 ` Richard Purdie
2011-10-14 13:19 ` Otavio Salvador
2011-10-14 23:46 ` Richard Purdie
2011-10-13 11:30 ` [oe-core 15/20] mesa-dri: LEAD_SONAME shouldn't be needed now, when we're packaging each lib in separate package Martin Jansa
2011-10-13 11:30 ` [oe-core 16/20] mesa-dri: drop COMPATIBLE_HOST, swrast should work for everybody Martin Jansa
2011-10-13 11:30 ` [oe-core 17/20] mesa-git: move shared parts from mesa-dri_git to mesa-git.inc and add mesa-xlib_git Martin Jansa
2011-10-13 11:30 ` [oe-core 18/20] mesa-git: lower D_P a bit more then all mesa-dri Martin Jansa
2011-10-13 11:30 ` [oe-core 19/20] mesa-git: upgrade from 7.7+git to 7.11+git Martin Jansa
2011-10-13 11:30 ` [oe-core 20/20] mesa-git: fix LIC_FILES_CHKSUM Martin Jansa
2011-10-13 11:39 ` [oe-core 00/20] Xorg, mesa changes Koen Kooi
2011-10-14 11:26 ` Richard Purdie
2011-10-14 11:39 ` Martin Jansa
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=1318514192.23801.229.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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.