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 wrote:
On Wednesday 01 December 2021 at 14:18:19 -0500, Justin Bronder wrote:
On 01/12/21 16:43 +0000, Mike Crowe via 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, contains:

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

and contains:

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.

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 :/



Join { to automatically receive all group messages.