Re: Correct way to set DRIDRIVERS and GALLIUMDRIVERS from mesa bbappend


Richard Purdie
 

On Wed, 2021-12-01 at 20:20 +0000, Mike Crowe via lists.openembedded.org wrote:
On Wednesday 01 December 2021 at 14:18:19 -0500, Justin Bronder wrote:
On 01/12/21 16:43 +0000, Mike Crowe via lists.openembedded.org wrote:
I'm building for a specific chip and therefore don't wish to waste time and
electricity building and disk space on the target installing unwanted mesa
drivers. However, mesa.inc contains:

GALLIUMDRIVERS = "swrast"
GALLIUMDRIVERS:x86-x32 = ""
GALLIUMDRIVERS:append:x86:class-target = ",i915,iris,crocus"
GALLIUMDRIVERS:append:x86-64:class-target = ",i915,iris,crocus"

and mesa_21.3.0.bb contains:

DRIDRIVERS ??= ""
DRIDRIVERS:append:x86:class-target = ",r100,r200,nouveau,i965"
DRIDRIVERS:append:x86-64:class-target = ",r100,r200,nouveau,i965"

I'm unable to find a way to override these values. Using (for example):
You can use an anonymous python function which runs after parsing.
https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#anonymous-python-functions

python __anonymous () {
d.setVar("DRIDRIVERS", "i965")
}
Thanks for the suggestion. It solves my problem. However, it seems like
quite a subversive way to do the sort of external customisation that
recipes normally support.
I would like to work our how we can improve this situation, I'm just struggling
to see what we should do :/

Cheers,

Richard

Join {openembedded-core@lists.openembedded.org to automatically receive all group messages.